Re: relative URLs VRML viewed from HTML-browsers

David Mott ([email protected])
Fri, 12 May 1995 17:34:09 -0700


In response to Steffen Meschkat <[email protected]>:

>> Relative URLs in a VRML scene get resolved with respect to the local temporary
>> file if webspace is fired from netscape following a link to a VRML document.
>> Thus, it is necessary to go within webspace directly to the respective URL if
>> one wants to follow links in the scene.

This is not true if your mailcap file is set up correctly.
Netscape 1.1S sends the real URL to webspace through the mailcap.

Do you have netscape 1.1S?
Does your /usr/local/lib/netscape/mailcap have this entry?

x-world/x-vrml; /usr/sbin/webspace -remote %s -URL %u ; \
description="VRML document"

Note the %u gets filled in by netscape.

We are very much opposed to the idea of putting

DEF BASE Info {
string "http://www.artcom.de/vrml/welcome.wrl"
}

into each .wrl file. This mechanism would be a nightmare
to maintain if files are ever moved. Also, this Info would
have to exist in every inline file in the case that those
files are viewed on their own.

David Mott, Silicon Graphics ([email protected])
<My home page, http://reality.sgi.com/employees/mott>
<Inventor Info, http://www.sgi.com/Technology/Inventor.html>
<WebSpace Info, http://www.sgi.com/Products/WebFORCE/WebSpace>