Hello,
i'm new to java 3d and i would like to know how can i load a vrml file
into a scene object.(i'm using vrml files to construct NURBS,that to my
knowledge are not directly supported by j3d)i've already downloaded
vrml97.jar and put it in: C:\jdk1.3.1_01\jre\lib\ext and i'm using this
code:
VrmlLoader f = new VrmlLoader();
try
{
s = f.load(filename);
}
//catch part
BranchGroup b = s.getSceneGroup();
Appearance ap = createAppearance();
s3 = (Shape3D) b.getChild(0);
g[0] = (GeometryArray) s3.getGeometry();
s3.setGeometry(g[0]);
s3.setAppearance(ap);
but it does not seem
to work, i'll be extremly thankful for your help.
sincerly
--
Anissa
**************************************************************************************************
The contents of this email and any attachments are confidential.
It is intended for the named recipient(s) only.
If you have received this email in error please notify the system manager by sending
an email to ITS Helpdesk at [EMAIL PROTECTED] or the sender immediately
and do not disclose the contents to anyone or make copies.
ITS antivirus gateway has scanned this email for viruses, vandals and malicious
content.
**************************************************************************************************
===========================================================================
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".