Serving Dive Files


Local Files

First things first, make sure you have set up your DIVEPATH to include the standard directories and your own directories. A .vr file can use c-macro substitution, but be aware that it only searches for headers file, indicated by .vh, on the DIVEPATH, not on absolute path names.

Served Files

Our local file server www-dept has been set up to serve DIVE files which have a MIME type of x-world/x-dive . You should be able to load our own example worlds using open on the world menu within DIVE.

You can set up Netscape to automatically start vishnu when it encounters a file with MIME type x-world/x-dive by adding the following

 x-world/x-dive;            vishnu %s
to your .mailcap file and
 x-world/x-dive             vr         
to your .mime.types file

Unfortunately Netscape does silly things with DIVE's diagnostic messages so you might get inundated with dialog boxes.


New Server Files

I have put the DIVE worlds served from www-dept into subdirectories of the Dive resource page. The absolute path for this is
/cs/www/www/htdocs/research/vr/Dive
There are 3 subdirectories you should be concerned with:

Note that when loading a file from the network, any new include files you define may well be on your own DIVEPATH, but not other peoples'. One way around this is to run your new objects and worlds through /lib/cpp before putting them on the server, or the simplest way is to save them from within vishnu which will have performed all the substitutions for you on loading.

Remember the same warning applies for texture and inlined scripts, but then you should give the complete URL of the file.


Anthony Steed, A.Steed@cs.ucl.ac.uk
Last modified: Tue Jun 18 15:12:46 BST 1996