PDA

View Full Version : Render to Texture goodness



MojoMagic
06-17-2002, 02:04 PM
OK. Maybe this is a dumb question, but I've never dealt with render_to_texture before...

Is it possible to extract RGBA info from the texture, or are we limited to RGB?

I ask because I want to store the resultant texture in a file for later use.

Is what I'm asking feasable? Or is it too early in the morning?

Hmmm... I sound like a newb. I need some coffee.

dorbie
06-17-2002, 03:33 PM
Yes it can be done.

When creating the pixel format set WGL_BIND_TO_TEXTURE_RGBA_ARB to true then when creating the pbuffer set the format to WGL_TEXTURE_RGBA_ARB.