|
|
Timwi schrieb:
> Question #1:
> How do I use a simple bitmap file as a simple texture on a simple box?
> Sounds simple, doesn't it?
>
> Question #2:
> Why is there absolutely nothing about this in any documentation,
> anything Google can find, no working examples, nothing?
Answer #1 and #2:
Check out section 3.5.1.5 "Image Maps" in the documentation.
As for mapping this onto a box, that section provides a general
description of how the image is mapped into 3D space (by default), which
should be so darn easy to adapt to mapping it onto a box that probably
authors of documentation and sample scenes deemed it too trivial to
provide examples:
-----------------------
By default, the image is mapped onto the x-y-plane. The image is
projected onto the object as though there were a slide projector
somewhere in the -z-direction. The image exactly fills the square area
from (x,y) coordinates (0,0) to (1,1) regardless of the image's original
size in pixels. If you would like to change this default you may
translate, rotate or scale the pigment or texture to map it onto the
object's surface as desired.
In the section "Checker", the checker pigment pattern is explained. The
checks are described as solid cubes of colored clay from which objects
are carved. With image maps you should imagine that each pixel is a
long, thin, square, colored rod that extends parallel to the z-axis. The
image is made from rows and columns of these rods bundled together and
the object is then carved from the bundle.
-----------------------
Post a reply to this message
|
|