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/