POV-Ray : Newsgroups : povray.advanced-users : curled paper : Re: curled paper Server Time
29 Jul 2024 04:24:46 EDT (-0400)
  Re: curled paper  
From: Warp
Date: 24 Jan 2003 09:17:44
Message: <3e314b07@news.povray.org>
paul jones <pdj### [at] psuedu> wrote:
> How can I make a piece of paper with one curled corner and place an image
> map on it so that the image follows the curl? For the life of me I cannot
> figure out how to do this. I am modelling the paper as a mesh in Rhino and
> the image map always looks terrible.

  I suppose that the Rhino uses UV-mapping in its meshes and that it saves
it in its file format (whichever it is). The converter you are using to
convert the mesh to POV-Ray format needs to be able to convert the UV
information as well.

  One possibility, as already suggested, is to use bicubic patches instead
(but you have to create them by hand or with a program like Hamapatch).
The advantage of a bicubic patch is that you can map a texture on the
patch; the UV-coordinates are calculated by POV-Ray automatically so you
don't need to do it yourself.

-- 
#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.