PDA

View Full Version : Render to 2-component NPOT texture?



skynet
02-07-2006, 06:26 AM
Hello!

Is there any way to render to a one- or two-component NPOT-texture?

WGL_render_texture only allows to render to rgb and rgba textures.

WGL_NV_float_buffer allows r and rg textures, but seemingly only to rectangle textures.

FBO is not yet ready for 1/2 component textures.

I want to implement HDR using nVidia´s trick to use 2 RG FP16 rendertargets instead of 1 RGBA FP16 target.

andras
02-08-2006, 05:10 AM
Is there any way to render to a one- or two-component NPOT-texture?Unfortunately, no. :( The best you can do is render to a floating point texture rect, but they have some serious limitations..
Or you could wait for the ARB to add it to the FBO. They said they will, but I don't know what takes them so long, they would just have to replace nVidia's texture rect with NPOT..