POV-Ray : Newsgroups : povray.binaries.images : 'project' pattern (10k) Server Time
19 Aug 2024 06:18:42 EDT (-0400)
  'project' pattern (10k) (Message 1 to 8 of 8)  
From: Christoph Hormann
Subject: 'project' pattern (10k)
Date: 13 Jan 2001 15:54:03
Message: <3A60C06B.2591866A@gmx.de>
referring to the discussion in povray.newusers, i tried to make a pattern
testing if there is something 'above' the evaluated point.

syntax right now is:

pigment {
  project <vector>, object
  [color 1]
  [color 2]
}

I called it 'project', because it's like something being projected on the
object.  Together with megapov's slope pattern it could do what Marc
wanted.

Comments and suggestions welcome of course.

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


Attachments:
Download 'project1.jpg' (10 KB)

Preview of image 'project1.jpg'
project1.jpg


 

From: Tony[B]
Subject: Re: 'project' pattern (10k)
Date: 13 Jan 2001 16:09:46
Message: <3a60c41a@news.povray.org>
I don't get it. Please post a simpler example... perhaps on a cylinder or a
sphere alone on a plane.


Post a reply to this message

From: Marc-Hendrik Bremer
Subject: Re: 'project' pattern (10k)
Date: 13 Jan 2001 16:29:45
Message: <3a60c8c9@news.povray.org>
WOW! That was really fast!

I think that will help a lot. 'object' is the object against which the
pattern test?

Shouldn't the foreground side of the bottom box and the sides of the
floating box be all red? Or was your "projection-vector" not straight
<0,1,0>?

Now were can I get it? ;-)

Thanks a lot,

Marc-Hendrik

Christoph Hormann schrieb in Nachricht <3A60C06B.2591866A@gmx.de>...
>
>referring to the discussion in povray.newusers, i tried to make a pattern
>testing if there is something 'above' the evaluated point.
>
>syntax right now is:
>
>pigment {
>  project <vector>, object
>  [color 1]
>  [color 2]
>}
>
>I called it 'project', because it's like something being projected on the
>object.  Together with megapov's slope pattern it could do what Marc
>wanted.
>
>Comments and suggestions welcome of course.
>
>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: Christoph Hormann
Subject: Re: 'project' pattern (10k)
Date: 13 Jan 2001 16:52:12
Message: <3A60CE00.DFEDEB1A@gmx.de>
Marc-Hendrik Bremer wrote:
> 
> WOW! That was really fast!
> 
> I think that will help a lot. 'object' is the object against which the
> pattern test?

Yes.

> 
> Shouldn't the foreground side of the bottom box and the sides of the
> floating box be all red? Or was your "projection-vector" not straight
> <0,1,0>?

If the projection vector and the surface are parallel, things do not work
very good, so it gets spotted.  Just like doing 'trace()' right across the
side of a box.  

> 
> Now were can I get it? ;-)
> 

Well, i did not yet test it very detailed, maybe also want to change some
things again, so i don't want to publish it right now.  If you like to use
it for a certain project, i can send you a copy via pm.

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: Christoph Hormann
Subject: Re: 'project' pattern (10k)
Date: 13 Jan 2001 16:56:36
Message: <3A60CF14.BDF0294E@gmx.de>
"Tony[B]" wrote:
> 
> I don't get it. Please post a simpler example... perhaps on a cylinder or a
> sphere alone on a plane.

That would not be very meaningful, just their 'shadows' on the plane and
different colors for upper/lower side of the objects.  

Just imagine where the objects get white when it snows...

Or in other words: Viewed from above with orthographic camera, everything
is blue, the whole rest is red.

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: David Fontaine
Subject: Re: 'project' pattern (10k)
Date: 13 Jan 2001 17:05:50
Message: <3A60D00F.5BB7DC53@faricy.net>
Christoph Hormann wrote:

> Or in other words: Viewed from above with orthographic camera, everything
> is blue, the whole rest is red.

Ah, now I get it. I wasn't sure what it did either.

--
David Fontaine  <dav### [at] faricynet>  ICQ 55354965
My raytracing gallery:  http://davidf.faricy.net/


Post a reply to this message

From: Chris Huff
Subject: Re: 'project' pattern (10k)
Date: 13 Jan 2001 17:30:15
Message: <chrishuff-F88667.17314613012001@news.povray.org>
In article <3A60C06B.2591866A@gmx.de>, Christoph Hormann 
<chr### [at] gmxde> wrote:

> referring to the discussion in povray.newusers, i tried to make a pattern
> testing if there is something 'above' the evaluated point.

This looks very similar to a simple version of a "visibility" pattern I 
was working on once. I used multiple samples to allow a blurred result, 
and my pattern was mainly to be used for a curvature pattern to make 
things like "patina" in concave areas on a copper sculpture.
The proximity pattern could probably be used for this too, using the 
sample_weighting feature (though I'm not sure that made it into 
MegaPOV). Both of these would be very slow, though.

The "project" keyword doesn't seem very intuitive, though...maybe it 
should be added to the "object" pattern instead. Or "visibility". :-)

-- 
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: Christoph Hormann
Subject: Re: 'project' pattern (10k)
Date: 13 Jan 2001 17:43:32
Message: <3A60DA14.9F650F77@gmx.de>
Chris Huff wrote:
> 
> This looks very similar to a simple version of a "visibility" pattern I
> was working on once. I used multiple samples to allow a blurred result,
> and my pattern was mainly to be used for a curvature pattern to make
> things like "patina" in concave areas on a copper sculpture.
> The proximity pattern could probably be used for this too, using the
> sample_weighting feature (though I'm not sure that made it into
> MegaPOV). Both of these would be very slow, though.

I also thought of using several samples, but it was a bit comlicated for
me right now :-)
 
> The "project" keyword doesn't seem very intuitive, though...maybe it
> should be added to the "object" pattern instead. Or "visibility". :-)
> 

Sounds like a good idea, although i also thought of making the value
proportional to the distance of the 'ceiling'.

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

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