Backface Culling Question
3 posters
Backface Culling Question
I'm trying to render a cup shape using sio2 , but only the frontmost mesh faces are being rendered and the "inside back face" of the cup is invisible?
I tried to enable double sided mesh face rendering in Blender, but I still cant get part of the cup to appear.
Also what is the easiest way to detect when object hits the cup?
Your help is greatly appreciated.
Cheers.
I tried to enable double sided mesh face rendering in Blender, but I still cant get part of the cup to appear.
Also what is the easiest way to detect when object hits the cup?
Your help is greatly appreciated.
Cheers.
matthew- Posts : 64
Join date : 2008-11-12
Re: Backface Culling Question
Try putting this in your GL code:
glDisable(GL_CULL_FACE);
-j
glDisable(GL_CULL_FACE);
-j
meteors- Posts : 241
Join date : 2008-11-08
Location : Sunny Florida
Backface Culling Question
Bingo! That did the trick. Thanks a lot meteor.
matthew- Posts : 64
Join date : 2008-11-12
Re: Backface Culling Question
No worries :-)
meteors- Posts : 241
Join date : 2008-11-08
Location : Sunny Florida
Re: Backface Culling Question
Actually you can also use the "twosided" mode, that will render both front & back polygon, this is ideal in the case that your geometry have some alpha....
Re: Backface Culling
sio2interactive , thanks for your help. You said "Actually you can also use the "twosided" mode "...
I was wondering how this can be achieved?
Thanks.
I was wondering how this can be achieved?
Thanks.
matthew- Posts : 64
Join date : 2008-11-12
Re: Backface Culling Question
Check the tutorial04 video, Im using "twoside" on the leaf of the palm tree in addition with "translucency" (alpha level in GL) in order to adjust them and to get rid of the blending mode "Value".
Re: Backface Culling Question
Check the tutorial04 video, Im using "twoside" on the leaf of the palm tree in addition with "translucency" (alpha level in GL) in order to adjust them and to get rid of the blending mode "Value".
Similar topics
» 2 Questions: Clear Buffer and Backface culling
» Culling and Bullet
» Frustum culling and shadows
» Culling failing on duplicated objects
» General question
» Culling and Bullet
» Frustum culling and shadows
» Culling failing on duplicated objects
» General question
Permissions in this forum:
You cannot reply to topics in this forum