POV-Ray : Newsgroups : povray.advanced-users : Sheet of paper (2-sided) Server Time
26 Nov 2024 01:36:48 EST (-0500)
  Sheet of paper (2-sided) (Message 1 to 7 of 7)  
From: Jan Walzer
Subject: Sheet of paper (2-sided)
Date: 31 Mar 2001 11:21:30
Message: <3ac6040a@news.povray.org>
I'm trying to model a sheet of paper, that roles a bit ...
I'm going to use bezier patches for that, and (of course) uv-mapping
...

My intention is, to only show the image on one side, and leave the
backside white...

It should look like a printed poster ...

The question is, how to realize that ..

AFAIK it is not possible, to give the bezieres different fore-/back
textures...
should I model 2 different patches, and translate them a bit, or is
there another way to do that ?

--
background{rgb 1}camera{location<1,5,-2>look_at 0}#macro
m(a,b,i)#local d=(b-a)
/8;#local
e=vcross(d,y);#if(i)m(a-e,a+e+2*d,i-1)m(a+e,a+2*d-e,i-1)m(a+3*d-e,a+e
+3*d,i-1)m(a+3*d-e,a+5*d-e,i-1)m(a+6*d-e,a+e+6*d,i-1)m(a+8*d-e,a+e+8*d
,i-1)#else
cylinder{a,b,vlength(d)/3 pigment{rgb 0}}#end#end m(-4*x,2*x,4) // Jan
Walzer


Post a reply to this message

From: Christoph Hormann
Subject: Re: Sheet of paper (2-sided)
Date: 31 Mar 2001 11:40:40
Message: <3AC60889.E9984A99@gmx.de>
Jan Walzer wrote:
> 
> AFAIK it is not possible, to give the bezieres different fore-/back
> textures...
> should I model 2 different patches, and translate them a bit, or is
> there another way to do that ?
> 

The translation method only works if the paper is mainly flat, meaning
there is no real 'rolling'.  In this case you can also use a slope texture
like:

texture {
  slope y
  texture_map {
    [0.5 T_Side_1 ]
    [0.5 T_Side_2 ]
  }
}

(just from memory, not tested)

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other 
things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: Chris Huff
Subject: Re: Sheet of paper (2-sided)
Date: 31 Mar 2001 11:43:09
Message: <chrishuff-85D676.11431131032001@news.povray.org>
In article <3ac6040a@news.povray.org>, "Jan Walzer" <jan### [at] lzernet> 
wrote:

> AFAIK it is not possible, to give the bezieres different fore-/back
> textures...
> should I model 2 different patches, and translate them a bit, or is
> there another way to do that ?

Well, if you are using MegaPOV (which I assume you are, you mentioned UV 
mapping), you could just use interior_texture to texture each side 
separately. (one side of the patch will be "inside")

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

From: Jan Walzer
Subject: Re: Sheet of paper (2-sided)
Date: 31 Mar 2001 12:50:44
Message: <3ac618f4@news.povray.org>
As I said, I want to make some complete roles ...
With translation I didn't mean, to only translate, but to remodel
another sheet.
As I'm using Moray, to do that, it wouln't be such a big problem, but
instead a lot of finetuning  to make both as close as possible, but to
have no intersections ...

I haven't used slopemaps yet (I have a small clue what they do) but I
don't know if they would fit into my problem...

But Chris Huff mentioned the interior_texture-Flag, I will use now ...

But thanks anyway ..

--
background{rgb 1}camera{location<1,5,-2>look_at 0}#macro
m(a,b,i)#local d=(b-a)
/8;#local
e=vcross(d,y);#if(i)m(a-e,a+e+2*d,i-1)m(a+e,a+2*d-e,i-1)m(a+3*d-e,a+e
+3*d,i-1)m(a+3*d-e,a+5*d-e,i-1)m(a+6*d-e,a+e+6*d,i-1)m(a+8*d-e,a+e+8*d
,i-1)#else
cylinder{a,b,vlength(d)/3 pigment{rgb 0}}#end#end m(-4*x,2*x,4) // Jan
Walzer


Post a reply to this message

From: Jan Walzer
Subject: Re: Sheet of paper (2-sided)
Date: 31 Mar 2001 12:52:00
Message: <3ac61940$1@news.povray.org>
Hmmm ... didn't know this feature yet ...
I think I'll have to read again through the docs

Thanks a lot ...

--
background{rgb 1}camera{location<1,5,-2>look_at 0}#macro
m(a,b,i)#local d=(b-a)
/8;#local
e=vcross(d,y);#if(i)m(a-e,a+e+2*d,i-1)m(a+e,a+2*d-e,i-1)m(a+3*d-e,a+e
+3*d,i-1)m(a+3*d-e,a+5*d-e,i-1)m(a+6*d-e,a+e+6*d,i-1)m(a+8*d-e,a+e+8*d
,i-1)#else
cylinder{a,b,vlength(d)/3 pigment{rgb 0}}#end#end m(-4*x,2*x,4) // Jan
Walzer


Post a reply to this message

From: Christoph Hormann
Subject: Re: Sheet of paper (2-sided)
Date: 31 Mar 2001 13:00:32
Message: <3AC61B40.C32EF703@gmx.de>
Chris Huff wrote:
> 
> Well, if you are using MegaPOV (which I assume you are, you mentioned UV
> mapping), you could just use interior_texture to texture each side
> separately. (one side of the patch will be "inside")
> 

Correct me if i'm wrong, but AFAIK patches don't have a well defined
inside/outside.

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other 
things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: Chris Huff
Subject: Re: Sheet of paper (2-sided)
Date: 31 Mar 2001 18:07:48
Message: <chrishuff-66AA51.18074831032001@news.povray.org>
In article <3AC61B40.C32EF703@gmx.de>, Christoph Hormann 
<chr### [at] gmxde> wrote:

> Correct me if i'm wrong, but AFAIK patches don't have a well defined
> inside/outside.

They don't have a specific area that is "inside", but they do have two 
sides that can be handled separately. In triangles, the order of the 
vertices determines which side is considered "inside", with bezier 
patches the situation is similar.

There is a demo scene using both UV mapping and interior_texture, a 
rendered image is on the Smellenbergh's site here:
http://users.skynet.be/smellenbergh/demo.html
It's the one titled "4-corner uv_vectors, interior_texture".

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

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