POV-Ray : Newsgroups : povray.newusers : Texture Question Server Time
25 Nov 2024 07:49:32 EST (-0500)
  Texture Question (Message 1 to 3 of 3)  
From: Robert A 
Subject: Texture Question
Date: 8 Apr 2006 17:04:09
Message: <44382549$1@news.povray.org>
Hi,

Is it possible to have a surface rendered as a pure color unaffected by 
light but with shadows ? Kind of like the background color but with shadows.

So if I had a plane set to color <1.0, 0.0, 0.0> it will be RGB(255, 0, 0) 
everywhere except where there is shadow. I'm making 2D images of GUI 
controls so this would be very useful, especially in creating the alpha 
mask.

Thanks.


Post a reply to this message

From: Bob H
Subject: Re: Texture Question
Date: 8 Apr 2006 17:52:14
Message: <4438308e$1@news.povray.org>
"Robert A." <inv### [at] invalidorg> wrote in message 
news:44382549$1@news.povray.org...
>
> Is it possible to have a surface rendered as a pure color unaffected by 
> light but with shadows ? Kind of like the background color but with 
> shadows.
>
> So if I had a plane set to color <1.0, 0.0, 0.0> it will be RGB(255, 0, 0) 
> everywhere except where there is shadow. I'm making 2D images of GUI 
> controls so this would be very useful, especially in creating the alpha 
> mask.

Your message post got added as a much older thread. Here's an idea:

finish {ambient 0 diffuse 3}  // diffuse higher than 1 anyhow

That could probably do okay. Should oversaturate the color, leaving shadows 
but not allowing it to lose brightness from varying lighting angles. Of 
course, a plane is easier to keep uniform in color compared to other 
objects.


Post a reply to this message

From: Mike Williams
Subject: Re: Texture Question
Date: 9 Apr 2006 01:04:02
Message: <SudHEOAyQJOEFwKx@econym.demon.co.uk>
Wasn't it Robert A. who wrote:
>Hi,
>
>Is it possible to have a surface rendered as a pure color unaffected by 
>light but with shadows ? Kind of like the background color but with shadows.
>
>So if I had a plane set to color <1.0, 0.0, 0.0> it will be RGB(255, 0, 0) 
>everywhere except where there is shadow. I'm making 2D images of GUI 
>controls so this would be very useful, especially in creating the alpha 
>mask.

When I create my alpha shadow masks, I use an extremely bright light
source. 

http://www.econym.demon.co.uk/shadowtut/index.htm

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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