Hi Everyone,
Doing additional 2D drawing after hardware rending would affect your render
speed. You can simulate a 2D overlay by attaching 3D rectangles to your
ViewingPlatforms platform geometry. (Platform geometry are 3D shapes that
follow the view around your scene. If you place the rectangles directly
in front of your view (by giving them a nominal z transform) , they will
seem like a 2D overlay. You can map awt coordinates to j3D because?
consoleWidth = (java.lang.Math.tan (field of view / 2.0) * consoleZ) ;
consoleWidth = consoleWidth * 2.0;
consoleHeight = (canvasHeight / canvasWidth) * consoleWidth;
Then all you have to do is invert your y parameters ( because +y in awt
goes down instead of up). We have managed to get this to work quite well
in our j3d app. (In some rare circumstances it disappears for brief periods
of time). The words on our 2D overlay look a bit ugly, but that's a failed
experiment that we are about to fix J
Hope this helps
Regards
Young.
::::::::::::::::::::::::::::::::::::::::::
Young Ly
Liquid Edge Games
http://www.roboforge.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".