Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Render depth to texture in rendermonkey.

  1. #1

    Render depth to texture in rendermonkey.

    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?

  2. #2
    Intern Newbie
    Join Date
    Nov 2004
    Location
    beijing
    Posts
    49

    Re: Render depth to texture in rendermonkey.

    Try the ShadowMap example ( In DX9 )
    /****************\
    No games NO dreams
    For games ,for dreams
    .....
    every night ,
    I dreams a sex girl .
    but only dream....
    \****************/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •