Post by Malte ClasenPost by eaaWhat is
the best method for creating and rendering an animated texture?
The common way is to create a texture and update the content using
http://oss.sgi.com/projects/ogl-sample/registry/ARB/pixel_buffer_object.txt
Did you mean "framebuffer objects".
Pixel buffer objects are supported on exactly
three different graphics cards:
http://www.delphi3d.net/hardware/extsupport.php?extension=GL_ARB_pixel_buffer_object
Framebuffer objects are a lot more widely
supported but they're still nowhere near
universal:
http://www.delphi3d.net/hardware/extsupport.php?extension=GL_EXT_framebuffer_object
For most cards you should use ARB_render_texture,
- though Intel doesn't support it and they're the
most common graphics chip:
http://www.delphi3d.net/hardware/extsupport.php?extension=WGL_ARB_render_texture
If your program is on general release the the public
you'll have to support all methods right back to
glCopyTexSubImage() if necessary.
Then again, it all depends on what you're doing. Do you
need to render to the texture using OpenGL or do you
simply want to copy images into it (eg. video playback)?
For video playback you just need glTexSubImage()
--
<\___/>
/ O O \
\_____/ FTB. For email, remove my socks.
In science it often happens that scientists say, 'You know
that's a really good argument; my position is mistaken,'
and then they actually change their minds and you never
hear that old view from them again. They really do it.
It doesn't happen as often as it should, because scientists
are human and change is sometimes painful. But it happens
every day. I cannot recall the last time something like
that happened in politics or religion.
- Carl Sagan, 1987 CSICOP keynote address