PDA

View Full Version : How to render directly to texture



10-13-2004, 08:44 AM
How can I render directly (without glCopyTexImage()) to texture. I use GeForce 2 MX 400. I used Texture->Lock() in Direct3D, but how can I do it in OGL?

kehziah
10-13-2004, 10:01 AM
For now you have to use PBuffers (spec here (http://oss.sgi.com/projects/ogl-sample/registry/ARB/wgl_pbuffer.txt) )

A new (much better) RTT extension should be available shortly, but well... we have been told 'shortly' for 2 years now...

Some discussion about it in the 'coding : advanced' forum :
http://www.opengl.org/discussion_boards/cgi_directory/ultimatebb.cgi?ubb=get_topic;f=3;t=011406
http://www.opengl.org/discussion_boards/cgi_directory/ultimatebb.cgi?ubb=get_topic;f=3;t=012414

10-13-2004, 09:04 PM
It's pity. DirectX can but OpenGL can't.

Dol AI with 3D Bone system
10-13-2004, 09:11 PM
It may be VertexStream, IndexedPrimitive in Direct3D or glVertex3f in OpenGL not interface to cast texture Coordination system.

Dol AI with 3D Bone system
10-13-2004, 09:23 PM
if you use Texture->Lock(); until UnLock(); in D3D but they still live in memory you cannot use OpenGL I think.