• Advertisement
Sign in to follow this  

normalization of a model?

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

I'm trying to understand what it means to normalize a model. In working with databases, I normalize a database by making sure there is only one copy of any data in the database. My math skills are weak and I'm trying to understand what it means to normalize a model. If it means what I think it does (scale the model so that all points are between 0 and 1), then it might help me fix my problem of centering any model my app loads and keeping the camera in one direction ... or at least, it would make doing all this much easier. Then I wouldn't have to get the min and max x, y, and z values and figure out the centrioid because I would always know it. Does this make sense? If so, how is this done? Can anyone elaborate on this? Tell

Share this post


Link to post
Share on other sites
Advertisement
Off the top of my head...
Find the centroid, C.
for every point, v, do v=v-C (center the object)
then find the longest v in the object, call that length max_length.
for every v, do v=v/(max_length).

Share this post


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

  • Advertisement