POV-Ray : Newsgroups : povray.newusers : Limits? : Re: Limits? Server Time
5 Nov 2024 18:21:13 EST (-0500)
  Re: Limits?  
From: Familie Hornung
Date: 19 May 1999 20:55:18
Message: <37434F1A.98C54093@t-online.de>
Hello Phil,
just a try to help you rotate the camera:

camera{
  location <0,0,6378000+600000> // 600000 is the distance from the 				
// earth, so the total distance from the 				// center of the earth is
6378000+600000
  rotate x*angle		// angle is any number (mostly 				// numbers between
0-360 are used)
  translate <0,0,149600000000.0> // now the camera should be behind
the 				 // earth when an angle of 0 is used
  look_at <0,0,149600000000.0>	
}

If this doesn't work(I haven't tried out yet), try this:

camera{
  location
<60000*sin(angle*pi/180),0,149600000000+(6378000+600000)*cos(angle*pi/180)>
  look_at <0,0,149600000000.0>
}

This is a bit more complicated, but it should REALLY work

Phil Clute schrieb:
> 
> Maybe someone else has tried this, or maybe I'm alone in my stupidity
> but I tried to render an earth to scale 1pov unit = 1 meter which of
> course comes
> out to a mean value of 12,756 km in diameter or 6,378,000m as a sphere
> radius.
> Also, I put my light source(the sun) at <0,0,0> and then moved my
> earth
> sphere
> to <0,0,149600000000>(mean distance from sun).
> 
> 1.What is the limit? How many places can I carry out my numbers around
> the decimal point?
> 
> 2.Why does the earth appear to have a grainy texture when it is only
> has
> a blue
> pigment? Scale is beyond pov's capabilities?
> 
> 3.I was surprised that the earth was actually lit up at that distance.
> Is this because
> there is no falloff in the point lightsource?
> 
> 4.I also wanted to be able to rotate the camera around the earth but
> couldn't
> seem to make it work. I tried rearanging the order of the code with
> rotate
> before or after translate to no avail. How would this be accomplished?
> 



> Note: I know doing it at this size really isn't necessary. I just
> wanted
> to give it a shot!
> 
> Heres my source:
> 
> #version 3.1;
> #include "colors.inc"
> 
> global_settings{
>      assumed_gamma 1.0
> }
> // ----------------------------------------
> camera{
>      location  <0.0, 0.0,149600000000.0>
>      direction <0, 0, 1>
>      right     <1.33, 0, 0>
>      translate <0.0, 0.0, -13500000.0>
>      //rotate y*.001
>      look_at   <0.0, 0.0, 149600000000.0001>
>      }
> light_source{
>      0*x                // light's position (translated below)
>      rgb <1.0,1.0,1.0>*2//pow(10,10)
>      //translate <0,0,14959930000.0>
> }
> // ----------------------------------------
> background{Black}
> sphere{<0,0,0>,6378000.0
>      pigment{Blue}
>      translate<0,0,149600000000.0>
> }
> --
> ...coffee?...yes please! extra sugar,extra cream...Thank you.


Post a reply to this message

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