Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
how to make an object inside the object visible
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: how to make an object inside the object visible (Read 1910 times)
zerofox
byte
Posts: 15
how to make an object inside the object visible
«
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?
Logged
Thomas.
double
Posts: 833
Re: how to make an object inside the object visible
«
Reply #1 on:
March 28, 2013, 10:42:54 am »
If you have texture with alpha, you have to use constructor
Texture(InputStream is, boolean useAlpha)
. And for transparency are in Config two items,
Config.glTransparencyOffset
and
Config.glTransparencyMul
. With default settings you can try something around 10 in Object3D.setTransparency(10).
Logged
My game for Android
,
Physics example
,
Texture assistant
Print
Pages: [
1
]
Go Up
« previous
next »
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
how to make an object inside the object visible