Sorry, in my previous message I forgot to update the "subject".  I also
forgot to mention that what I am doing is not working.  So here it goes
again...

---------- Forwarded message ----------
Date: Tue, 28 Sep 1999 17:15:42 -0400 (EDT)
From: Helmuth Trefftz <[EMAIL PROTECTED]>
To: Discussion list for Java 3D API <[EMAIL PROTECTED]>
Subject: Re: [JAVA3D] Ask again: Run jav3D applet

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".

Reply via email to