Texture shader / register combiner Q
Anyone know if its possible to warp pixels that are already in the framebuffer by using texture shaders and/or register combiners? Im pretty sure texture shaders cant do it (the offset function warps an image bound to a texture unit), but I really dont know about register combiners (I havent found any good documentation on them yet, not even from developer.nvidia.com).
neither r gonna work the only way is with glReadPixels(..)
http://uk.geocities.com/sloppyturds/gotterdammerung.html
http://uk.geocities.com/sloppyturds/gotterdammerung.html
Use a pbuffer. Render your scene into it, bind as a texture, and warp it as much as you like. Alternatively, you can also use glCopyTexSubImage2D, it''s rather fast on nVidia boards.
Regcoms only allow to change the routing of fragments between the different combiner units, and manipulate the equations that affect their parameters. You cannot modify pixels already written to the framebuffer, though.
Regcoms only allow to change the routing of fragments between the different combiner units, and manipulate the equations that affect their parameters. You cannot modify pixels already written to the framebuffer, though.
the problem is ''modify the pixels''
if u use a pbuffer or glCopyTexSubImage(..) the modifications u can apply to the image are gonna be very limited.
whats wrong with glReadPixels()?
http://uk.geocities.com/sloppyturds/gotterdammerung.html
if u use a pbuffer or glCopyTexSubImage(..) the modifications u can apply to the image are gonna be very limited.
whats wrong with glReadPixels()?
http://uk.geocities.com/sloppyturds/gotterdammerung.html
> if u use a pbuffer or glCopyTexSubImage(..) the modifications u can apply to the image are gonna be very limited.
Texture shaders. Once you have the framebuffer in a texture, you can use them. Or mesh warping is another alternative.
> whats wrong with glReadPixels()?
A lot slower than texture shaders, at least on GF3+.
Texture shaders. Once you have the framebuffer in a texture, you can use them. Or mesh warping is another alternative.
> whats wrong with glReadPixels()?
A lot slower than texture shaders, at least on GF3+.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement