Hi Daniel,

Would you please consider this:

How does one compute the size of a Canvas3D pixel in meters that is
currently being viewed (and compute it consistently)?

I use the viewing platform to view a world globe (Sphere class) representing
the earth. I have tried the following to do this with some success:

*       using two points in window (canvas) space, determine their j3d
coordinates using picking technology (intersection with the sphere)
*       using the two j3d points compute the size of a pixel from that
distance divided by the distance between the window points.

This approach works when the Canvas3D is at its final state (after the swap
?).  I used a behavior to detect a viewing platform change and then used
that fact to do the computation.  I have also tried computing the pixel size
immediately after changing the viewing platform position.  In both these
cases, the result is not always correct unless I retry the computation one
or more times (the Canvas3D is at it final state?).

How does one know when the canvas is finished rendering (or the scenegraph
completely traversed). I tried extending Canvas3D using my own postSwap or
postRender methods, but this proved futile in resolving the problem above.

Thanks in advance for shedding any light on this problem.

Aldo Di Pasqua

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to