Skip to main content

'Box' Transparency

1 reply [Last post]
tomg4321
Offline
Joined: 2006-03-04
Points: 0

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?

Thank You

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Dmitri Darine

java3d-interest@javadesktop.org wrote:
> 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?
>
> Thank You
> [Message sent by forum member 'tomg4321' (tomg4321)]
>
> http://forums.java.net/jive/thread.jspa?messageID=89241
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
> For additional commands, e-mail: interest-help@java3d.dev.java.net
>
>
Check javax.media.j3d.PolygonAttributes. Try to toy with "Face culling"
and "Back-face normal flip".

--

Best regards
Dmitri Darine

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
For additional commands, e-mail: interest-help@java3d.dev.java.net