I am writing a scene where every object has a duplicate object and is translated at a specific offset. The original object appears red, the cloned object is green and when observed through red/green filter glasses the two objects fuse together and user gets an immersive experience.
To get the illusion to work, I have to set the transparency, so the red and green can still be seen when they overlap.
When I do this with the Box object (in the com.sun.j3d.utils.geometry package), the illusion is perfect! Although there is transparency, I only ever see three sides of the box (never the three hidden surfaces).
I have started to use TriangleArrays to build up more complex objects and sadly when I apply the transparency, I can see the hidden surfaces (behind the visible surfaces) and it is spoiling the illusion.
I guess my goal is to work out how the Box object achieves the effect described above. Can anyone provide some help on this?