Hi Vladimir
i did load the file viz url , it could load the .lws file but it still cannot access
the .lwo file which is part of the .lws file
here is my code..
// Construct the Lw3d loader and load the file
Loader lw3dLoader = new Lw3dLoader(Loader.LOAD_ALL);
Scene loaderScene = null;
URL url = getClass().getResource("captain.lws");
try {
loaderScene = lw3dLoader.load(url);
}
catch (Exception e) {
System.err.println("Exception loading file: " + e);
System.exit(1);
}
the problem is when the loading of the .lwo file, the is an LWOparser exception
Thx
Hope u can help..
bye
-----Original Message-----
From: Vladimir Olenin [SMTP:[EMAIL PROTECTED]]
Sent: Monday, February 28, 2000 3:56 PM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] loading lightwave file in applets?
If u want to load it from applet, u'd have to use the URL as your
path. Put all files that describe the model into one directory and
load your model via URL (if there would be some error like 'can't set
baseURL', just ignore it - it's a bug). So, u'd really need to use
full path. To construct it, u can use getCodeBase method of the
Applet class.
vladimir
-=V=-
>-------<=============>-------<
Join in Java community now!
http://JavaCafe.VirtualAve.net/
>-------<=============>-------<
In your previous letter u wrote:
--------------------------------
JS> Hi all
JS> Has anyone successfully loaded a lightwave file in an applet? Even when i hardcode
the location of the file in my code (which i dont like actually), it still cannot find
the object file. .lwo
JS> when i run it as an applet. I would like to only specify the name of my file, not
the entire path. How should i go about this?
JS> Thx
JS> Yours sincerely,
JS> Janet
JS> ===========================================================================
JS> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
JS> of the message "signoff JAVA3D-INTEREST". For general help, send email to
JS> [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".
===========================================================================
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".