|
![](/i/fill.gif) |
I'm using the Galaxy maker to make a BMP of a space background. But when
I map it to a plane, POV for windows 3.02 gives me an illegal operation.
How do I use a BMP as a background to a plane where Z is the plane
normal?
Here is my code:
plane
{
z, // <X Y Z> unit surface normal, vector points "away from surface"
1.0 // distance from the origin in the direction of the surface normal
clipped_by {box { <0, 0, -1>, <1, 1, 1> } }
// texture pigment {} attribute
// create a texture that lays an image's colors onto a surface
// image maps into X-Y plane from <0,0,0> to <1,1,0>
texture { pigment {
image_map
{
sys "galaxy.bmp" // the file to read (iff/gif/tga/png/sys)
map_type 0 // 0=planar, 1=spherical, 2=cylindrical, 5=torus
interpolate 2 // 0=none, 1=linear, 2=bilinear, 4=normalized
distance
once
} // image_map
}
}
}
Post a reply to this message
|
![](/i/fill.gif) |