Hi,
I am searching for an easy way to map an environment map onto a box or a sphere
in POV-Ray.
How would you map a texture in cube format onto a box?
Thanks,
Leibniz
Wasn't it Leibniz who wrote:
>Hi,>>I am searching for an easy way to map an environment map onto a box or a sphere>in POV-Ray.
It depends what exactly you mean by environment map.
Some 3d graphics systems use the term "environment map" for a nasty
kluge that they use to avoid calculating reflections. POVRay calculates
reflections correctly, so there's no need for the kluge. Apply your
environment map pigment to the sky_sphere and allow it to be reflected.
Id you've got an environment map texture that is designed to be placed
on a cube, then apply the texture to a large cube that contains the
scene and apply ambient 1 (because you don't want to cast shadows onto
the sky).
If you don't want the environment to be visible in the background of
your scene, use the no_image keyword so that you only get reflections of
it.
--
Mike Williams
Gentleman of Leisure