POV-Ray : Newsgroups : povray.binaries.images : mesh relief Server Time
4 Nov 2024 23:16:30 EST (-0500)
  mesh relief (Message 1 to 1 of 1)  
From: Jim Charter
Subject: mesh relief
Date: 5 Dec 2009 14:25:44
Message: <4b1ab3b8@news.povray.org>
Vis-a-vis conversation with Bill on Advanced users


#include "meshrelief.inc"

#declare ObjectRadius = 10;
#declare Res = 100;

#declare P_Flat =
pigment { rgb 0 };


#declare Object = 

object {
   MeshShape(
     sphere { <0,0,0>, 1 scale ObjectRadius },
     sphere { <0,0,0>, 1 scale 0.7*ObjectRadius },
     <0,0,0>,
     Res,
     P_Flat,
     1,
     0,
     0,
     0
   )
};

#declare Object = 

object {
   MeshShape(
     object {Object},
     sphere { <0,0,0>, 1 scale 0.7*ObjectRadius },
     <0,0,0>,
     Res,
     P_Flat,
     1,
     0,
     0,
     0
   )
};

object {
   Object
   pigment{ rgb .8 }
}

camera {
   location  vrotate(<0.0, 0.0, -ObjectRadius*2>,<80,0,0>)
   look_at   vrotate(<0.0, 0.0, -ObjectRadius>,<90,0,0>)
   right     x*image_width/image_height
   angle 50
}

light_source {
   0*x
   color rgb 1.5
   translate  vrotate ( <0,0,-ObjectRadius*2>, <60,90,0> )
}


Post a reply to this message


Attachments:
Download '12.jpg' (59 KB)

Preview of image '12.jpg'
12.jpg


 

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