POV-Ray : Newsgroups : povray.general : pigment image map big image : Re: pigment image map big image Server Time
29 Jul 2024 02:24:58 EDT (-0400)
  Re: pigment image map big image  
From: Alain
Date: 2 Jul 2013 16:24:18
Message: <51d336f2$1@news.povray.org>

> so I did scale the pigment to a very large value but in vain :(
>
> Ankur.
>

If you only scale the image without rotating it, you get an incorrect 
result: A slice of the image smeared infinitely along the Z direction.

The key is to rotate the image so that is maps correctly on the 
horizontal plane.

Next, you scale it by a reasonable amount to fit your needs. The exact 
scaling needed depends on the exact context of your scene. It also 
depend on the proportions of your image. If your image is 800x600 
pixels, you need a 4:3 ratio in your scaling.

It can be something like:
image_map{jpeg "your image.jpg" rotate 90*x scale<100,1,75>}

In this sample, the image will cover 100 by 75 unit on the ground plane 
and repeat infinitely in both directions.
Use the "once" keyword if you want only one instance of the image.
It can help to use once when adjusting the scalling.



Alain


Post a reply to this message

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