POV-Ray : Newsgroups : povray.newusers : Want to attach one object to another : Re: Want to attach one object to another Server Time
25 Jun 2024 20:46:16 EDT (-0400)
  Re: Want to attach one object to another  
From: Le Forgeron
Date: 21 Jun 2013 09:52:36
Message: <51c45aa4$1@news.povray.org>
Le 21/06/2013 13:39, gharryh nous fit lire :
> I changed a bit to get this image:
> http://www.harry-arends.nl/werkgroep/images/WarpText.png
> But as can be seen it warpt totatly around. The height is correct but it should
> cover only 1/3rd of the cylinder.
> 
> #declare label =
> object{
>     cylinder{<0,0,0><0,70,0>dia/2+.25
>         pigment{
>             image_map {
>                 jpeg "RE55s.jpg"
>                 map_type 2
>                 once
>                 interpolate 4
>             }
>             scale <1,24,1>  // labelheight
>         }
>     }
> }
> 
> 
> 

Try that:

cylinder{<0,0,0><0,70,0>dia/2+.25
	pigment{
		image_map {
                jpeg "RE55s.jpg"
        once
	interpolate 4
		}
		scale <1/3,24,1/3>  // labelheight
  warp { cylindrical orientation z dist_exp 0  }
	}

}

Or make RE55s.jpg three time it's current width, with a neutral colour
for the extension.


Post a reply to this message

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