PDA

View Full Version : ATI and render to texture rectangle



jonasmr
06-16-2003, 04:49 AM
Is it possible to render to a texture rectangle with ATI hardware?

NVidia has NV_render_texture_rectangle, but there seems to be no similar things from ATI(or EXT, ARB).

Can this be true?

Jonas

kon
06-16-2003, 05:23 AM
There is GL_EXT_texture_rectangle. Have a look at Tom's page http://www.delphi3d.net/hardware/extsupport.php?extension=GL_EXT_texture_rectangle

kon

jonasmr
06-16-2003, 06:15 AM
Yes, ext_texture_rectangle lets us make rectangular textures, but
how do we render to them?
Can it be done at all?

Jonas

Ostsol
06-16-2003, 07:58 AM
P-Buffers, perhaps? (Though I've never used them. . .)

NitroGL
06-16-2003, 08:16 AM
You would have to use CopyTex[Sub]Image2D to copy a pbuffer to a rectangle texture. The RTT rectangle extension is nVidia proprietary.

Korval
06-16-2003, 09:42 AM
ARB_render_texture, perhaps?

Though the spec says to throw an error if the size of the texture is non-power-of-two, it also says that "This restriction can be relaxed later by the exension that allows non-power of 2 texture." EXT_texture_rectangle would, quite likely, be such an extension. Try it out and see what happens.