|
|
I have been playing around with the isosurface function (using the
SuperPatch), and have not been able to figure out how to make the pigment
function work with image maps. All I seem to get is cubes or nothing. Does
anyone know of any webpages with examples of the isosurface function using
image_maps? Any help would be appreciated,
Thanks,
quadhall
tre### [at] yahoocom
Post a reply to this message
|
|
|
|
I can help. I have set up a macro that will use an image_map
with an isosurface to give some pretty good planets.
//Pic1 is for shape. Pic2 is for color. Rad is for radius. Prec is for
//the percentage of deformation that the image gives to the sphere
function
#macro PlanetMac(Pic1,Pic2,Rad,Prec)
#declare Pic= function{pigment {image_map {png Pic1 interpolate 2
map_type 1}}}
#declare R0=Rad;
#declare FUNC1=function {"sphere",<R0>}
isosurface {
function{FUNC1(x,y,z)-(Pic(x,y,z)*R0*Prec)}
bounded_by {sphere {0,R0*(1+Prec)}}
method 2 max_gradient 10
texture{
pigment {
image_map{png Pic2 interpolate 2 map_type 1}
rotate y*0}
}
}
#end
//Choose the images with care.
//#declare Mars =
PlanetMac("mars_fc_flat.png","f:\images\space\MarMapL.png",3389,.009442313366775)
//#declare Asteroid = PlanetMac("Map.png","Map.png",3388,.75)
//#declare Earth = PlanetMac("4320_2160_8.png","Earth3c.png",100,.0025)
#declare Earth =
PlanetMac("I:\Images\4320_2160_8.png","I:\Images\Earth.png",100,.0045)
//#declare Venus = PlanetMac("Venus2.png","Venus2c.png",100,.125)
---
Use the declared object in your scene
hall wrote:
>
> I have been playing around with the isosurface function (using the
> SuperPatch), and have not been able to figure out how to make the pigment
> function work with image maps. All I seem to get is cubes or nothing. Does
> anyone know of any webpages with examples of the isosurface function using
> image_maps? Any help would be appreciated,
>
> Thanks,
>
> quadhall
> tre### [at] yahoocom
--
Mr. Art
"Often the appearance of reality is more important
than the reality of the appearance."
Bill DeWitt 2000
Post a reply to this message
|
|
|
|
One is glad to be of service.
hall wrote:
>
> THANK YOU VERY MUCH MR. ART,
>
> the info you posted was exactly what I needed. Thanks again,
>
> Quadhall
--
Mr. Art
"Often the appearance of reality is more important
than the reality of the appearance."
Bill DeWitt 2000
Post a reply to this message
|
|