www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: zerofox on March 28, 2013, 10:07:58 am

Title: how to make an object inside the object visible
Post by: zerofox on March 28, 2013, 10:07:58 am
Hi,

Say i create a cube, inside the cube there is an object. I want the object inside the cube visible. i already try with texture qith alpha transparency. also try setting the cube tranparency to 50-100, still doesnt work. Anyone can help?
Title: Re: how to make an object inside the object visible
Post by: Thomas. on March 28, 2013, 10:42:54 am
If you have texture with alpha, you have to use constructor Texture(InputStream is, boolean useAlpha) (http://www.jpct.net/jpct-ae/doc/com/threed/jpct/Texture.html#Texture(java.io.InputStream, boolean)). And for transparency are in Config two items, Config.glTransparencyOffset (http://www.jpct.net/jpct-ae/doc/com/threed/jpct/Config.html#glTransparencyOffset) and Config.glTransparencyMul (http://www.jpct.net/jpct-ae/doc/com/threed/jpct/Config.html#glTransparencyMul). With default settings you can try something around 10 in Object3D.setTransparency(10).