POV-Ray : Newsgroups : povray.newusers : Internal surface visible with Merge : Re: Internal surface visible with Merge Server Time
4 Jul 2024 15:04:53 EDT (-0400)
  Re: Internal surface visible with Merge  
From: Alain
Date: 1 Nov 2010 15:40:22
Message: <4ccf17a6@news.povray.org>

> A>
>> In this case, you should try using a cylindrical maping using a
>> warp{cylindrical}. That way, you get somewhat less distortion and the
>> image on one side don't repears on the oposite side.
>>
>> Be sure to add "once".
>> Translate the image by -0.5*y to center it verticaly before scalling.
>> Use a scale statement before the warp: scale<1/3, 3,1>  will result in
>> your image covering 1/3 of the circumference and be 3 units high.
>>
>> Sample:
>> pigment{image_map{png "Your Image.png" once }translate -0.5*y
>> scale<1/3,3,1>  warp{cylindrical}}
>>
>> You may add a rotation on the Z axis before the scale to tilt the image
>> if you want.
>> Don't translate on the X axis before the warp as it will result in your
>> image been cut.
>>
>>
>> Alain
>
> Thanks Alain,
>
> I had never heard of the warp command before. I will give it a try this week and
> see what happens!
>
>
>
>

The warp is a somewhat "advanced" feature. Look at it in the 
documentations, the application I gave you is just one of the many uses 
for it.
Sections 3.5.12  Pattern Modifiers and 3.5.12.6  Warps (and followings) 
in the included documentation for the windows version.



Alain


Post a reply to this message

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