Hi Carlos,
Try this:
Scene s = null;
VrmlLoader loader = new VrmlLoader();
try
{ s = loader.load(filename_wrlObj[0]);
}catch (Exception e)
{ System.err.println(e);
System.out.println("Problem to read VR achieve");
System.exit(1);
}
You will need x3D and VRML97, look at for more information:
http://www.j3d.org/utilities/loaders.html
Hope this help you.
Rgds....TGG
>From: Carlos Augusto Gurgel de Sousa <[EMAIL PROTECTED]>
>Reply-To: Discussion list for Java 3D API <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: [JAVA3D]
>Date: Thu, 6 Sep 2001 10:14:25 -0300
>
>Hi mailing-list,
>
>Anybody can tell me why this code fragment doesn't works?
>
>public class OpenFileController {
>
> private ModelLoader dxfLoader;
> private MyInternalFrame frame;
>
> public OpenFileController(String archiveName) {
>
> dxfLoader = new ModelLoader();
>
> Scene sceneExported = null;
>
> try {
> sceneExported = dxfLoader.load(archiveName); //here the
>compiler
> }
>//says:java.lang.NullPointerException
> catch(FileNotFoundException e){
> System.err.println( e );
> System.exit(1)
>.....}
>
>I'm using every important(an necessary packages) packages of NCSA
>portfolio
>but the ModelLoader doesn't work when i want ot load DXF
>(AutoCad release 12)Files.
>
>Thanx!!!
>
>_________________________________________________________________
>Get your FREE download of MSN Explorer at
>http://explorer.msn.com/intl.asp
>
>===========================================================================
>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".
===========================================================================
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".