POV-Ray : Newsgroups : povray.general : How to put image on one side of an object : Re: How to put image on one side of an object Server Time
26 Apr 2024 17:55:22 EDT (-0400)
  Re: How to put image on one side of an object  
From: Le Forgeron
Date: 5 Aug 2019 13:18:55
Message: <5d4864ff$1@news.povray.org>
Le 04/08/2019 à 20:55, Kima a écrit :
> Consider a simple cube as
> 
> superellipsoid{ <.25,0.25>
>   texture{ pigment{ color rgb<0.65,1,0.1>}
>            finish { phong 1}
>          }
> 
> I put an image on its surface as
> 
> 
> superellipsoid{ <.25,0.25>
>   texture{ pigment{
> 
>  image_map{ png "ad.png"
>             map_type 0
>             interpolate 2
>             once
>           }
> 
> }
>            finish { phong 1}
>          }
> 
> }
> 
> I have two problems:
> 
> 1. How can I keep the pigment color underneath to have a closed where has not
> been wrapped by the image?
> 
> 2. Wrapping starts from the left corner of the object, and I lose the curvature
> on the left side, but it is OK on the right side. According to
> http://www.f-lohmueller.de/pov_tut/backgrnd/p_sky9.htm the image covers +Z and
> goes to +X. Is it possible to put the image on the center of +Z to let the
> excess image covers both -X and +X?
> 
> 

what about using a "warp{ cubic }" ?

http://wiki.povray.org/content/Reference:Warp#Mapping_using_warps


Post a reply to this message

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