Jump to content
  • Advertisement
Sign in to follow this  

Tile 3D textures

This topic is 4885 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
Sign in to follow this  

  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!