ok - thanks for the info.

At the moment I am doing some performance testing on Java3D.

I have a simple Java3d example which runs at one third the speed of an
identical openGL example. So I'm trying to figure out if the performance
loss is due to the Java3D multi-threading (since the opengl example is
single threaded), or whether it is mainly the Java3D traversal and rendering
that is slow, or both, or something else.

So I was trying to use immediate mode to get a single-threaded Java3d
example.


> -----Original Message-----
> From: Daniel Selman [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 26, 1999 10:18 PM
> To: Lucy Boyd-Wilson; [EMAIL PROTECTED]
> Subject: RE: [java3d] rendering a scene graph in immediate mode
>
>
> Lucy,
>
> As far as I know, it _is_ true... That is not to say that you
> could not
> recursively traverse the scenegraph yourself and render each
> node... Not
> really my cup of tea though! Presumably the logic was that if
> you're using a
> scenegraph and would like J3D to traverse it for you, you may
> as well use
> retained mode (?).
>
> Good luck! Intriguing problem, what are you trying to achieve?
>
> Daniel Selman
> Tornado Labs Ltd.
>
> Email:   [EMAIL PROTECTED]
> Web:     www.tornadolabs.com
> Phone:   +44 (0131) 343 2513
> Fax:     +44 07070 800 483
>
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Lucy
> Boyd-Wilson
> Sent: 27 March 1999 02:04
> To: [EMAIL PROTECTED]
> Subject: [java3d] rendering a scene graph in immediate mode
>
>
>
>
> I was just testing Java3D immediate mode.
> It seems that in immediate mode you can only render shapes
> and geometry (?!)
> I couldn't find any way to traverse and render a whole j3d
> scene graph.
>
> Someone, please tell me this isn't true....
>
>
> You can do this:
>       while(true) {
>               gc.clear();
>               gc.draw( cube );                // cube is a
> geometry or shape node
>               canvas.renderField(Canvas3DStats.FIELD_ALL);
>               canvas.swap();
>       }
>
> But I really want to do something like this:
>       while(true) {
>               gc.clear();
>               gc.draw( bgRoot );      // where bgRoot is a BranchGroup
>               canvas.renderField(Canvas3DStats.FIELD_ALL);
>               canvas.swap();
>       }
>
> thanks
>
> =====================================================================
> To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
> Java 3D Home Page: http://java.sun.com/products/java-media/3D/
>
>

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to