Wasn't it James Evans who wrote:
>Mike Raiford <mra### [at] hotmailcom> wrote:
>> James Evans posted some sort of non-sphere-non-checkered-plane first post:
>>
>> I like the floor texture. Care to share how you created it?
>>
>> --
>> ~Mike
>>
>> Things! Billions of them!
>
>The floor texture is just a repetitive lattice of a hexagon with two
>triangles on either side... then translated appropriately. I would be happy
>to
>post the source file if you'd like to see it.
>~ James
Did you consider using a hexagonal texture map, something like this:
#include "colors.inc"
#include "stones.inc"
#declare T1 = texture {T_Stone20 scale 5} // Texture for hexagons
#declare T2 = texture {T_Stone17 scale 2} // texture for triangles
#declare S=sin(pi*2/3);
#declare C=cos(pi*2/3);
plane {y,0
texture {function {sin(x-pi/2) * sin(x*C+z*S) * sin(x*C-z*S) /4}
texture_map { [0.5 T1][0.5 T2] }
}
}
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|