Page 179
Quick Nav Bar
<<   Previous Contents
Selection
Op Index
Parent User Notes
Index
Glossary
Next   >>


orrery.w3d (a scene file, space station, planet, moon, sun, orbits)

Image map: (full res in docs/pics)

Image map: (full res in docs/pics)

The Resulting Render

Tip:

...a little something from the propeller-heads at Black Belt Systems
This scene file requires all of the preceeding scene pages, including textures.w3d, the cylinder, the docking bay and the space station. You need to get the full resolution images out of the pics sub-directory and put them somewhere that makes sense to you, or, if you prefer, you can simply re-direct the imagemap portions of the scene right to the pics sub-directory by changing only the path portion of the imagemap and bumpmap statements. Make sure that all the library commands point to the right place, and that all the files are in the library and/or the scene directory where they should be. Then point the Ray Trace operator to the scene file, and you should be up and running!

If you take some time to study and understand this example, you'll be well along the way to being able to do anything you want with the Ray Trace operator. This example uses image maps, bump maps, expressions, axis', libraries, textures, light emission, light radiation, transparency mapping (in the space station image map), keyframing, viewer and viewtarget controls, stacking, aned more yet. In short, it's a virtual classroom for many of the Ray Tracer's most interesting and useful features.

Note:

Keep this in mind...
You can page through the W3D samples using Next and Previous in the Quick Navigation bars at the top and bottom of the page. You can also get directly back to the Ray Trace operator page by clicking on Parent. These documentation pages are subordinate to the Ray Trace operator.

To use the examples on these pages, you should copy and paste the SceneScript content into a text editor (we highly recommend TextPad which can perform SceneScript syntax highlighting.) Then save the text file to a location (or locations) in your filesystem where you want to maintain your ray trace files.

We suggest you create a filesystem location for library files (such as textures, standard objects and similar commonly used items) and a second filesystem location for "scenes" that use these library items.

The reason we don't build these structures for you is that every beta tester we had who worked with the ray trace operator preferred a completely different setup, and we were at a loss to try and create something that would work for everyone.

For your reference, here's what we use at Black Belt Systems:

c:\w3\for library files
c:\w3scenes\for scene files



Here's a "baby orrery", earth, sun, moon, space station
This is best viewed from -7 at -22 on X, 0 on others

This file demonstrates nesting of axis, as well as rotation of,
and independent translate of, axis and sphere elements.

<libpath "c:\w3\">
<lib "textures.w3d">
<seed 6809>

<splined 0>
<keys "totframes" 1 120>
-------- these are for the solar system -------------
<keys "yr"   1 0      totframes 357>
<keys "yer"  1 0      totframes 714>
<keys "yyr"  1 0      totframes 4284>
<keys "xr"   1 0      totframes 357>
<keys "solar" 1 .03 60 .025 120 .03>
--------- these are for the space station -----------
<keys "offset" 1 1.4>
<keys "soffset" 1 2.5>
<keys "bard" 1 1.28>
<keys "bd" 1 .18>
<keys "eb" 1 .22>
<keys "sl" 1 2>
<keys "bl" 1 3.6>
<keys "ssize" 1 1>
<keys "xr"   1 0      120 357>

<viewlocation 0 0 7>
<viewtarget 0 0 0>

    <apply "matte">
    <ambient .4>

    <normalize>

<axis 0 0 0 "fi">
    <push>
        <structure>
            <translate 0 0 0>
            <axis 0 0 0>
                <apply "sky">
                <color0 1 1 .75>
                <color1 1 0 0>
                <position 0 0 0>
                <texturemap "marble" solar 5>
                <radius .9>
                <rotate 0 yr 0>
                <lightsource 1>
                    <object sphere>
            </axis>
        </structure>
    <pop>
<object bound>
    <push>
        <rotation 0 yr 0>
        <translate 2 0 0>
        <axis 0 0 0 "fie">
            <rotation 0 0 0>
            <position 0 0 0>
            <radius .25>
            <color 0 1 0>
            <roughness 0>
            <brilliance 0>
            <rotate 0 yer 0>
            <imagemap "c:\images\textures\planets\earthmap.jpg">
            <translate 0 0 0>
                <object sphere>
                <rotate 0 yyr 0>
                <translate .5 0 0>
                <axis 0 0 0 "fo">
                    <translate 0 0 0>
                    <position 0 0 0>
                    <radius .1>
                    <color .7 .7 .7>
                        <imagemap "c:\images\textures\planets\moonmap.jpg">
                        <object sphere>
                </axis>
        </axis>
    <pop>
<object bound>
    <push>
        <rotate xr 45 0>
        <axis 0 2.5 0 "space station">
            <lib "sstation.w3d">
        </axis>
    <pop>
</axis>
<object bound>

    <position 0 0 0>
    <color 1 1 1>
        <object light>




Quick Nav Bar
<<   Previous Contents
Selection
Op Index
Parent User Notes
Index
Glossary
Next   >>
Page 179

WinImages F/x, WinImages Morph and all associated documentation
Copyright © 1992-2007 Black Belt Systems ALL RIGHTS RESERVED Under the Pan-American Conventions

WinImages F/x Manual Version 7, Revision 5, Level B

HTML Documentation Management System © 1992-2007 Black Belt Systems