POV-Ray : Newsgroups : povray.newusers : Internal surface visible with Merge : Re: Internal surface visible with Merge Server Time
4 Jul 2024 14:42:26 EDT (-0400)
  Re: Internal surface visible with Merge  
From: Alain
Date: 31 Oct 2010 13:50:11
Message: <4ccdac53$1@news.povray.org>

> Hi Stephen,
>
> It works nicely in the sample code, but it didn't completely solve the problem
> in my flask model. However,your advice did allow me to trace back the last
> problem. I use a transparent image_map with some text on one half of the flask
> and on the other half not. The "transparent" part of the .png seems to affect
> the texture of the entire half of the sphere.
>
> I could solve the problem by applying a blank .png image_map to the second half
> and now the textures are the same. Maybe not the best way of solving this, but
> it works for now. Many thanks for your time!
>
>
>
>

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


Post a reply to this message

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