 |
Building 3D Models for the Web
Publishing VRML Worlds
|
Follow these steps to publish your VRML worlds on the Web.
| Desktop method | Server method
| Giving public access |
Method 1: Developing your worlds on a desktop computer
-
Create your file(s) on the desktop computer using an appropriate application,
such as MS Word, Simpletext, Photoshop or Ray Dream 3D.
-
Select "IUP Vax" under the Apple menu.
-
Ignore the window that prompts for your VMS username or press Control-z
to cancel it.
-
Under the File menu, select Open Connection.
-
In the Session Name field, enter the name of one of the SGIs, cheetah.ma.iup.edu,
jaguar.ma.iup.edu, puma.ma.iup.edu or leopard.ma.iup.edu. It doesn't matter
which one you log into because they all share the same Web directories.
-
Click on OK.
-
Enter your SGI username and password.
-
Use the cd command to go to the directory on the SGI server where you want
to publish your VRML world. For example,
jaguar 1% cd public_html
or
jaguar 1% cd /var/www/htdocs/courses/ls499/steel
-
Under the File menu, select FTP Enable.
-
Under the File menu, select Set Transfer Directory.
-
Select the Macintosh directory that contains your VRML file and texture
maps.
-
Click on the Set Directory button.
-
Under the Network menu, select Send FTP Command.
-
Follow the example session below. You need to type the parts in boldface.
-
jaguar 4% ftp -n 144.80.64.41
Connected to 144.80.64.41.
220 Macintosh Resident FTP server, ready
ftp> prompt
Interactive mode off.
ftp> mget *.wrl
local: hut.wrl remote: hut.wrl
200 This space intentionally left blank < >
150 Opening connection
226 Transfer complete
587 bytes received in 0.17 seconds (3.36 Kbytes/s)
ftp> binary
200 Type set to I, binary transfer mode [macbinary disabled]
ftp> mget *.jpg
local: rock.jpg remote: rock.jpg
200 This space intentionally left blank < >
150 Opening connection
226 Transfer complete
1220 bytes received in 0.04 seconds (32.76 Kbytes/s)
local: wall.jpg remote: birch.jpg
200 This space intentionally left blank < >
150 Opening connection
226 Transfer complete
11200 bytes received in 0.31 seconds (35.47 Kbytes/s)
ftp> quit
221 Goodbye
jaguar 5%
If you only want to publish certain files, then replace the mget
command with the get command. For example,
ftp> get hut.wrl
or
ftp> binary
ftp> get stone.jpg
You must transfer graphics, jpeg or gif, in binary mode. wrl files must
be transferred in ASCII mode, which is the mode in which the FTP program
starts.
Method 2: Developing your worlds directly on the Web server
Log onto one of the SGIs
-
Select "IUP Vax" under the Apple menu.
-
Ignore the window that prompts for your VMS username or press Control-z
to cancel it.
-
Under the File menu, select Open Connection.
-
In the Session Name field, enter the name of one of the SGIs, cheetah.ma.iup.edu,
jaguar.ma.iup.edu, puma.ma.iup.edu or leopard.ma.iup.edu. It doesn't matter
which one you log into because they all share the same Web directories.
-
Click on OK.
-
Enter your SGI username and password.
-
Use the cd command to go to the directory on the SGI server where you want
to publish your VRML world. For example,
jaguar 1% cd public_html
or
jaguar 1% cd /var/www/htdocs/courses/ls499/steel
Create a wrl file
You may either copy an existing wrl file and modify it, or start one from
scratch.
-
Copying an existing wrl file and modifying it:
-
Use the cp command to copy the file. For example, if you wanted to use
an existing file, village.wrl, to create a new forest.wrl,
jaguar 6% cp /usr/people/ls499 village.wrl forest.wrl
-
Use the pico editor to modify your file. For example,
jaguar 6% pico forest.wrl
-
Creating a wrl file from scratch:
-
Use the pico editor to create your file. For example,
jaguar 6% pico forest.wrl
Giving Public Access to Your Files
-
Log onto one of the SGIs, if you haven't already
-
cd to the directory in which you are publishing your files, if you haven't
already.
-
Type the following to give everyone read access to your files
jaguar 5% chmod 644 *
or if you are publishing files to your project directory, such as /var/www/htdocs/courses/ls499/steel,
and you want to give your team members permission to modify your files,
then type
jaguar 5% chmod 664 *
If you are publishing files in your public_html directory, you need to give
others execute access to your home directory and to your public_html
directory.
jaguar 6% chmod 711 ~
jaguar 7% chmod 755 ~/public_html
-
Type logout to log off of the SGI workstation.
Maintained by
H.
Edward Donley<hedonley@grove.iup.edu>
and Francisco E. Alarcón<falarcon@grove.iup.edu>
Last Modified Monday, 13-Aug-2001 16:53:27 EDT