POV-Ray : Newsgroups : povray.general : real world size : Re: real world size Server Time
20 Nov 2024 00:24:27 EST (-0500)
  Re: real world size  
From: Trevor Quayle
Date: 3 Dec 2001 15:07:44
Message: <3c0bdb90$1@news.povray.org>
> It seems like this would work, but for some reason it doesn't. If you make
> a sphere with a radius of 400,000 units with an ambient value as high as
> you like, and place yourself 93 million units from it, you will not be
able
> to see it, as you would the sun from the earth. I don't know if it is an
> internal math thing in POV-Ray or what, but I know that it is ture. Try
it.
>
>
>
I've had problems with this before, it's just a matter of scaling, use a
larger base scale

Try this example which uses the sun, moon and earth at their proportional
sizes and scaled using 'scl'
with scl=1, the sun isn't visible, but with scl=1000 it is

-tgq


//start

global_settings{
  ambient_light 1
  assumed_gamma 1.0
  max_trace_level 100
}

#default{finish{ambient 0 diffuse 0.75}}

#declare Scl =1000
#declare ERad=6378.14/Scl
#declare SRad=695000/Scl
#declare SDis=149600000/Scl
#declare MRad=1737.4/Scl
#declare MDis=384400/Scl


//#declare lo = <-100,50,-200>;
//#declare la = <0,15,0>;

#declare lo = <0,ERad+1/1000/Scl,-SDis>;
#declare la = <0,0,0>;

camera {
  up y
  right x*image_width/image_height
  angle 25
  location lo
  look_at  la
}

//
// *******  L I G H T S  *******
//

#declare LB=sphere{0 SRad pigment{rgb <1,1,0>} finish{ambient 100}}

light_source {0
  rgb <1,1,1>
  looks_like{LB}
}
light_source {0
  rgb <1,1,1>
  translate <0,0,-SDis>
}

#declare E1=material{texture{pigment{rgb<0,0,1>}}}
#declare M1=material{texture{pigment{rgb<1,1,1>}}}
#declare CM=material{texture{pigment{rgb 0}}}

sphere{<0,0,-SDis> ERad material{E1} no_shadow}
sphere{<0,0,MDis> MRad material{M1} rotate -x*2 translate <0,0,-SDis>}
//end


Post a reply to this message

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