Re: [JAVA3D] How to draw lines that are always on top of Canvas3D

2004-08-06 Thread Franck Calzada
Why not using Overlays?? (From j3d) everything is there for free; you can implement any kind of 2D overlay very easily. I'm sure it will fit your needs http://code.j3d.org/ Franck PS: you can check my overlay implementation at: http://www.geocities.com/calzada_us/Billard3D/Pool.html

[JAVA3D] A simple function that gives 4 points in front of the camera.

2004-08-06 Thread Thierry Milard
If someone can help me. Thanks in advance... Just a block of code or an internet link to one could save my day Thierry; Paris   Suppose I have a 3d scenery working fine. My camera is well known(fov,..), Now ,sometimes I would like to store (for any places  and orientation of the camera)

Re: [JAVA3D] A simple function that gives 4 points in front of the camera.

2004-08-06 Thread Mike Pilone
Thierry, Most of what you want to do can be done using vector math. Take a ray from the eye, through the imageplate (probably at the corners). Then normalize and scale this vector to get the final point in the virtual world. You really need to only do this calculation 3 times to define the plane,

[JAVA3D] How can I give transparency to a VRML object?

2004-08-06 Thread Melina Alberio
Hello, I'm trying to set transparency to a VRML object. But all the Java 3D examples I saw, use Appearance, TransparencyAttributes and TransparencyInterpolator. But I don't know how to set Appearance for a Scene object. Pieces of my code Below: private Scene scene; private BranchGroup sceneBranch