Skip to main content
gamedev.net
🔒 Locked

problem showing .obj format object

Started by caitsith_815 Jul 10, 2006 at 9:20 PM 1 replies 300+ views
Original Post
caitsith_815
caitsith_815
i make a object and converted it to .obj format. but when i try to display it in my game. The object seem to be broken and some part of it is transparent. Anyone know what is the cause of it? and how to solve this problem?
deavik
deavik
Quote:
Original post by caitsith_815
i make a object and converted it to .obj format. but when i try to display it in my game. The object seem to be broken and some part of it is transparent. Anyone know what is the cause of it? and how to solve this problem?

Assuming the loading code is correct ... I'll take a guess: have you forgotten to enable depth testing? [smile]
caitsith_815
caitsith_815
do you mean this line ?
glEnable(GL_DEPTH_TEST); i already test it . earlier i was putting a cube which is also an obj format file and it display out correctly . but when i replace it with a newly created object. it show out like some part of it are missing and is like some triangles are missing from it.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.