I haven't looked deep into this class yet, but you might try using the
J3DGraphics2D class in Java 3D 1.2 Beta1.  It subclasses Graphics2D to
provide 2D rendering to a Canvas3D.  You can read about it in the API docs.
canvas3d.getGraphics2D() returns the a J3DGraphics2D object which then
allows you to use the Graphics2D drawString, etc, methods.  That might
help..

-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED]]On Behalf Of Williams, Christopher
Sent: Thursday, March 30, 2000 8:43 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Need an approach to writing an overlay to the Canvas3D


I am trying to draw some text as an overlay on the Canvas3D.  I have the
Canvas3D in a JFrame and was hoping to use the glass pane.  But I wasn't
able to get that to work and I think it has to deal with the
heavyweight/lightweight problem.  I added a drawString call to the postSwap
but this caused LOTS of flashing.  Does anyone have any ideas on how I might
be able to do this?  My canvas3d is a view of the earth and don't want to
have to place a text object there and have to worry about keeping it in the
correct place every time the view changes.
Thanks
Chris

===========================================================================
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".

Reply via email to