Hi,
I am trying to set the default coloring mode of a scene to gouraud
shading by changing the coloring attributes of the whole Canvas3D.
This is the code I am using:
Canvas3D c = new Canvas3D(null);
add("Center", c);
ColoringAttributes ca = new ColoringAttributes();
ca.setShadeModel(ColoringAttributes.SHADE_GOURAUD);
Appearance app = new Appearance();
app.setColoringAttributes(ca);
c.getGraphicsContext3D().setAppearance(app);
BranchGroup scene = createSceneGraph(c);
SimpleUniverse u = new SimpleUniverse(c);
u.getViewingPlatform().setNominalViewingTransform();
u.addBranchGraph(scene);
Any suggestions are most welcome.
Thanks.
-------------------------------------------------------
Helmuth Trefftz
Rutgers University
e-mail: [EMAIL PROTECTED]
tel: (732) 445 0561 fax: (732) 445 4775
-------------------------------------------------------
===========================================================================
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".