Results 1 to 8 of 8

Thread: disappearing objects

  1. #1
    Guest

    disappearing objects

    i am writing a shooter and i encountered a
    funny problem - as i move further away from objects i draw they start disappearing on me.

    when i'm close to the objects they look fine,
    but as i move away, edges start disappearing then faces disappear until finally the entire object disappears -
    did anyone encounter such a problem or might have an idea what's wrong with my program.

    thanks
    alan.

  2. #2
    Senior Member Regular Contributor
    Join Date
    Jun 2000
    Location
    B.C., Canada
    Posts
    367

    Re: disappearing objects

    They are probably being culled at the far clip plane. Set the value for the high clip plane to a higher number.

    j

  3. #3
    Guest

    Re: disappearing objects

    thanks, but that's not it.

    you see, first i draw the walls of the game and then i draw the detailed objects that are in the game - only the detail objects have this problem - the walls that are behind the objects are not effected for some reason - so it's not the clipping plane.

    any other ideas?????

    alan

  4. #4
    Senior Member Regular Contributor
    Join Date
    Jun 2000
    Location
    B.C., Canada
    Posts
    367

    Re: disappearing objects

    Hmmmm... That is strange.

    Maybe polygon draw mode, or something like that?

    Other than something like that, I have no idea.

    Maybe a screenshot would help.

    j

  5. #5
    Guest

    Re: disappearing objects

    i don't know how to get screenshots,

    the wierd thing is that the polygons don't disappear at once, they don't "blink" out of existance, the polygons paritally disappear, then reappear , then disappear again.
    wierd huh???

    i know the problem is with my drawing function, because i tried drawing a regular cube next to my objects from outside the drawing function - and the cube stayed intact!!!

    by the way, if you can tell me how i can get a screenshot, i'd be more than happy send it to you.

    thanks for trying to help,
    but it looks like a long day of dubugging for me.

    alan

  6. #6
    Guest

    Re: disappearing objects

    never mind - i solved my problem.

    i don't know why it works, but it works.
    (i simply moved the draw of the detailed objects to be the last thing drawn - and it solved it - i don't know why it made a difference because i used a depth buffer and it shouldn't have mattered).

    thanks alan

  7. #7
    Member Newbie
    Join Date
    Jul 2000
    Location
    Millis, MA USA
    Posts
    36

    Re: disappearing objects

    [QUOTE]Originally posted by alan:
    [B]i don't know how to get screenshots,

    If you are using windoze (perhaps Linux as well?) then shift-printscreen will copy a bmp of your screen to the clipboard. Then paste it into any bmp viewer, paint for example.

  8. #8
    Senior Member Regular Contributor
    Join Date
    Oct 2000
    Location
    Donetsk,Ukraine
    Posts
    118

    Re: disappearing objects

    Probably that was z-aliasing. AFAIK With nearplane=1,farplane=100 75=85. So detailed objects might be not well-rendered.

Similar Threads

  1. Causes of flickering/disappearing objects
    By Ross Oliver in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 04-13-2010, 09:56 AM
  2. disappearing objects
    By Fooly1Cooly in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 03-18-2004, 06:09 PM
  3. Why do my objects keep disappearing?
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-09-2002, 02:39 PM
  4. disappearing objects
    By in forum OpenGL: macOS
    Replies: 4
    Last Post: 01-25-2002, 10:08 AM
  5. Disappearing faces, objects
    By FooLman in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 12-11-2000, 01:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean