|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
|
|