Tile 3D textures
Dear all,
I'm trying to figure out how to tile arbitrary 3D textures. I would have thought a weighted average as shown below would work:
double f=(
(F(x,y,z)*(5-x)*(5-y)*(5-z))+
(F(x,y,z-5)*(5-x)*(5-y)*(z))+
(F(x-5,y,z)*(x)*(5-y)*(5-z))+
(F(x-5,y,z-5)*(x)*(5-y)*(z))+
(F(x-5,y-5,z)*(x)*(y)*(5-z))+
(F(x-5,y-5,z-5)*(x)*(y)*(z))+
(F(x,y-5,z)*(5-x)*(y)*(5-z))+
(F(x,y-5,z-5)*(5-x)*(y)*(z))
)/(5*5*5);
But this doesnt seem to work. If anyone has any ideas on how to do this I'd apprciate it.
Regards,
Jesse
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement