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: Ordered Rendering

  1. #1
    Junior Member Regular Contributor
    Join Date
    Feb 2000
    Location
    Bolton, United Kingdom
    Posts
    105

    Ordered Rendering

    I need to render three objects, obj1..obj3, such that obj2 is always drawn over obj1 irrespective of its actual depth and yet is drawn correctly in relation to obj3. I can partially achieve this by :

    render obj1
    disable depth test
    render obj 2
    enable depth test
    render obj 3

    Andrew

  2. #2
    Junior Member Regular Contributor
    Join Date
    Feb 2000
    Location
    Bolton, United Kingdom
    Posts
    105

    Re: Ordered Rendering

    Easy after coffee !!

    render obj1
    disable depth test
    render obj 2
    enable depth test
    render obj 2
    render obj 3

Posting Permissions

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