Yes I purchased that book and found it interesting. Yes it is possible to
build geometry and keep it within view and facing the user, but its really
like using a hammer when a screwdriver is called for. The question is
whether or not the graphics2d interface is working as designed. Everyone
seems to indicate that they cannot get it to work with acceptable
performance, but my understanding was that this was Sun's answer to the
overlay problem. In fact in reading through the e-mail archive there are
several instances where sun's engineers responded that there would be
overlay support. In fact I read somewhere on their site a list of features
for 1.2 included support for overlays. I am assuming that this means the
graphics2d handle.
So the options are:
1-Overlays should be coded using the graphcis2d interface handle
2-Overlay support has not yet been implemented
3-Overlay support is handled by attaching geometry to the view side of the
scene graph
If the answer is 1, then it is either broken or I am using it incorrectly.
Dave Yazel
----- Original Message -----
From: Jon Barrilleaux <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 21, 2000 4:08 AM
Subject: Re: [JAVA3D] Building Overlays, lets figure this out :)
Take a look at the book "3D User Interfaces with Java 3D"
(www.manning.com/barrilleaux) for some ideas and examples of doing
overlays in Java 3D. Chapter 6 discusses visualization techniques in
general, which includes display and world overlay, and chapter 21
discusses implementation of display and world "pseudo" overlay
techniques in Java 3D.
--jon
> Date: Sun, 20 Aug 2000 11:47:12 -0400
> From: David <[EMAIL PROTECTED]>
> Subject: 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
>
--
__________________ JMB and Associates, Inc. ___________________
Jon Barrilleaux 3800 Lake Shore Ave. Consulting for 3D
[EMAIL PROTECTED] Oakland, CA 94610 Web Applications
510.444.4370 voc & Tech Industry
510.444.0231 fax www.jmbaai.com Management
===========================================================================
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".