POV-Ray : Newsgroups : povray.binaries.images : Isosurface problem : Isosurface problem Server Time
4 Nov 2024 17:32:59 EST (-0500)
  Isosurface problem  
From: Tim Cook
Date: 3 Feb 2010 09:06:26
Message: <4b6982e2@news.povray.org>
I started re-modelling my pocketwatch, and am using an isosurface for 
the detail relief on the casing.  After a bit of reading documentation, 
I've reached a stumbling block.
-------
#include "functions.inc"
#declare fn_deco1=function{
   pigment{
     image_map{
       tga "D:\Personal\0\0\6\6\Textures\watchdecor1.tga"
       map_type 2 once interpolate 4
     }
     scale <-1,1,1> rotate 90*x
     scale <1,1,0.05> translate <0,0,0.035>
   }
}
#declare sl=1.1;
isosurface{
   function{
     sqrt(pow(x/sl,2)+pow(y/sl,2))+z-0.808
     -(fn_deco1(x,y,z).grey*0.013)
   }
   contained_by{box{<-0.9,-0.9,0.035>,<0.9,0.9,0.085>}}
   max_gradient 36.655
   texture{pigment{rgb 1} finish{ambient 0 diffuse 0.5 reflection{0.3}}}
}
-------
My problem is this:  I want the extrusion to be along the normal of the 
slope, not parallel to the xy-plane.  How would I do this?

--
Tim Cook
http://empyrean.freesitespace.net


Post a reply to this message


Attachments:
Download 'pocketwatch.png' (106 KB)

Preview of image 'pocketwatch.png'
pocketwatch.png


 

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