POV-Ray : Newsgroups : povray.binaries.images : Blue Mars : Re: Blue Mars Server Time
13 Nov 2024 17:45:17 EST (-0500)
  Re: Blue Mars  
From: Richard Smith
Date: 22 Jun 2004 20:05:00
Message: <web.40d8c816f72d05f9c4afa97d0@news.povray.org>
Timothy Cook <z99### [at] bellsouthnet> wrote:
> 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:3DTexturesMarsRMv3_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:3DTexturesMarsRMv3_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
>
Thenks Tim.  I'll compare your code to mine and see if I've muffed it.

Rick Smith


Post a reply to this message

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