June 2013
Beginner
352 pages
9h 5m
English
How transparent can we go? Let's try to make a part of the monkey sphere disappear:
TexturesOpaqueTransparent.java, add the following lines before sphereGeo.setMaterial():sphereMat.getAdditionalRenderState().setAlphaTest(true); sphereMat.getAdditionalRenderState().setAlphaFallOff(0.5f); sphereGeo.setQueueBucket(Bucket.Transparent);
A semitransparent material (such as the stained-glass window) lets you see through, but the geometry is still there—its color simply blends with what is behind it. For a stained-glass window, a slab of ice, or a bottle, this is just what you want.
Fully transparent materials, however, make part of their ...
Read now
Unlock full access