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.

§ 16.90.6.6 - Image Maps

Let's add some life to this ray trace. The easiest way to do this is to map an image onto the sphere. The image below will make the sphere look like a pool ball.


for best results, sphere wraps should be pi (3.1415926...) times as wide as they are high.
Bring in the surface texture library:  <libpath "c:\w3\"  <lib "textures.w3d" Create pool ball:  <normalize  <position 0 0 0  <radius 3  <apply "glossy"  <color 1 0 0  <imagemap "c:\imagemaps\raytrace_imagemap_1.jpg" Wrap sphere with the image  <object sphere "My Sphere" Optimize trace:  <object bound Light:  <normalize  <position 50 50 -75  <color 1 1 1  <object light "light_1" Camera:  <viewlocation 0 0 14  <viewtarget 0 0 0

This is the end product of the script

But that's just the beginning... Go on.

Keyboard Navigation
, Previous Page . Next Page t TOC i Index o Operators g Glossary
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

Valid HTML 4.01 Loose
 

This manual was generated with wtfm
wtfm uses aa_macro and SqLite
aa_macro uses python 2.7
Page 241
box