POV-Ray : Newsgroups : povray.binaries.images : Blue Mars : Re: Blue Mars Server Time
11 Aug 2024 07:11:12 EDT (-0400)
  Re: Blue Mars  
From: Richard Smith
Date: 26 Jun 2004 22:15:01
Message: <web.40de2d44f72d05f9d5863cdf0@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
>
I started with your code example and redid mine.  It worked just fine.  I'm
not sure just what I did wrong but thanks for your help.


Post a reply to this message


Attachments:
Download 'isosurface-a.jpg' (97 KB)

Preview of image 'isosurface-a.jpg'
isosurface-a.jpg


 

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