Yes, I'd like to see your code if you would be kind enought to email it to me. Thanks.
Mark McKay
James Goldwater wrote:
As far as I can tell (and I'm so _not_ an expert at this) - you can't. Although you can get a Graphics2D object from a Canvas3D and draw on that, it absolutely kills performance.
The j3d.org packages include examples of overlay classes, which kind-of allow you to fake it. What these do is however a mere convenience: they just insert the relevant 2d objects in the 3d universe at a z=0 position for your viewpoint.
I ended up doing this myself manually: I used the LocalToWindow class (found on Sun's java3d-interest mailinglist archives) which translates local 3d coords to window coords, and wrote an inverse function. But that may not be appropriate in your application. (Mail me offlist for the code if you want).
I look forward to being contradicted!
James.
Mark McKay wrote:
What is the best way to write static 2D data to a Canvas3D? For example, if I wanted to draw a title centered at the top of my screen (which would be positioned relative to the dimensions of it's AWT container rather than scene geometry), what would be the best way to do this? Reading through the docs has left me confused as to the best way to do this.
Mark McKay -- http://www.kitfox.com
===========================================================================
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".
-- James Goldwater I.T. Consultant 020 8949 7927 (mobile 078 999 55 265)
Preferred GPG Key: A2137B98 (pgp.mit.edu)
===========================================================================
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".
=========================================================================== 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".