Jump to content
  • Advertisement
Sign in to follow this  
Matt Aufderheide

Scaling a cube of patches

This topic is 2927 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

Say i have a cube made out of flat square patches... each face of the cube is made out of 16 patches. Assume cube is always going to be centered at 0,0,0 and each patch has its own position and is oriented in the correct manner to make a cube..

Now i want to scale this uniformly...so obviously i need to scale the patches themselves which is simple, and then adjust their positions accordingly.

I tried something like this:

1) scale patches
2) pvector=normalize patch position
3) new position=pvector*some number...

this doesnt work..i think the basic idea is wrong and i cant think of a correct way.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!