POV-Ray : Newsgroups : povray.binaries.images : Blue Mars : Re: Blue Mars Server Time
11 Aug 2024 01:20:42 EDT (-0400)
  Re: Blue Mars  
From: Timothy Cook
Date: 22 Jun 2004 00:09:36
Message: <40d7b100$1@news.povray.org>
Richard Smith wrote:
> I've tried changing all the parameters but am unable to make the image any
> more complete than it is.

humm...well, here's my code for the isosurface...with commentary

#include "functions.inc"
#declare fn_MarsPigm=function{
   pigment{
     image_map{
       tga "D:\3D\Textures\Mars\RMv3_Bump16K.tga"
       map_type 1
       once
       interpolate 4
     }
     scale  <-1,1,1>   // right-hand rule; makes more sense to me,
     rotate 90*x       // since i started out doing autosketch/cad
   }
}
isosurface{
   function{f_sphere(x, y, z, 3375)-fn_MarsPigm(x, y, z).red*30}
   // mars mean diam 3375 km, topo range 30 km...the image is greyscale
   // but pov's 'gray' function is weighted...? so i used red component
   contained_by{sphere{0,5000}}  // probably a bit much O.o;;
   pigment{
     image_map{
       jpeg "D:\3D\Textures\Mars\RMv3_FlatColor4K.jpg"
       map_type 1
       once
       interpolate 4
     }
     scale  <-1,1,1>
     rotate 90*x
   }
}
EOF

i included it in a moray document with some other stuff, and voila!

-- 
Tim Cook
http://home.bellsouth.net/p/PWP-empyrean

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------


Post a reply to this message

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