POV-Ray : Newsgroups : povray.newusers : Troubleshooting ambient light : Re: Troubleshooting ambient light Server Time
2 Jul 2024 21:28:51 EDT (-0400)
  Re: Troubleshooting ambient light  
From: Alain
Date: 7 Jan 2011 17:00:51
Message: <4d278d13$1@news.povray.org>

> 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

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