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 5 of 5

Thread: Skybox cloud layer (blah blah...)

  1. #1
    Junior Member Regular Contributor
    Join Date
    Mar 2002
    Location
    Pori, Finland
    Posts
    190

    Skybox cloud layer (blah blah...)

    Now when I have a simple (working) skybox, how can I put a working cloud layer?
    I tried moving multitexture for the top side of the box, but the cloud gets visible the corners of the box. Any idea how is the cloud layers realy done?

  2. #2
    Junior Member Regular Contributor
    Join Date
    Feb 2001
    Posts
    116

    Re: Skybox cloud layer (blah blah...)

    as far as i can tell, your cloud layer is clipped against the skybox walls. to avoid this, render the skybox with a write-protected z-buffer. i think the command is
    glDepthMask(GL_FALSE)to disable zbuffer-write
    glDepthMask(GL_TRUE) to enable

    you should probably also render the cloud layer with write-protection on so it doesn't interfere with your world you're rendering

    hth
    eik

    [This message has been edited by hoshi55 (edited 03-25-2002).]

  3. #3
    Junior Member Regular Contributor
    Join Date
    Mar 2002
    Location
    Pori, Finland
    Posts
    190

    Re: Skybox cloud layer (blah blah...)

    I'm not sure what do you mean, but when the could moves, it shows the quad borders. I'm just wondering how could I 'smooth' the borders so they would kind of blend with the sky.

  4. #4
    Senior Member OpenGL Guru knackered's Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    3,032

    Re: Skybox cloud layer (blah blah...)

    Are you talking about having a sky box, *and* a cloud box? ...then scrolling the texture matrix of the cloud box?
    You'll always see the edges of the box when moving the cloud box with the texture matrix. I can't see a problem with rotating the actual cloud box geometry, though - that should work ok. Just disable depth test on the cloud box while you're rendering it, so it doesn't get clipped by the sky box.
    Knackered

  5. #5
    Junior Member Regular Contributor
    Join Date
    Mar 2002
    Location
    Pori, Finland
    Posts
    190

    Re: Skybox cloud layer (blah blah...)

    Yes, yes I know. But have you seen the sky of Hitman Codename 47?
    That's the kind of sky I want.

Posting Permissions

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