|
|
Hello everybody,
I want to generate an image of the Moon which has the exact shape of it: I want
to add a digital elevation model to my spherical Moon.
My code so far is:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#version 3.7;
#global_settings {max_trace_level 1 assumed_gamma 1}
#include "colors.inc"
#declare MoonRad_x = 1737.4;
#declare MoonRad_y = 1737.4;
#declare MoonRad_z = 1737.4;
#declare CAM_X = -0.000000;
#declare CAM_Y = -0.000000;
#declare CAM_Z = -0.000000;
#declare Moon_X = -21887.888175;
#declare Moon_Y = 41664.398682;
#declare Moon_Z = -15652.293228;
#declare SUN_X = -139073938.658433;
#declare SUN_Y = 54871282.096690;
#declare SUN_Z = 23773527.242084;
#declare ROT_X = 0.004860;
#declare FOV = 6;
#declare Object = sphere{ <0,0,0>, 1
scale <MoonRad_x,MoonRad_y,MoonRad_z>
texture {pigment {image_map {jpeg "moon.jpg" map_type 1}}
finish {diffuse 1.25 ambient 0}
rotate <0,ROT_X,0>}
translate <Moon_X,Moon_Y,Moon_Z>
}
Object // Create Moon
camera {
location <CAM_X,CAM_Y,CAM_Z>
right x
up y
look_at <Moon_X,Moon_Y,Moon_Z>
angle FOV
focal_point <0,0,0.000127>
}
background {color Black}
light_source {<SUN_X,SUN_Y,SUN_Z> color White parallel }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Is there a way to attach to the sphere a certain height to generate the real
height of the moon? Or is there another way to do it? I have the data of the
digital elevation model from LOLA
Instrument in a .img file (from
https://pds-geosciences.wustl.edu/lro/lro-l-lola-3-rdr-v1/lrolol_1xxx/data/lola_gdr/cylindrical/img/)
Thank you to everybody who wants to help me.
Mauro
Post a reply to this message
|
|