|
 |
On 12/5/20 12:35 PM, Ash Holsenback wrote:
> 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
hmmm... post screwed up here's what i meant to say:
try the looks_like modifier on the light source... use that first
sphere you have defined just after the light source in the looks_like
definition
Post a reply to this message
|
 |