|
|
On 12/5/20 12:02 PM, Julia wrote:
> Hi,
> there is another problem that i have been trying to figure out for the past
> week, but i'm just starting to give up.
> The problem is that there arent any shadows. Not only on the other side of the
> sphere but also when its in front of another nothing happens.
> Also when i dont put "ambiet" the spheres just get dark on both sides, still no
> shadow.
> here is the code:
>
> #include "colors.inc"
>
> camera {
> location <5,10,-60>
> look_at <0,0,0>
> angle 25
> }
>
> light_source {
> <0,0,0>
>
>
> }
>
>
> // słońce
> sphere {
> <0,0,0>, 10
> pigment {
> bozo
> turbulence 5
> color_map {
> [0.0 color <1,0,0>]
> [0.25 color <1,1,0>]
> [1.0 color <1,0.65,0>]
> }
> scale 3
> }
> normal {bumps 1.0}
> finish {ambient 1}
>
> scale 1/6
>
>
>
> rotate <0,380*clock,0> //obrót
> }
>
>
> ///////////////////////////////////////////
>
> union
> {
> //ziemia
> object { sphere {
> <0,0,0>, 3.7
> pigment {
> agate
> turbulence 1.5
> color_map {
> [0.0 color <1,1,1>]
> [0.10 color <0,0.5,0>]
> [1.0 color <0,0,1>]
> }
> scale 2
> }
> finish {ambient 0.8
> diffuse 0.5}
>
> scale 1/6
> rotate <0,23,0>
> rotate <0,-6260*clock,0>
> rotate <0,360*clock,0> //obót dni
>
>
> } }
>
> object
> //księżyc
> {sphere {
> <8,0,0>, 1.5
> pigment {
> granite
> turbulence 1.4
> color_map {
> [0.0 color <1,1,1>]
> [0.10 color <.5,.5,.5>]
> [1.0 color <.8,.8,.8>]
> }
> scale 2
> }
> normal {bumps 1.0}
>
> finish {
> ambient 0.5
> brilliance 0.5 }
>
> scale 1/6
> rotate <5,-4680*clock,0>
> rotate <0,-4680*clock,0> //obót dni
> }
> }
>
> translate <9,0,0>
> rotate <0,-360*clock,0>
> }
>
>
> thanks for help :))
>
> try the looks_like modifier on the light source... used that first
sphere you have defined just after the light source in the looks_like
definition
Post a reply to this message
|
|