Hi,
I am beginner to Java and Java 3D programming. I did a tutorial to draw a cube. Then I
added the package for a cone and tried to show a cone, but I get a blank screen. Here
is the code.
public BranchGroup createSceneGraph()
{
BranchGroup objroot = new BranchGroup();
/*Transform3D rotationx = new Transform3D();
Transform3D rotationy =new Transform3D();*/
Appearance appearance = new Appearance();
Material material = new Material(red, black,red,white,64);
appearance.setMaterial(material);
Cone cone = new Cone(1.0f, 2.0f, appearance);
objroot.addChild(cone);
return objroot;
}
This method is in a class that starts up a GUI extending the Frame class.
I set up constants for the colors red black grey and stuff.
Can anyone help me?
__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/
Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
===========================================================================
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".