Drawing a geometry buffer with alpha enabled?

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

Stefan Lundmark
Just popping in
Just popping in
Posts: 16
Joined: Wed Oct 14, 2009 22:11

Drawing a geometry buffer with alpha enabled?

Postby Stefan Lundmark » Mon Nov 02, 2009 01:03

I'm trying to get a GeometryBuffer to be drawn with alpha enabled, ie the textures that are transparent should be when they get rendered.
Currently they're showing up white where they should be showing the background.

Let me know if this is too vague, I just haven't found any documentation regarding this.

Edit: Turns out it's OGRE setting the texture format to X8R8G8B8 (which AFAIK is padded without alpha?). Not sure why it does that but oh well, thanks to those who have read.

Another edit: OGRE doesn't like TIF's that contain alpha, that's for sure. Converting the file to a PNG works wonders, but that's not really a solution. Going to mention this on the OGRE forums.

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Re: Drawing a geometry buffer with alpha enabled?

Postby Jamarr » Mon Nov 02, 2009 20:31

So you are saying the TIFF loader for OGRE doesn't support alpha? That seems odd since the TIFF format has been around for quite a long time. Thanks for the heads up though.
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!

Stefan Lundmark
Just popping in
Just popping in
Posts: 16
Joined: Wed Oct 14, 2009 22:11

Re: Drawing a geometry buffer with alpha enabled?

Postby Stefan Lundmark » Mon Nov 02, 2009 21:55

Jamarr wrote:So you are saying the TIFF loader for OGRE doesn't support alpha? That seems odd since the TIFF format has been around for quite a long time. Thanks for the heads up though.


LibTiff doesn't like the garbage that Photoshop sometimes can produce when writing TIF files with layers or metadata. It's part of the "BIG-Tif" specification but I'm not sure they implemented all that in the stable release yet. I know there was the same issue in another engine, but I thought we worked around it. Guess not.

If I query LibTiff directly and ask how many samples per pixel the TIF picture has, it says 3 while it's clearly 4. Must be that Photoshop is baking the alpha into a second channel or something. I have no idea, I'll use FreeImage's PSD support for now instead.

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Re: Drawing a geometry buffer with alpha enabled?

Postby Jamarr » Tue Nov 03, 2009 20:19

I see. Well that makes some sense then, as the BigTIFF specification was only recently released (2007) and I believe that the LibTIFF support for it is still in beta and has not been made official yet. So you may want to avoid that format until your image library has released official support for it.
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!


Return to “Help”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 9 guests