POV-Ray : Newsgroups : povray.general : Help, please Server Time
31 Oct 2024 19:27:58 EDT (-0400)
  Help, please (Message 1 to 5 of 5)  
From: hall
Subject: Help, please
Date: 27 Jan 2000 20:57:18
Message: <3890f77e@news.povray.org>
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

From: mr art
Subject: Re: Help, please
Date: 27 Jan 2000 21:16:51
Message: <3890FC32.46233E24@gci.net>
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

From: hall
Subject: Re: Help, please
Date: 27 Jan 2000 21:57:06
Message: <38910582@news.povray.org>
thank you for your response, will try it out.

quadhall


Post a reply to this message

From: hall
Subject: Re: Help, please
Date: 27 Jan 2000 22:55:44
Message: <38911340@news.povray.org>
THANK YOU VERY MUCH MR. ART,

the info you posted was exactly what I needed.  Thanks again,

Quadhall


Post a reply to this message

From: mr art
Subject: Re: Help, please
Date: 27 Jan 2000 22:59:39
Message: <3891144A.26A15F83@gci.net>
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

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