POV-Ray : Newsgroups : povray.general : Image map doesnt start at given coordinates : Re: Image map doesnt start at given coordinates Server Time
31 Jul 2024 08:22:06 EDT (-0400)
  Re: Image map doesnt start at given coordinates  
From: Christian Froeschlin
Date: 24 Jul 2007 04:53:09
Message: <46a5bdf5$1@news.povray.org>
> What do I have to do to make the mapping start from the first point and not
> from the middle of the area?

The texture lives independentantly in 3D and does not care
to which object you apply it. So it is your responsibility
to have the texture scaled, rotated and translated so that
it fits on your object. You should be aware the the image
map originally occupies a square with side length 1, so
you will need to apply different scaling in y and z, and
translate the texture until it fits.

Actually, it is usually easier to apply the texture to a
normalized object (such as a box {0,1}), and then translate,
scale and rotate it all together. Also, your box should have
a thickness > 0 to avoid rendering artefacts.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.