Archived

This topic is now archived and is closed to further replies.

question about milkshape models

This topic is 5304 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 just loaded the "cross" milkshape model from lesson31 into my code based on the latest basecode. Is there a way to make the whole model smaller? It sucks having to make all my other shapes 10x larger just to make the milkshape model smaller. Is there some setting in the draw routine to scale the model? thanks Karl

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
glScale

first link on google:

http://www.cevis.uni-bremen.de/~uwe/opengl/glScale.html

Share this post


Link to post
Share on other sites
well, i just scale the model''s vertices (and bone translation verts) while loading. i added a "scale" factor to the model file. to my mind, it''s better not to scale with glScale, especialy when you do calculations (like collisions or for example want to attach a weapon to a model''s hand). so when you scale all models while loading you can handle them all the same way.

Share this post


Link to post
Share on other sites
Is it true that if the MilkShape model has normal vectors that if you glScale it it also scales the normal vector?

Also, I haven't investigated the milkshape model format yet but I would guess that one could do one's own scaling by simply loading the model, dividing the coordinates by 10, and saving it out as a new model. Or as you're loading it in divide the vertices by 10. That should work shouldn't it?

EDIT: Duuuuhhhh that's exactly what you just asked . OK then my productive response is, try to find the parts of the loading code that are loading vertices. I have no clue where it is, I haven't gotten that far yet. But maybe you could add your own scale member function to the model loading class that loads the vertices and divides by a number.

[edited by - DalTXColtsFan on June 4, 2003 3:40:14 PM]

Share this post


Link to post
Share on other sites