PDA

View Full Version : Render depth to texture in rendermonkey.



Twooie
02-26-2005, 03:38 AM
Hi!

I was wondering how to render depth values to a renderable texture in rendermonkey. I've looked everywhere but can't find any info on that.

I have seen that when creating a texture and not using rendermonkey it would look something like this:

glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH_COMPONENT, width, height, 0, GL_DEPTH_COMPONENT, GL_UNSIGNED_BYTE, NULL);

Is it possible to do the same thing in rendermonkey? How? :)

stanlylee
03-10-2005, 09:41 PM
Try the ShadowMap example ( In DX9 )