Can we get an answer from Sun whether the current implementation of
getGraphics2D is broken?
Dave Yazel
> ----------
> From: David[SMTP:[EMAIL PROTECTED]]
> Reply To: Discussion list for Java 3D API
> Sent: Sunday, August 20, 2000 11:47 AM
> To: [EMAIL PROTECTED]
> Subject: [JAVA3D] Building Overlays, lets figure this out :)
>
> Well I have read every archived message on this subject and it looks like
> there is still no definitive solution. Anyone who is writing a game using
> Java3d will have to solve this problem. We need to be able to place 2d
> objects on top of the canvas3d.
>
> I have tried using the 2d graphics object inside the postRender() method
> of
> the canvas3d object:
>
> public void postRender() {
> super.postRender();
> if (canvas2d != null) {
> canvas2d = getGraphics2D();
> canvas2d.setColor(new Color(255,255,255));
> canvas2d.drawLine(0,0,100,100);
> canvas2d.drawRect(100,100,40,40);
> canvas2d.flush(true);
> }
> }
>
>
> But as has been remarked here on a number of occasions this is incredibly
> slow. So slow it is not usable. Someone had suggested billboards, but
> unless we can attach this to the right side of the screen graph so it
> moves
> with the view, I am not sure how this would work.
>
> If anyone has solved this problem and could post working code then I would
> greatly appreciate it. Otherwise we need to figure out something, even if
> it is low level at the graphics context level.
>
> Dave Yazel
>
> ==========================================================================
> =
> 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".