POV-Ray : Newsgroups : povray.newusers : Ambient Settings? Server Time
13 Nov 2024 22:22:55 EST (-0500)
  Ambient Settings? (Message 1 to 10 of 35)  
Goto Latest 10 Messages Next 10 Messages >>>
From: Leroy Whetstone
Subject: Ambient Settings?
Date: 1 Feb 2000 12:47:04
Message: <38973716.7C4859F2@janics.com>
<HTML>
I've been playing with the ambient settings.
<BR>I'm looking for a function that can be used to keep an object's color
roughly the same when you add ambient.
<BR> What I did was place 2 boxes side by side one with ambient set
the other not and adjusted the color of the ambient box until it match
the color in the plain box.They where lit by a spotlight pointed at their
midpoint.
<BR> What I found was that with plain box set to rgb<0,0,1> the
ambient values and color where:
<BR>               
pigment           ambient
<BR>            
rgb< 0,0,1.17 >      0
<BR>            
rgb< 0,0,.633 >      .5
<BR>            
rgb< 0,0,.433 >      1
<BR>This is just a sample I tested every tenth point from 0 to 1.
<BR>From the data I have there is no linear function that works.
<BR>From the help file it says that ambient adds a small amount of white
light but that is as far as it goes.
<BR>If someone knows of a function that can do what I want then THANKS!
<BR>If not then I'll just have to do the math and come up with one that
I'll post here.
<BR> 
<BR> </HTML>


Post a reply to this message

From: Margus Ramst
Subject: Re: Ambient Settings?
Date: 1 Feb 2000 15:39:09
Message: <38974523.45FB68D3@peak.edu.ee>
I'm not sure I understand what you want to achieve.
When you exclude specular highlights, reflections, transparency etc. the colour
of the surface can be calculated with the following formula:

(pigment * diffuse * light_colour + ambient)

The ambient value (rgb <0.1,0.1,0.1> by default) is simply added to whatever the
apparent colour of the object is at a given point (i.e. it just brightens the
object by a constant amount).
The value 'diffuse' you specify in the finish statement is the maximum value.
The actual value used for a particular point falls off from the maximum (where
surface points straight towards the light_source) to zero (where surface points
away from the light_source).

So the apparent colour of a surface varies greatly depending on how much light
it receives. When it receives less light, a higher ambient value is needed to
balance the lower diffuse lighting. Diffuse varies over the surface. Ambient
does not. There is no universal formula.

Margus

Leroy Whetstone wrote:
> 
> I've been playing with the ambient settings.
> I'm looking for a function that can be used to keep an object's color roughly
> the same when you add ambient.
>  What I did was place 2 boxes side by side one with ambient set the other not
> and adjusted the color of the ambient box until it match the color in the
> plain box.They where lit by a spotlight pointed at their midpoint.
>  What I found was that with plain box set to rgb<0,0,1> the ambient values and
> color where:
>                 pigment           ambient
>              rgb< 0,0,1.17 >      0
>              rgb< 0,0,.633 >      .5
>              rgb< 0,0,.433 >      1
> This is just a sample I tested every tenth point from 0 to 1.
> From the data I have there is no linear function that works.
> From the help file it says that ambient adds a small amount of white light but
> that is as far as it goes.
> If someone knows of a function that can do what I want then THANKS!
> If not then I'll just have to do the math and come up with one that I'll post
> here.
> 
>


Post a reply to this message

From: Nieminen Juha
Subject: Re: Ambient Settings?
Date: 2 Feb 2000 04:02:30
Message: <3897f2a6@news.povray.org>
Leroy Whetstone <lrw### [at] janicscom> wrote:
: <HTML>

  Please don't send html here, thanks.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Sander
Subject: Re: Ambient Settings?
Date: 2 Feb 2000 15:32:15
Message: <3898944f@news.povray.org>
Why not?

--
Regards,
Sander


Nieminen Juha <war### [at] punarastascstutfi> schreef in berichtnieuws
3897f2a6@news.povray.org...
> Leroy Whetstone <lrw### [at] janicscom> wrote:
> : <HTML>
>
>   Please don't send html here, thanks.
>
> --
> main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
> ):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Ken
Subject: Re: Ambient Settings?
Date: 2 Feb 2000 16:02:41
Message: <38989B5F.34E65936@pacbell.net>
Sander wrote:
> 
> Why not?

Sander,

For the most part it is a matter of courtesy for those who do not have
html enabled browsers. It has been agreed by many of our visitors that
plain text messages would be the best format for all people involved.


  The following is the relevant portion of our server posting policy.
If you want to read the full post it is available in the announcement
group.

    Subject: Where can I post my binary or text file?
       Date: Sun, 20 Jun 1999 17:01:21 GMT
       From: Alan Kong <ako### [at] pacbellNO-SPAMnet>
 Newsgroups: povray.announce.frequently-asked-questions

Put simply, a binary is any file that is not a plain text file. For
our newsgroup purposes, the following are examples of binary files:

- HTML-encoded text (many people who follow our newsgroups use
  newsreaders that cannot automatically read HTML posts without
  launching an external Web browser. Please post plain text messages
  or, at least a combination of plain text and HTML),

-- 
Ken Tyler -  1300+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: Leroy Whetstone
Subject: Re: Ambient Settings?
Date: 3 Feb 2000 00:16:09
Message: <38992A17.EF0E2C25@janics.com>
<HTML>
What I am trying to do is use 'ambient' to make an object's shadow stand
out.
<BR> If you set up the pigment of an object then find that a shadow
isn't right.
<BR>So you add 'ambient' to the finish to get the shadow right then the
pigment is to bright.
<BR>To get the new pigment(in shadow) the way ya want and the new pigment
(out of shadow) to match the old pigment (out of shadow) you need a formula.
I used the program above to try and find one.
<BR>When I got the ruff data in I found that the it was not simple to add
or subtract a number from the pigment.
<BR>I have come up with a formula:
<BR> #declare AV=AmbientValue;
<BR> #declare PA= -.422*pow(AV,3)+1.305*pow(AV,2)-1.62*AV+1.17
<BR>Now if I have a pigment I want to adjust the shadow all I have to do
is mutiply by PA and change the Ambient value.
<BR>I haven't try this 'filter' and 'transmit' and it problily won't with
'defuse'
<BR>Thanks for the formula it'll help in exploring these showdows.
<BR> </HTML>


Post a reply to this message

From: Nieminen Juha
Subject: Re: Ambient Settings?
Date: 3 Feb 2000 03:39:23
Message: <38993ebb@news.povray.org>
Ken <tyl### [at] pacbellnet> wrote:
: For the most part it is a matter of courtesy for those who do not have
: html enabled browsers.

  Or those who, for one reason or other, don't like to use a html browser to
read the news (like me).

  I see the original article this way:
http://www.cs.tut.fi/~warp/snapshot.gif

  And no, I'm not changing to Netscape to read the news, thanks.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Ron Parker
Subject: Re: Ambient Settings?
Date: 3 Feb 2000 08:58:05
Message: <slrn89j2ah.v8.ron.parker@ron.gwmicro.com>
On 3 Feb 2000 03:39:23 -0500, Nieminen Juha wrote:
>Ken <tyl### [at] pacbellnet> wrote:
>: For the most part it is a matter of courtesy for those who do not have
>: html enabled browsers.
>
>  Or those who, for one reason or other, don't like to use a html browser to
>read the news (like me).

What, you like having advanced article-management (and moron-management) 
features?  What kind of throwback are you?

>  I see the original article this way:
>http://www.cs.tut.fi/~warp/snapshot.gif

Yep, that's about how it looks for me too.  And it's not even valid HTML; 
consider "rgb<0,0,1>".  That last ">" should be ">".

-- 
These are my opinions.  I do NOT speak for the POV-Team.
The superpatch: http://www2.fwi.com/~parkerr/superpatch/
My other stuff: http://www2.fwi.com/~parkerr/traces.html


Post a reply to this message

From: Steve
Subject: Re: Ambient Settings?
Date: 3 Feb 2000 19:46:56
Message: <slrn89jvr2.20v.sjlen@zero-pps.localdomain>
On Wed, 2 Feb 2000 21:32:21 +0100, Sander <san### [at] stolscom> wrote:
>Why not?

To some of us it looks like this junk below, a bit difficult to read
isn't it?


>
>I've been playing with the ambient settings.
><BR>I'm looking for a function that can be used to keep an object's color
>roughly the same when you add ambient.
><BR> What I did was place 2 boxes side by side one with ambient set
>the other not and adjusted the color of the ambient box until it match
>the color in the plain box.They where lit by a spotlight pointed at their
>midpoint.
><BR> What I found was that with plain box set to rgb<0,0,1> the
>ambient values and color where:
><BR>               
>pigment           ambient
><BR>            


-- 
Cheers
Steve              email mailto:sjl### [at] ndirectcouk

%HAV-A-NICEDAY Error not enough coffee  0 pps. 

web http://www.ndirect.co.uk/~sjlen/

or  http://start.at/zero-pps

 10:13pm  up 21:42,  2 users,  load average: 0.15, 0.07, 0.01


Post a reply to this message

From: Gilles Tran
Subject: Re: Ambient Settings?
Date: 4 Feb 2000 13:16:01
Message: <389B1776.AF7353A0@inapg.inra.fr>
Ron Parker wrote:

> >  Or those who, for one reason or other, don't like to use a html browser to
> >read the news (like me).

My 2 cents :
To be frank, this limitation would be logical it if this were, say, a newsgroup
about rural farming in tropical countries where the users are likely to have
limited computer  resources. But this NG is dedicated to computer graphics, and
used by people who have up-to-date configurations, if only to run CG software and
Internet connections able to download binaries. I've also noticed that the people
who seem to have trouble with HTML postings are also rather advanced computer
users, which doesn't make sense... When I have trouble reading a file because of
a new popular format, I search for the latest version or patch that supports it
and always find it. This what I did when I started receiving HTML-coded e-mails.
Is that really impossible for HTML post reading, even without using Netscape ? Or
is there something sentimental about using non-HTML supporting newsreaders ?
What annoys me is not actually the ban on HTML posting itself (which I don't find
very useful, though it could come handy sometimes), but the fact that new users
here get flamed for this the first time they post, when sometimes they don't even
know they're doing HTML posts because it's the default mode in popular
newsreaders or email programs. This is not a "courteous" way to welcome people,
IMHO.
For the record, the policy n the French pov group is to allow HTML posting and we
haven't had any complaints so far, except the occasional joke on the occasional
ugly background or HTML mess, which is still better than flaming newbies for
something they're not guilty of, and starting threads about it.

G.


Post a reply to this message

Goto Latest 10 Messages Next 10 Messages >>>

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