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

Thread: Urgent Help Required Please - objects not rendering!

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2005
    Posts
    1

    Urgent Help Required Please - objects not rendering!

    Hi,
    I have setup a room which renders ok, 4 walls, ceiling and floor - all textured.
    Inside the room I have a table and chair (mixture of quads and quad_strips) - unless in wireframe mode the table and chair do not display. They do display properly (not in wireframe mode)if I stop the walls, ceiling and floor from rendering.
    Please help, this is really annoying me. Its probably something really simple and I have spent hours trying to correct it.

    Thanks in advance,
    Stephen

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Aug 2004
    Location
    munich, germany
    Posts
    656

    Re: Urgent Help Required Please - objects not rendering!

    sorry, but although you explained what the problem looks like,
    there's no way to guess what your code looks like.

  3. #3
    Intern Newbie
    Join Date
    Nov 2002
    Posts
    37

    Re: Urgent Help Required Please - objects not rendering!

    As RigidBody said,not much to go on,but I was wondering if depth test was enabled.If not and you
    draw table and chair first followed by the room,
    then the room would totaly replaces the accessories.This wouldn't happen in mesh rendering
    because the walls are big empty quads.

    Just an idea.

  4. #4
    Super Moderator OpenGL Guru dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    4,388

    Re: Urgent Help Required Please - objects not rendering!

    I'd guess you aren't depth buffering and are drawing the walls after the table and chair. Either that or your depth function is incorrect.

    You should investigate getting a context with a depth buffer in the visual/drawable and enabling that with appropriate settinga and near & far clip values that retain precision.

Posting Permissions

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