POV-Ray : Newsgroups : povray.binaries.images : Isosurface problem Server Time
4 Nov 2024 19:17:03 EST (-0500)
  Isosurface problem (Message 1 to 8 of 8)  
From: Tim Cook
Subject: Isosurface problem
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


 

From: Kirk Andrews
Subject: Re: Isosurface problem
Date: 3 Feb 2010 10:01:35
Message: <4b698fcf$1@news.povray.org>
That sounds like a job for mesh displacement.


Post a reply to this message

From: Tim Cook
Subject: Re: Isosurface problem
Date: 4 Feb 2010 15:43:56
Message: <4b6b318c@news.povray.org>
Current state of things.  Map in major need of improvement in addition 
to fixing extrusion direction.

--
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


 

From: waggy
Subject: Re: Isosurface problem
Date: 5 Feb 2010 00:31:12
Message: <4b6bad20@news.povray.org>
Tim Cook wrote:
> Current state of things.  Map in major need of improvement in addition 
> to fixing extrusion direction.
> 
If extruding the outer surface of a torus is close enough, this type of 
construction might work for you.  You may need to make the image taller, 
with the pattern centered vertically, so it doesn't wrap around to the 
donut-hole-side of the torus.

#declare fn_deco1=function{
   pigment{
     image_map{
       png "decoband.png"
       map_type 5 interpolate 4
     }
   }
}


#local r_major=1;    //This matches the map_type 5 major radius.
#local r_minor=0.05;
isosurface{
     function{f_torus(x,y,z, r_major, r_minor)
             -fn_deco1(x,y,z).grey*0.013 }

//max_gradient, contained_by, and whatnot...

//scale, rotate, and translate as needed.
}

~David


Post a reply to this message


Attachments:
Download 'watchdeco.png' (34 KB) Download 'decoband.png' (4 KB)

Preview of image 'watchdeco.png'
watchdeco.png

Preview of image 'decoband.png'
decoband.png


 

From: Tim Cook
Subject: Re: Isosurface problem
Date: 5 Feb 2010 01:52:36
Message: <4b6bc034@news.povray.org>
Say, that's rather clever.  Now to figure out if I can scale it enough 
to get an approximately equivalent base surface...

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


Post a reply to this message

From: Tim Cook
Subject: Re: Isosurface problem
Date: 5 Feb 2010 16:25:57
Message: <4b6c8ce5$1@news.povray.org>
It occurs to me that I can use a sphere just as well as a torus...
Sometimes the simplest solution is the best, after all.

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


Post a reply to this message

From: waggy
Subject: Re: Isosurface problem
Date: 5 Feb 2010 19:17:27
Message: <4b6cb517$1@news.povray.org>
Tim Cook wrote:
> It occurs to me that I can use a sphere just as well as a torus...
> Sometimes the simplest solution is the best, after all.

I'm looking forward to seeing how it comes along.  :)

~David


Post a reply to this message

From: Tim Cook
Subject: Re: Isosurface problem
Date: 6 Feb 2010 18:45:57
Message: <4b6dff35@news.povray.org>
Could use some improvement for accuracy, but I guess I'm ready to forge 
ahead to the rest of the watch.

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


Post a reply to this message


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

Preview of image 'pocketwatch.png'
pocketwatch.png


 

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