FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Backface Culling Question

3 posters

Go down

Backface Culling Question Empty Backface Culling Question

Post  matthew 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

Back to top Go down

Backface Culling Question Empty Re: Backface Culling Question

Post  meteors Sun Dec 28, 2008 12:06 pm

Try putting this in your GL code:

glDisable(GL_CULL_FACE);


-j
meteors
meteors

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

Back to top Go down

Backface Culling Question Empty Backface Culling Question

Post  matthew Sun Dec 28, 2008 12:34 pm

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

matthew

Posts : 64
Join date : 2008-11-12

Back to top Go down

Backface Culling Question Empty Re: Backface Culling Question

Post  meteors Sun Dec 28, 2008 2:18 pm

No worries :-)
meteors
meteors

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

Back to top Go down

Backface Culling Question Empty Re: Backface Culling Question

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

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

http://sio2interactive.com

Back to top Go down

Backface Culling Question Empty Re: Backface Culling

Post  matthew 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

Back to top Go down

Backface Culling Question Empty Re: Backface Culling Question

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

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

http://sio2interactive.com

Back to top Go down

Backface Culling Question Empty Re: Backface Culling Question

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

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

http://sio2interactive.com

Back to top Go down

Backface Culling Question Empty Backface Culling Question

Post  matthew Tue Dec 30, 2008 7:34 pm

Cool, thanks sio2interactive.

matthew

Posts : 64
Join date : 2008-11-12

Back to top Go down

Backface Culling Question Empty Re: Backface Culling Question

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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