POV-Ray : Newsgroups : povray.newusers : How to make White on White Server Time
4 Nov 2024 19:20:46 EST (-0500)
  How to make White on White (Message 1 to 8 of 8)  
From: Hershel Robinson
Subject: How to make White on White
Date: 12 Aug 2001 15:24:58
Message: <3b76d80a@news.povray.org>
Hello, ray tracers.  I am a newbie.  I am the newest newbie that there ever
was--my first ray tracing was today!  I figured I would try my hand at
ray-tracing with a practical assignment.  One of my clients (I am a
programmer) needs new buttons for his web site.  I have made the base for a
lovely button, but the background is not coming up white.

How do I make the background come out white?  I, like any newbie, figured a
white light on a white plane would come out white!  Please enlighten me and
my image.

I have included my code below.

Thanks,
Hershel

#include "colors.inc"

#declare Cam1 = camera { location<-2,0,0>
                         look_at <0,0,0>}
#declare Cam3 = camera { location<0,2,-8>
                         look_at <0,1,0>}
camera{Cam3}

light_source{<-2,15,-15> color White}

blob {
    threshold .65
    cylinder { <0,0,0>, <4,0,0>, 1, 1 }
    cylinder { <0,1,0>, <4,1,0>, 1, 1 }
    cylinder { <0,.5,0>, <4,.5,0>, 1, 1 }
    pigment { Blue }
    finish { phong 1 }
  }
plane {<0,0,-1>, .25
       pigment {color White}
      }


Post a reply to this message

From: Renato Oliveira
Subject: Re: How to make White on White
Date: 12 Aug 2001 15:56:06
Message: <3b76df56@news.povray.org>

mensagem:3b76d80a@news.povray.org...
> How do I make the background come out white?  I, like any newbie, figured
You can just put a line like that:

background { rgb <1, 1, 1> }

And if you want another color just change the rgb values.


Post a reply to this message

From: Renato Oliveira
Subject: Re: How to make White on White
Date: 12 Aug 2001 16:07:56
Message: <3b76e21c@news.povray.org>
Ooops! I forgot!
To the background works, you have to remove that plane you place:

// Here is the modified code
#include "colors.inc"

#declare Cam1 = camera { location<-2,0,0>
                         look_at <0,0,0>}
#declare Cam3 = camera { location<0,2,-8>
                         look_at <0,1,0>}
camera{Cam3}

light_source{<-2,15,-15> color White}

blob {
    threshold .65
    cylinder { <0,0,0>, <4,0,0>, 1, 1 }
    cylinder { <0,1,0>, <4,1,0>, 1, 1 }
    cylinder { <0,.5,0>, <4,.5,0>, 1, 1 }
    pigment { Blue }
    finish { phong 1 }
  }
background { rgb <1,1,1> }


Post a reply to this message

From: Kari Kivisalo
Subject: Re: How to make White on White
Date: 12 Aug 2001 16:52:40
Message: <3B76ED3E.1DC249E6@pp.htv.fi>
First put light source 10 times further to get even lighting on the
bg plane. Look up what's the bg color in the image (134,134,134), multiply
plane color by 255/134 to get white bg. This way shadows will work also.



#include "colors.inc"

#declare Cam1 = camera { location<-2,0,0>
                         look_at <0,0,0>}
#declare Cam3 = camera { location<0,2,-8>
                         look_at <0,1,0>}
camera{Cam3}

light_source{<-2,15,-15>*10 color White
 area_light 50*x,50*z,6,6  adaptive 1 jitter
 }

blob {
    threshold .65
    cylinder { <0,0,0>, <4,0,0>, 1, 1 }
    cylinder { <0,1,0>, <4,1,0>, 1, 1 }
    cylinder { <0,.5,0>, <4,.5,0>, 1, 1 }
    pigment { Blue }
    finish { phong 1 }
  }
plane {-z, -0.5
       pigment {color White*255/134}
      }

_____________
Kari Kivisalo


Post a reply to this message

From: Bob H 
Subject: Re: How to make White on White
Date: 12 Aug 2001 23:28:38
Message: <3b774966@news.povray.org>
Try a 'diffuse 1', or more, in the 'finish'; that way you retain shadows but
illuminate the background plane beyond the default, which is diffuse 0.6.
It's all in how the light source incidence angle affects an object.  For
instance, a sphere is always darker at the edges away from the light but if
the facing point were flat it wouldn't be darker until turned away again.
If you use 'ambient 1' instead it would remain the same color all over, even
in shadow, as long as diffuse is 0.  Raise diffuse and then the color
(potentially) won't be the same again.  This is why diffuse is probably your
best bet for getting the effect you want.
Sorry to say, Kari's example will tend to cause a artificial ambience.  Just
raise diffuse until you get the full 255 for each palette index information
as seen in a image processing program.

Bob H.


Post a reply to this message

From: Kari Kivisalo
Subject: Re: How to make White on White
Date: 13 Aug 2001 04:09:35
Message: <3B778BE6.6F442983@pp.htv.fi>
"Bob H." wrote:
>
> Sorry to say, Kari's example will tend to cause a artificial ambience.

It's a button for a web page...


_____________
Kari Kivisalo


Post a reply to this message

From: Chris Huff
Subject: Re: How to make White on White
Date: 13 Aug 2001 15:16:03
Message: <chrishuff-6EC131.14130613082001@netplex.aussie.org>
In article <3b76d80a@news.povray.org>,
 "Hershel Robinson" <her### [at] yahoocom> wrote:

> How do I make the background come out white?  I, like any newbie, figured a
> white light on a white plane would come out white!  Please enlighten me and
> my image.

The problem is that by default, not all light that hits will reflect 
(60% actually, the default value of diffuse in the finish is 0.6), and 
also that the light that hits the plane at a steeper angle won't 
illuminate it as brightly. The "brilliance" parameter controls this 
falloff...
Try this:
finish {
    ambient 0
    diffuse 1
    brilliance 0
}

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

<><


Post a reply to this message

From: Hershel Robinson
Subject: Re: How to make White on White
Date: 14 Aug 2001 05:45:02
Message: <3b78f31e@news.povray.org>
Thank you all for your posts.  I appreciate the time and I have learned a
lot and of course, my button background looks great now.

Hershel


Post a reply to this message

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