|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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'
|
|
| |
| |
|
|
|
|
| |
| |
|
|
That sounds like a job for mesh displacement.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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'
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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'
Preview of image 'decoband.png'
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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'
|
|
| |
| |
|
|
|
|
| |