|This is a child page. You can use Parent in the quick nav bar at the top or the bottom of the page to navigate directly back to the parent of this page. Some child pages are more than one level deep, and in that case will require more than one Parent click to reach the outermost document level.|
22.214.171.124 - structure (SceneScript element)
This term should be used before every group of objects that are conceptually one item; the group should then be followed by the </structure> element. The <structure> language element pairs tell the ray trace engine that each differing object (rect, triangle, sphere) between them is a member of the same physical object. This is used in the refraction of light and calculation of translucency, and so it is particularly important to use this with "solid" items (such as the gems we provide as an example.)
To explain a little more, when you make a complex object that is to have the appearance and lighting behaviour of being solid, you construct it out of the relatively simple primitive objects the tracer can render: Triangles, spheres and rectangles. In the case of our faceted gem examples, the objects are made up of a fairly large number of triangles, placed and sized precisely where the faceted surfaces of a gemstone would be.
Because refraction takes place when light transits from an objct of one IOR (index of refraction) to an object (or non-object) with a differing IOR, the tracer must know when light is entering and leaving a specific multi-primitive object in order to correctly adjust the light rays. In the case of these gems, light can enter the object through a facet and it can exit the object though a facet; in both instances, the IOR is known to change, so the light ray is bent (refracted) appropriately.
It is entirely possible for an object to have internal structures of the same (or different) IOR and/or translucency; if that is the case, the renderer knows what to do based on which structure the objects belong to.
With all that in mind, the following shows how to use the <structure> and </structure> language elements:
Remember: If you don't want light to bend, make sure you set the IOR of your objects to the same value as that of the atmosphere!
See also: The </structure> language element
, Previous Page
. Next Page
WinImages F/x, 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 6, Level A
This manual was generated with wtfm
wtfm uses aa_macro and SqLite
aa_macro uses python 2.7