Jump to content
  • Advertisement
Sign in to follow this  
laeuchli

Tile 3D textures

This topic is 4733 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!