question about milkshape models

Started by
5 comments, last by Karlj 20 years, 10 months ago
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
Advertisement
glScale

first link on google:

http://www.cevis.uni-bremen.de/~uwe/opengl/glScale.html
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.
Ummm....how about editing the model in Milkshape and making it smaller?
Just load it into MS3D and scale it.

========================
Leyder Dylan (dylan.leyder@slug-production.be.tf
http://www.slug-production.be.tf/
========================Leyder Dylan (dylan.leyder@slug-production.be.tf http://users.skynet.be/fa550206/Slug-Production/Index.htm/
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]
It shouldn''t scale normal vectors, they should all be normalized.

This topic is closed to new replies.

Advertisement