That's exactly what i was talking about actually. If u take a look on
the LwsObject.java u'll see that there IS a handler for
Lw3dLoader.FILE_TYPE_FILENAME, but there is NO handler for
Lw3dLoader.FILE_TYPE_URL (look in the constructor, there is a switch
statement). I added the handler myself, also added some debug messages,
recompiled all that stuff and it turned out that if u
load LWS via URL, FILE_TYPE_URL node is triggered indeed. But as i
said, alas, there is no parser there. That's why in the default implementation
FILE_TYPE_URL is handled in 'else' node which is wrong. I was thinking
about writing my own handle 4 the objects passed via URL, but haven't
got enough time yet. But currently u ABSOLUTELY can't not load objects
via URL, because LwsObject class doesn't support it.
Know this doesn't solve the problem, but at least u wouldn't spend on
it as much time as i did. As to me, i was compelled to use VRML loader
instead.
vladimir
PS: Anyone got a message about 'DrivingSimulator - Java3D successful
project'? I sent it on Monday, but it is not in the mailing
list yet (Thursday, ~13.00 GMT)
-=V=-
>-------<=============>-------<
Join in Java community now!
http://JavaCafe.VirtualAve.net/
>-------<=============>-------<
In your previous letter u wrote:
--------------------------------
JS> Hi Vladimir
JS> 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
JS> here is my code..
JS> // Construct the Lw3d loader and load the file
JS> Loader lw3dLoader = new Lw3dLoader(Loader.LOAD_ALL);
JS> Scene loaderScene = null;
JS> URL url = getClass().getResource("captain.lws");
JS> try {
JS> loaderScene = lw3dLoader.load(url);
JS> }
JS> catch (Exception e) {
JS> System.err.println("Exception loading file: " + e);
JS> System.exit(1);
JS> }
JS> the problem is when the loading of the .lwo file, the is an LWOparser exception
JS> Thx
JS> Hope u can help..
JS> bye
JS> -----Original Message-----
JS> From: Vladimir Olenin [SMTP:[EMAIL PROTECTED]]
JS> Sent: Monday, February 28, 2000 3:56 PM
JS> To: [EMAIL PROTECTED]
JS> Subject: Re: [JAVA3D] loading lightwave file in applets?
JS> If u want to load it from applet, u'd have to use the URL as your
JS> path. Put all files that describe the model into one directory and
JS> load your model via URL (if there would be some error like 'can't set
JS> baseURL', just ignore it - it's a bug). So, u'd really need to use
JS> full path. To construct it, u can use getCodeBase method of the
JS> Applet class.
JS> vladimir
JS> -=V=-
>>-------<=============>-------<
JS> Join in Java community now!
JS> http://JavaCafe.VirtualAve.net/
>>-------<=============>-------<
JS> In your previous letter u wrote:
JS> --------------------------------
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".
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".
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".