I assume there is no way for a pixel shader to write to a texture despite the ability to read from multiple textures. So, what's the easiest way to get any type of output? I envision having to render to texture or a pbuffer and accessing the resultant texture/pbuffer as an array of data.
Any other ideas?
Shader Output?
Started by phrogger, Jun 01 2004 04:12 AM
6 replies to this topic
#1
Posted 01 June 2004 - 04:12 AM
#2
Posted 01 June 2004 - 07:02 AM
as soon as the new render target extension is in the drivers of ati and nvidia things get easier but right now using a pbuffer for a render to texture is the only choice you have. anyway, why do you need to do this ?
If Prolog is the answer, what is the question ?
#3
Posted 04 June 2004 - 04:37 PM
You can use the classic method of rendering with your pixel shader to the back buffer and use copyTexSubImage to copy the backbuffer contents to a texture. This is probably easier than rendering using a pbuffer and copying it contents to the texture. The only time using the backbuffer will not work is if it's dimensions are less than the texture.
If you're going the pbuffer route, you may as well use the WGL_ARB_render_texture extension.
Hopefully the ARB super buffer extension will be resolved soon (and in a way that works well of course.)
If you're going the pbuffer route, you may as well use the WGL_ARB_render_texture extension.
Hopefully the ARB super buffer extension will be resolved soon (and in a way that works well of course.)
#4
Posted 04 June 2004 - 05:02 PM
well, WGL_ extensions bind you to windows...
If Prolog is the answer, what is the question ?
#5
Posted 04 June 2004 - 05:23 PM
i'd wait for this... http://www.opengl.org/resources/features/G...nder_target.txt
If Prolog is the answer, what is the question ?
#6
Posted 04 June 2004 - 09:55 PM
anubis said:
i'd wait for this... http://www.opengl.org/resources/features/G...nder_target.txt
#7
Posted 05 June 2004 - 01:58 AM
url ?
i'm kind of behind those things due to my lack of motivation :)
i'm kind of behind those things due to my lack of motivation :)
If Prolog is the answer, what is the question ?
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











