Author Topic: how to make an object inside the object visible  (Read 1757 times)

Offline zerofox

  • byte
  • *
  • Posts: 15
    • View Profile
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?

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
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).