|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hi all,
I'm a very new user, and I'm having trouble getting ambient light to appear in
my scene. The only thing in my scene is an object that I created using another
tool. The object shows up fine, as long as I shine a light on it. I just can't
figure out how to get ambient light to "shine" on it. I've pasted the code
below.
Thanks!
*********************
#include "person_000000_expression_neutral_POV_geom.inc"
#default {finish {ambient 1}}
global_settings {
max_trace_level 30
ambient_light rgb<1,1,1>
}
camera {
perspective
up <0,1,0>
right -x*image_width/image_height
location <0.000000, 75.000000, 500.000000>
look_at <0, 0, 0>
angle 32.93461 // horizontal FOV angle
}
light_source {
<0.000000, 75.000000, 500.000000> //light position
color rgb <1,1,1>*1.6
parallel
point_at <0,0,0>
}
background { color rgb<0,0,1> }
object{
person_000000_expression_neutral_
finish {ambient rgb<1,1,1>}
}
*********************
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
default pigment is pigment {rgb 0}, you'll probably want to change that
into rgb 1:
#default {pigment {rgb 1} finish {ambient 1}}
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> I'm a very new user, and I'm having trouble getting ambient light to appear in
> my scene. The only thing in my scene is an object that I created using another
> tool. The object shows up fine, as long as I shine a light on it. I just can't
> figure out how to get ambient light to "shine" on it.
Does the *.inc file already contain texture information?
Note that you can't "shine" ambient light on existing textures
if they explicitely set ambient to 0, you will need to modify
them in place.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Christian Froeschlin <chr### [at] chrfrde> wrote:
> > I'm a very new user, and I'm having trouble getting ambient light to appear in
> > my scene. The only thing in my scene is an object that I created using another
> > tool. The object shows up fine, as long as I shine a light on it. I just can't
> > figure out how to get ambient light to "shine" on it.
>
> Does the *.inc file already contain texture information?
> Note that you can't "shine" ambient light on existing textures
> if they explicitely set ambient to 0, you will need to modify
> them in place.
Hi Christian,
You were right, in that ambient lighting had been explicitly set to zero for
each texture in the .inc file. I replaced "ambient rgb <0,0,0>" with "ambient
rgb <1,1,1>", and I'm good to go. Thanks!
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> Hi all,
>
> I'm a very new user, and I'm having trouble getting ambient light to appear in
> my scene. The only thing in my scene is an object that I created using another
> tool. The object shows up fine, as long as I shine a light on it. I just can't
> figure out how to get ambient light to "shine" on it. I've pasted the code
> below.
>
> Thanks!
>
> *********************
> #include "person_000000_expression_neutral_POV_geom.inc"
> #default {finish {ambient 1}}
> global_settings {
> max_trace_level 30
> ambient_light rgb<1,1,1>
> }
> camera {
> perspective
> up<0,1,0>
> right -x*image_width/image_height
> location<0.000000, 75.000000, 500.000000>
> look_at<0, 0, 0>
> angle 32.93461 // horizontal FOV angle
> }
> light_source {
> <0.000000, 75.000000, 500.000000> //light position
> color rgb<1,1,1>*1.6
> parallel
> point_at<0,0,0>
> }
> background { color rgb<0,0,1> }
> object{
> person_000000_expression_neutral_
> finish {ambient rgb<1,1,1>}
> }
> *********************
>
>
>
>
If you just use that ambient for initial construction or debuging, you
can use this command line option: +q0
This will set quality to zero and light everything with full ambient,
ignoring any and all light_source and any defined finish for all textures.
Under Windows, the command line is the test box next to the resolutions
chooser above the editor's area.
Alain
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|