We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › Transparent Textured Cube
Page Index Toggle Pages: 1
Transparent Textured Cube (Read 604 times)
Transparent Textured Cube
Apr 10th, 2008, 7:38pm
 
I'm trying to make a textured cube transparent. I simply switched the texture in the "textured cube" tutorial to a png. It worked fine in P3D but when I switch over to opengl one side is completely opaque and some sides disappear when you look through to the other side.

I found this thread:

http://processing.org/discourse/yabb_beta/YaBB.cgi?board=OpenGL;action=display;num=1202159498

I think this might help, but I'm not quite sure how to apply this concept.



Re: Transparent Textured Cube
Reply #1 - Apr 10th, 2008, 7:57pm
 
What you need is hint(ENABLE_DEPTH_SORT); I think.
Re: Transparent Textured Cube
Reply #2 - Apr 11th, 2008, 12:36am
 
Quote:
What you need is hint(ENABLE_DEPTH_SORT); I think.



ok....so that did it, but now little black triangles pop up when you rotate the cube it in a certain way.

hint(enable_depth_sort) sure isn't perfect.

any ideas?

Page Index Toggle Pages: 1