|
|
It does repeat.
Ron, your' guesses were excellent! You had the basic idea down, but not
the procedure. I like your first try at it best, although it does have a
diagonal tendancy, and I could not remove it. Best thing about yours is
that it doesn't repeat. I didn't know metric did that to crackle.
Well, here's mine in macro form. It may need to be edited if you paste
it into pov.
// Maze( M_Dim, M_Complex, M_Randseed )
//
// M_Dim is the dimensions for the tile. '4' would let you place it on a
// 4-unit square cube
//
// M_Complex is how complex you want it. Values range from 0 to 2.
// good values are from 1 to 2
//
// M_Randseed is just the seed value for the maze. Enter any value to
// see different patterns
#version unofficial MegaPov .3; // needed for MegaPov .4 users
camera{ location<0,10,-15> look_at 0 angle 40 rotate y*-30 }
light_source{ <100,200,100>,1 }
background{ <.4 .7 1> }
#macro Maze( M_Dim, M_Complex, M_Randseed )
#local M_Dim=M_Dim*8;
#local M_Rand=M_Dim/20
#local M_Pat=
function{
pigment{
image_map{
pattern M_Dim, M_Dim{ function noise3d(x,y,z) scale( .25/M_Rand
)/M_Complex translate y*rand( seed( M_Randseed ) ) }
map_type 0 //include 'once' to test the tiling
}
translate<-.5, -.5, -.5> rotate x*90 scale M_Dim/4
}
}
#local M_Pigm=
function{
pigment{
function M_Pat( x, y, z ) scale .5
pigment_map{
[.5 function x*2 sine_wave color_map{ [.5 rgb 0][.5 rgb 1] } ]
[.5 function z*2 sine_wave color_map{ [.5 rgb 0][.5 rgb 1] } ]
}
}
}
function{ M_Pigm( x, y, z ) }
#end
box{<-4,-1,-4>,<4,1,4>
pigment{ Maze( 8, 1.25, 13598 ) }
}
--
Samuel Benge
E-Mail: STB### [at] aolcom
Visit the still unfinished isosurface tutorial: http://members.aol.com/stbenge
Post a reply to this message
|
|