POV-Ray : Newsgroups : povray.advanced-users : curled paper Server Time
25 Nov 2024 09:38:09 EST (-0500)
  curled paper (Message 1 to 4 of 4)  
From: paul jones
Subject: curled paper
Date: 23 Jan 2003 16:11:53
Message: <3e305a99@news.povray.org>
OK, this may not be advanced.... but....

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.

-paul

--



===========================
Paul Daniel Jones
Ph.D. Candidate
The Pennsylvania State University
(814) 865-2090
===========================


Post a reply to this message

From: hughes, b 
Subject: Re: curled paper
Date: 23 Jan 2003 17:10:30
Message: <3e306856$1@news.povray.org>
"paul jones" <pdj### [at] psuedu> wrote in message
news:3e305a99@news.povray.org...
> OK, this may not be advanced.... but....
>
> 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.

Not exactly a real "advanced" question but certainly not basic to many
people.

I think you'd have a easy time doing the paper out of bicubic_patch then uv
map onto it. I never have uv mapped onto a mesh before. But unless you need
details like crumples and tears that's what I would use. The docs explain it
in either the UV Mapping section (6.6.7).
I haven't used Rhino but I thought it might export the texture already on
it. No idea really.
--
Farewell,
Bob


Post a reply to this message

From: Warp
Subject: Re: curled paper
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

From: Gail Shaw
Subject: Re: curled paper
Date: 28 Jan 2003 14:36:31
Message: <3e36dbbf@news.povray.org>
"paul jones" <pdj### [at] psuedu> wrote in message
news:3e305a99@news.povray.org...
> OK, this may not be advanced.... but....
>
> 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.
>

Export from Rhino as an obj. Use poseray to convert to pov-ray (look in
binaries.utils
for the address) That way the uv-mapping is preserved. Exporting direct from
Rhino
to pov-ray looses the uv-mapping.

Gail
--
#macro G(H,S)disc{0z.4pigment{onion color_map{[0rgb<sin(H/pi)cos(S/pi)*(H<6)
cos(S/pi)*(H>6)>*18][.4rgb 0]}}translate<H-5S-3,9>}#end G(3,5)G(2,5.5)G(1,5)
G(.6,4)G(.5,3)G(.6,2)G(1,1)G(2,.5)G(3,.7)G(3.2,1.6)G(3.1,2.5)G(2.2,2.5)G(9,5
)G(8,5.5)G(7,5)G(7,4)G(7.7,3.3)G(8.3,2.7)G(9,2)G(9,1)G(8,.5)G(7,1)///GS


Post a reply to this message

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