Jump to content

Texture format (Luminance + Alpha)?


Guppy
 Share

Recommended Posts

I've been usingLeadwerks::Texture::RGB and Leadwerks::Texture::RGBATo pass to

Leadwerks::Texture::Create(_width,_height,LEformat)

But I also need to create textures with one color channel and one Llumiance channel + alpha (GL_LUMINANCE8_ALPHA8) - I've been using Leadwerks::Texture::Intensity16 for this which gets me the correct buffer size but when I bind the texture it just shows as black. So what should I use instead?

System:

Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k

Link to comment
Share on other sites

OpenGL4 does not have Luminance textures:

https://www.opengl.org/sdk/docs/man4/html/glTexImage2D.xhtml

 

GL_RG8 is the only thing that uses two channels, but there is no Leadwerks Texture::RedGreen format.

 

Is there a reason Texture::RGBA or RGB won't work?

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

facepalm moment - turns out I had stubbed the "isFormatSupported" function in the rendermanager with return true;

 

so err yeah just ignore this tread, I'll chalk it up to sleep deprivation

System:

Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k

Link to comment
Share on other sites

Is there a reason you actually need the luminance channel? I just use alpha textures for font rendering.

I'm thinking it was to save memory - works just fine now I've told it that format isn't supported

System:

Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...