Rendering directly on texture

Hi,
I was wondering what were the different SDL or GL functions I should
read about in the manuals in order to make a direct render into a texture.

I mean, I would like to draw an OpenGL scene in a texture instead of
the frame buffer. In a 256x256 texture for example…

Thanks in advance!
Xilo–
Dedicated to audio/visual and interactive artwork.
http://www.geocities.com/simonlemieux/

There is a tutorial at NeHe:
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=36

Regards,
JakobAm Samstag, 21. Juni 2003 20:06 schrieb Xilo Musimene:

Hi,
I was wondering what were the different SDL or GL functions I should
read about in the manuals in order to make a direct render into a texture.

I mean, I would like to draw an OpenGL scene in a texture instead of
the frame buffer. In a 256x256 texture for example…

Be sure to check out this :
http://developer.nvidia.com/docs/IO/2647/ATT/opengl_rendertexture.pdf

document from NVidia on the subject.

GreeTz.
DV> ----- Original Message -----

From: xilo_m@hotpop.com (Xilo Musimene)
To:
Sent: Saturday, June 21, 2003 8:06 PM
Subject: [SDL] Rendering directly on texture

Hi,
I was wondering what were the different SDL or GL functions I should
read about in the manuals in order to make a direct render into a texture.

I mean, I would like to draw an OpenGL scene in a texture instead of
the frame buffer. In a 256x256 texture for example…

Thanks in advance!
Xilo


Dedicated to audio/visual and interactive artwork.
http://www.geocities.com/simonlemieux/


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

I mean, I would like to draw an OpenGL scene in a texture instead of
the frame buffer. In a 256x256 texture for example…

There is a tutorial at NeHe:
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=36

I think this tutorial shows how to render to the framebuffer and then
copy the pixels to a texture, which is slow… I’d need to take a
texture as a framebuffer.

Thanks,
Xilo–
Dedicated to audio/visual and interactive artwork.

Dinand Vanvelzen wrote:

Be sure to check out this :
http://developer.nvidia.com/docs/IO/2647/ATT/opengl_rendertexture.pdf
document from NVidia on the subject.

Thanks, that’s exactly what I was looking for!

Thanks,
Xilo–
Dedicated to audio/visual and interactive artwork.