Guppy Posted September 6, 2014 Share Posted September 6, 2014 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? Quote 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 More sharing options...
Josh Posted September 6, 2014 Share Posted September 6, 2014 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? Quote 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 More sharing options...
Guppy Posted September 6, 2014 Author Share Posted September 6, 2014 MyGUI uses it for colored text - suppose I'll have to find a way around that. Quote 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 More sharing options...
Guppy Posted September 6, 2014 Author Share Posted September 6, 2014 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 Quote 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 More sharing options...
Josh Posted September 6, 2014 Share Posted September 6, 2014 Is there a reason you actually need the luminance channel? I just use alpha textures for font rendering. Quote 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 More sharing options...
Guppy Posted September 6, 2014 Author Share Posted September 6, 2014 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 Quote 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 More sharing options...
Recommended Posts
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.