POV-Ray : Newsgroups : povray.advanced-users : looks_like (again) : looks_like (again) Server Time
23 Apr 2024 10:19:49 EDT (-0400)
  looks_like (again)  
From: Mike Horvath
Date: 10 Mar 2018 17:36:27
Message: <5aa45deb$1@news.povray.org>
I have the following settings. However, I can't get the sun_object to 
appear visible. What am I doing wrong? Thanks.

Mike



// -------------------------------------------------------------
// Universe

#declare feet_units			= 20;							// LDU per foot
#declare mile_units			= 5280 * feet_units;
#declare plate_size			=   32 * feet_units;
#declare earth_fudge		= 1/10;							// precision issues in POV-Ray 
necessitate this
#declare earth_radius		= 3959 * mile_units * earth_fudge;
#declare earth_circum		= floor(2 * pi * earth_radius / plate_size) * 
plate_size;
#declare earth_radius		= earth_circum/2/pi;
#declare longitude_div		= earth_circum/plate_size;
#declare sun_fudge			= 1/100000;
#declare sun_radius			=   432288 * mile_units * sun_fudge;
#declare sun_distance		= 92960000 * mile_units * sun_fudge;
#declare cloud_min_radius	=  1 * mile_units * earth_fudge;
#declare cloud_max_radius	=  2 * mile_units * earth_fudge;
#declare atmos_max_radius	= 10 * mile_units * earth_fudge;


// -------------------------------------------------------------
// Lights

#include "sunpos.inc"

#declare light_source_location	= <1,-1,1> * sun_distance * SunPos(2018, 
3, 6, 9, 15, -75, 43.2087409, -71.7123404);	// Year, Month, Day, Time 
(24hr), Lstm, LAT, LONG

#declare sun_object = sphere
{
	<0,0,0>, sun_radius
	pigment {color rgb 1}
	finish {emission 1}
}

light_source
{
	light_source_location
	rgb 1
	looks_like
	{
		sun_object
	}
	parallel
	point_at <0,0,0>
}


Post a reply to this message

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