home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Crawly Crypt Collection 1
/
crawlyvol1.bin
/
tt
/
raysh402
/
guide.tex
/
node35_mn.html
< prev
next >
Wrap
Text File
|
1992-02-09
|
4KB
|
96 lines
<H1><A ID="SECTION00920000000000000000">
Image Texturing</A>
</H1>
<P>
<#742#><#2015#><EM>Rayshade</EM><#2015#><#742#> also supports an <#743#><TT>image</TT><#743#> texture. This texture
allows you to use images to modify the characteristics of a surface. You
can use three-channel images to modify the any or all of
the ambient, diffuse, and specular colors of a surface.
If you are using the Utah Raster Toolkit,
you can also use single-channel images to modify surface reflectance,
transparency, and the specular exponent. You can also use a single-channel
image to apply a bump map to a surface.
<P>
In all but the bump-mapping case,
a component is modified by multiplying the given value by the value
computed by the texturing function. When using the Utah Raster Toolkit,
surface characteristics are modified in proportion to the value of
the <#744#><EM>alpha</EM><#744#> channel in the image. If there is no <#745#><EM>alpha</EM><#745#> channel,
or you are not using the Utah Raster Toolkit, <#746#><EM>alpha</EM><#746#> is assumed to be
everywhere
equal to 1.
<P>
<DL>
<DT><STRONG><#5011#><#5011#></STRONG></DT>
<DD><#1522#><TT>component</TT><#1522#> ;SPMlt;<#1523#><EM>Component</EM><#1523#>;SPMgt;
<BR> The named component will be modified.
</DD>
</DL>Possible surface components are:
<#751#><TT>ambient</TT><#751#> (modify ambient color),
<#752#><TT>diffuse</TT><#752#> (modify diffuse color),
<#753#><TT>specular</TT><#753#> (modify specular color),
<#754#><TT>specpow</TT><#754#>, (modify specular exponent),
<#755#><TT>reflect</TT><#755#>, (modify reflectivity),
<#756#><TT>transp</TT><#756#> (modify transparency),
<#757#><TT>bump</TT><#757#>, (modify surface normal).
The <#758#><TT>specpow</TT><#758#>, <#759#><TT>reflect</TT><#759#>, <#760#><TT>transp</TT><#760#>, and <#761#><TT>bump</TT><#761#>
components require the use of a single-channel image.
<P>
<DL>
<DT><STRONG><#5014#><#5014#></STRONG></DT>
<DD><#1526#><TT>range</TT><#1526#> <#1527#><EM>high low</EM><#1527#>
<BR> Specify the range of values to which the values in the
image should be mapped. An value of 1 will
be mapped <#765#><EM>high</EM><#765#>, 0 to <#766#><EM>low</EM><#766#>. Intermediate
values will be linearly interpolated.
</DD>
</DL>
<P>
<DL>
<DT><STRONG><#5017#><#5017#></STRONG></DT>
<DD><#1530#><TT>smooth</TT><#1530#>
<BR> When given, pixel averaging will be performed in order
to smooth the sampled image. If not specified, no averaging
will occur.
</DD>
</DL>
<P>
<DL>
<DT><STRONG><#5018#><#5018#></STRONG></DT>
<DD><#1533#><TT>textsurf</TT><#1533#> ;SPMlt;<#1534#><EM>Surface Specification</EM><#1534#>;SPMgt;
<BR> For use when modifying surface colors, this keyword specifies
that the given surface should be used as the base
to be modified when the <#775#><EM>alpha</EM><#775#> value in the image
is non-zero. When <#776#><EM>alpha</EM><#776#> is zero, the object's
unmodified default surface characteristics are retained.
</DD>
</DL>The usual behavior is for the object's default surface properties to
be used.
<P>
<DL>
<DT><STRONG><#5021#><#5021#></STRONG></DT>
<DD><#1537#><TT>tile</TT><#1537#> <#1538#><EM>un vn</EM><#1538#>
<BR> Specify how the image should be tiled (repeated) along the
<I>u</I> and <I>v</I> axes.
If positive, the value of <#781#><EM>un</EM><#781#> gives the number of
times the image should be repeated along the <I>u</I> axis, starting
from the origin of the texture, and positive <#782#><EM>vn</EM><#782#> gives the
number of times it
should be repeated along the <I>v</I> axis. If either value is zero,
the image is repeated infinitely along the appropriate axis.
</DD>
</DL>Tiling is usually only a concern when planar mapping is being used,
though it may also be used if image textures are being scaled. By default
<#784#><EM>un</EM><#784#> and <#785#><EM>vn</EM><#785#> are both zero.
<P>
A mapping function may also be associated with an image texture.
<P>