Vladimir Olenin wrote:
>
> Just jar the your.wrl file and load it via jar: protocol like this:
> jar:http:\\yourdomain\yourjar.jar!\your.wrl. For further information
> see API doc for JarURLConnection class.

The problem with this is that VRML itself is not defined to work from a
JAR file. Don Brutzman was extremely keen for me to get that into the
EAI and scripting specs, but it never happened because there was no
elegant solution at the time. I then left VRML efforts.

Sometime later, I can up with a nice solution. I proposed to Don to make
the appropriate wording additions to the EAI spec but got knocked back.
The grounds were that the EAI was going through the ISO process (which
it _still_ hasn't to my knowledge). Therefore the behaviour of VRML in
any archived format (JAR, ZIP, CAB etc) is completely non-deterministic.

The problem is dealing with relative references. For example, if you
refer to a texture as "image.png" how does the browser know whether to
fetch it from the same dir in the JAR file, or from the same directory
that the JAR file was located in? From memory, the J3D VRML loader
doesn't have any capabilities at all for dealing with these issues.

--
Justin Couch                                   Author, Java Hacker
Snr Software Engineer                             [EMAIL PROTECTED]
rbuzz.net                           http://www.vlc.com.au/~justin/
Java3D FAQ                                 http://www.j3d.org/faq/
-------------------------------------------------------------------
"Look through the lens, and the light breaks down into many lights.
 Turn it or move it, and a new set of arrangements appears... is it
 a single light or many lights, lights that one must know how to
 distinguish, recognise and appreciate? Is it one light with many
 frames or one frame for many lights?"      -Subcomandante Marcos
-------------------------------------------------------------------

===========================================================================
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".

Reply via email to