Rendering a 3D Scene and Exporting to VRML
using Strata StudioPro 2.5 under Mac OS 8.1
|
ACG Home |
Instructor Home |
Class Home |
list of tutorials |
Project Goals
To complete the 3D portion of our web page we will return to Strata StudioPro
to:
- Set up the program to resume work on your model.
- Choose the rendering attributes for the scene.
-
Render a thumbnail image of the model, to be used for a hyperlink
to the actual 3d scene.
-
Export the model as a VRML file.
-
Keep in mind that the VRML file exported by Strata StudioPro will have limited
support for several rendering attributes.
-
The thumbnail rendering will however fully display all the settings
you may establish.
-
Edit the homepage HTML file to add a link to the VRML file, using SimpleText.
VRML (Virtual Reality Modeling Language) is a standard way to describe
the contents of a 3D scene. It is used in several web sites to give greater
immediacy to the viewers' experience. It's advantages include:
-
generally small file sizes (instead of a series of pre-computed animation
frames, the viewers download only the instructions necessary for their computer
to generate the actual animation). Also, the same scene, once downloaded
(or otherwise distributed to users--e.g., on a CD-ROM) can be re-used in
a variety of ways, speeding up subsequent interactions.
-
greater viewer control and, as a consequence, greter involvement: each
participant can select a unique viewpoint within the scene, while various interactive
options can be added in newer versions of the standard (VRML 2.0).
-
the opening of new ways to present information and tell stories, altogether
different from any traditional medium.
The main disadvantage of VRML is that it requires viewers to have access
to fairly powerful computers to properly experience the 3D environment. VRML
has also been hampered by spotty support in browser software, and a tortuos
and conflicted standardization process.
After completing the VRML file, we will return to our main HTML file to add
the necessary link to our new multimedia piece.
- Re-open your 3D logo using Strata StudioPro.
- Make sure you are still viewing an Orthographic projection (slider at the top of the document window).
- Switch to a shaded display (second pop-up menu at the top-left of the document window).
- As you work, switch to an appropriate view
- The object should be oriented so that the surface to be textured is parallel to the viewing screen.
- For instance, to apply a tiled texture to the top of the pedestal, we would switch to the Top view.
- Note that because of the way we built the pedestal, the texture will actually apply to its support column and base as well. The same is true of the other objects as well--rendering attributes apply throughout the object.
- If it is important to you to be able to texture differently the various parts of the pedestal, consider rebuilding the object from separate shapes, perhaps using 3D primitives.
- Render the scene whenever you need to check effects not displayed in the modeling window.
- Use the pop-up menu at the very bottom of the toolbox to choose the quality of the rendering (higher quality requires more time).
- For a quick check of texture placement, Scanline-->SL Quick is adequate.
- To see properly the effect of lighting changes, you will instead need one of the options from the Raytracing submenu.
- Choose the rendering camera tool
- Click and drag in the document window to select a small portion of the scene, including the textured object.
- A rendering window will appear on top of the document window and, after some time spent computing, a more accurate rendering will appear, allowing you to better judge the appearance of the textured object.
- To continue to work on your 3D model, you will want to close the rendering window. If at this time a dialog appears asking to save you can click 'No' (the dialog is for the 2D picture, not the 3D model).
| return to top |
- Review the techniques listed below, and use them to texture the objects in the scene.
Create and apply a new solid-color texture
- Use the selection tool to select the object you want to texture.
- If the Resource palette is not visible, display it using the Windows menu.
- Choose 'Simple Color' from the pop-up menu 'New' in the Resources palette.
- The 'Simple Color' dialog appears
- Enter a name for the texture.
- Click on the 'Color' button to bring up the Color Picker.
- Use any of the color models available (scrolling list on the left), to mix the new color.
- You also have the option of making the object transparent. For this project, however, transparency doesn't work too well because the VRML plugin will render transparent objects as nearly invisible.
- Click 'OK' to exit the dialog and apply the new texture to the selected object.
Create and apply a new glossy texture
- Use the selection tool to select the object you want to texture.
- Choose 'Surface Texture' from the pop-up menu 'New' in the Resources palette.
- The 'Surface Texture' dialog appears
- Enter a name for the texture.
- Click on the 'Color' button to bring up the Color Picker and choose a color.
- Drag the 'Gloss' slider to the desired setting. To see adjacent objects reflected in the textured object, gloss must be set to a value higher than 65%.
- Click 'OK' to exit the dialog and apply the new texture to the selected object.
Apply an existing texture to an object in the scene
- Make sure the object to be textured is selected.
- If necessary, click the Library button to expand the Resource palette.
- Find a texture you like:
- Use the tabs and the horizontal scroll bar at the bottom of the palette to see previews
of the textures applied to a default beveled square.
- Use the pop-up menu at the bottom-left of the palette to see a list of texture
names.
- Click on the texture preview to select it, then click the apply button:
- In the modeling window's Shaded display, the object will merely change color to an approximation of the dominant color in the texture.
- Remember to use the rendering tool whenever you need a more accurate view of your work.
| return to top |
- Lighting settings will be stored in the VRML file, but they are ignored by the Live 3D plug-in.
- Change the orientation and settings of the default light
- If necessary, use the Windows menu to display the Environment palette, and click on the Lights tab.
- In the dark circle in the middle of the palette, find the default light: a
white oval indicates its location, and a white line indicates its direction.
Drag the oval and the document window will update to show the effect of the
new lighting direction.
- Click on the 'Color' button to bring up the Color Picker. Choose the light's color. Click 'OK' to exit the Color
Picker.
- Drag the 'Intensity' slider to adjust the brightness of the light.
-
Create and adjust a new light
- Choose the Point Light tool
- Click in the document at the location of the new light. Adjust the radius of the light by dragging the handles on the red circles surrounding it.
- Make sure to check the position of the light from other views as well.
- Again use the camera at the bottom of the toolbox for a test rendering, to
better see the effect of your lighting adjustments.
| return to top |
- These additional environment effects are not included in the VRML file.
- The other tabs in the Environment palette allow you to add:
-
An infinite, textured ground plane.
- A backdrop gradient or image.
- Atmosphere effects such as haze or mist. Beware of overly dense fogs which may obscure your scene compltely.
- Environment effects will only appear in renderings (not in the modeling window).
| return to top |
This picture will be used as a thumbnail for the link from your web page
to your VRML file
-
Change your viewpoint to show the scene at its best
-
Use the first 3 tools at the top-left of the toolbox to, respectively, Pan,
Rotate, and Zoom your view of the scene.
-
If you get lost in the process, use the command Windows-->Fit Views to
All to return to your model.
-
Use the slider at the top of the document window to switch to a perspective
view ('Normal' or 'Wide Angle' lens).
-
Do a draft-quality test rendering. Close the rendering window (without saving)
and make further adjustments if necessary.
-
Render and save the final image as a JPEG file
-
Use the pop-up menu at the bottom of the toolbox to choose Raytracing-->Best
for rendering quality.
-
Use the rendering camera tool to select the most significant portion
of the scene. To keep download times short, keep the selection as small as possible to adequately represent your work.
-
The rendering window will appear on top of the document window as usual.
This rendering will take a bit longer, since there are many more computations
involved.
- Make sure that the rendering is still the active window, then use
File-->Save As to display the Save dialog
- Choose 'JPEG' from the 'Format' pop-up menu at the bottom of the
dialog
- Enter the filename (all lowercase) according to these rules:
- Your last name
- An underscore
- Your first name's initial
- Another underscore
- logo
- A period
- JPEG image file extension: jpg
- Sam Sample's file would be named sample_s_logo.jpg
- Click 'Save'
- Close the rendering window.
| return to top |
-
Use File-->Save As to display the Save dialog
-
Choose 'VRML 1.0' from the 'File Format' pop-up menu at the bottom of the
dialog.
-
Enter the filename (all lowercase) according to these rules:
-
Your last name
-
An underscore (Shift-hyphen)
-
Your first name's initial
-
A period
-
VRML world extension: wrl
-
Sam Sample's file would be named sample_s.wrl
-
Click 'Save'
-
Strata StudioPro won't be able to open the VRML file if you need to make
changes to the scene. Make sure to also use the File-->Save command to
update the Strata version of your document, and keep it on your disks.
-
You are now done with Strata StudioPro, and you might want to quit the program
to free up memory.
| return to top |
- Collect the files exported by Strata StudioPro (the .wrl file, and any .jpeg files for textures) in a folder. Call
the folder:
-
Your last name
-
An underscore (Shift-hyphen)
-
Your first name's initial
-
An underscore (Shift-hyphen)
-
3d
-
Sam Sample's folder would be named sample_s_3d
-
Drag the icon of your current '.html' file and drop it on SimpleText
-
Click to place the insertion point where you would like to see the thumbnail
linking to your VRML logo scene.
-
As always, make sure that the insertion point is not within a portion of
text enclosed in angle brackets ('<' and '>')
-
Enter the tag to display the thumbnail:
-
<IMG SRC="YourJpegFileNameGoesHere">
-
Before the IMG tag, enter the start tag for the link to your VRML
file:
-
<A HREF="YourFolderNameGoesHere/YourVrmlFileNameGoesHere">
-
After the IMG tag, enter the end tag for the link:
-
Following all of the above instructions, Sam Sample's HTML file would contain
this line:
-
<A HREF="sample_s_3d/sample_s.wrl"><IMG
SRC="sample_s_logo.jpg"></A>
Before leaving, make sure you transfer your new 3d folder and the edited
HTML file to the file server for posting to the web server.
| return to top |
Additional Info:
Copyright by Sandro Corsi.
Last modified 12 Nov 98.