Backface Culling Question

View previous topic View next topic Go down

Backface Culling Question

Post  matthew on Sun Dec 28, 2008 11:38 am

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.

matthew

Posts : 64
Join date : 2008-11-12

View user profile

Back to top Go down

Re: Backface Culling Question

Post  meteors on Sun Dec 28, 2008 12:06 pm

Try putting this in your GL code:

glDisable(GL_CULL_FACE);


-j
avatar
meteors

Posts : 241
Join date : 2008-11-08
Location : Sunny Florida

View user profile

Back to top Go down

Backface Culling Question

Post  matthew on Sun Dec 28, 2008 12:34 pm

Bingo! That did the trick. Thanks a lot meteor.

matthew

Posts : 64
Join date : 2008-11-12

View user profile

Back to top Go down

Re: Backface Culling Question

Post  meteors on Sun Dec 28, 2008 2:18 pm

No worries :-)
avatar
meteors

Posts : 241
Join date : 2008-11-08
Location : Sunny Florida

View user profile

Back to top Go down

Re: Backface Culling Question

Post  sio2interactive on Sun Dec 28, 2008 5:54 pm

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....
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: Backface Culling

Post  matthew on Tue Dec 30, 2008 12:15 pm

sio2interactive , thanks for your help. You said "Actually you can also use the "twosided" mode "...

I was wondering how this can be achieved?

Thanks.

matthew

Posts : 64
Join date : 2008-11-12

View user profile

Back to top Go down

Re: Backface Culling Question

Post  sio2interactive on Tue Dec 30, 2008 4:25 pm

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".
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: Backface Culling Question

Post  sio2interactive on Tue Dec 30, 2008 4:26 pm

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".
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Backface Culling Question

Post  matthew on Tue Dec 30, 2008 7:34 pm

Cool, thanks sio2interactive.

matthew

Posts : 64
Join date : 2008-11-12

View user profile

Back to top Go down

Re: Backface Culling Question

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum