POV-Ray : Newsgroups : povray.general : "best" way to create an shape covered with a picture? : Re: "best" way to create an shape covered with a picture? Server Time
5 Aug 2024 06:12:11 EDT (-0400)
  Re: "best" way to create an shape covered with a picture?  
From: Warp
Date: 19 Nov 2002 05:26:23
Message: <3dda11cf@news.povray.org>
Jeff Kish <ELN/kishj@earthlink.net> wrote:
> I am a beginner. I have gone through some tutorials for moray and
> pov-ray. I have some pictures of my son I would like to map to a 3d
> shape (shaped like his head of course).. what is the best way to do
> this? I tried messing around with the pigment/image_map stuff, but
> that looks like I am going the wrong way there.

  If you are using a mesh to model your object, then uv-mapping gives you
the best freedom for assigning a pigment to it (you can tell for each vertex
point which point of the pigment is assigned to it).
  The problem with this is that it's next to impossible to write it by hand.
You'll need a modeller which supports uv-mapping in order to do this.
(I think there's a program called "uv-mapper" which has been praised).

  If your object consists of other primitives, then the issue is a lot
more complicated. If you want to apply an image map to this object, there's
basically no other way than using the few default mapping types (eg.
spherical).

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

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