POV-Ray : Newsgroups : povray.binaries.images : Proximity pattern, experimental builtin : Re: Proximity pattern, experimental builtin Server Time
30 Jul 2024 14:26:16 EDT (-0400)
  Re: Proximity pattern, experimental builtin  
From: Le Forgeron
Date: 25 Jul 2011 10:45:07
Message: <4e2d8173$1@news.povray.org>
Le 25/07/2011 14:20, Warp nous fit lire :
> Could you explain what's happening here, because I can't see what's so
> special about the image.

Just that no DF3 file was used.


#macro zorglub(bron,vect,rad)
object {
        test_object

	texture {
		proximity { test_object } radius rad
		texture_map {
#if( bron = true )
			[ 0.45 shiny_brass ]
			[ 0.55 dull_brass ]
			[ 0.65 dull_brass ]
			[ 0.7 corroded_brass]
#else
			[ 0.0 pigment { rgb <0,169,224>/255 } ]
			[ 0.2 pigment { rgb <50,52,144>/255 } ]
			[ 0.4 pigment { rgb <234,22,136>/255 } ]
			[ 0.6 pigment { rgb <235,46,46>/255 } ]
			[ 0.8 pigment { rgb <253,233,45>/255 } ]
			[ 1.0 pigment { rgb <0,158,84>/255 } ]
#end
		}
	}
	translate vect
}
#end

zorglub(true,0,20)
zorglub(false,200*x+600*z,20)
zorglub(true,-200*x+600*z,1)
zorglub(false,100*x+1100*z,1)
zorglub(false,-100*x+1100*z,10)


Post a reply to this message

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