Advertisement

Loading MilkShape3D files (Game Programming tutorial #4)

Started by July 13, 2001 10:42 AM
8 comments, last by kpn 23 years, 7 months ago
I have read the game programming tutorial #4 and have problems loading an ms3d-file. Loading the ms3d-file "tank.ms3d" works fine but when I create a simple box in MilkShape and save it as something.ms3d I can''t view it in the tutorial project. How do I make sure I''m showing it in the right size? I''m using MilkShape3D version 1.5.7.
kpn
[offtopic]
Why do u use the ms3d code???
Lightwave objects are much cooler
[/offtopic]

Now the answer to your question:
Maybe u have the wrong version of milkshape 3d
When a new version is released the object formats are sometimes changed. So your code doesnt work anymore with the existing object
Advertisement
Lightwave objects... how do I load and show them in OpenGl and which program is to prefer when creating Lightwave objects?
kpn
to create LightWave files ?
You should use .... Lightwave
the 2nd best 3d package, right after 3ds max
(you can find me on IRC : #opengl on undernet)
I was under the impression that Alias-Wavefront''s Maya was the best modeling package out there.

Anyhow, that brings up another question. I hope this question makes sense. In Maya I''ve noticed i''m modeling with NURBS surfaces. When we load models into our game engines, we load triangles. Are there any 3d engines that actually display the Nurbs Curves, or is that too costly to performance.

it''''s all about a good time!


-LOKAPUJA-
it's all about a good time!AOLIM name: -LOKAPUJA-
Hehe, when I check to see if the version is ''3'', or ''4'', try adding a check to see if it''s ''5'' That may be your problem.. Check it out, and tell me if it fixes the problem

------------------------------
Trent (ShiningKnight)
E-mail me
OpenGL Game Programming Tutorials
Advertisement
Hey careful about any modelling holy wars, guys Just vote at www.gamedev.net or rsn.gamedev.net. Coincidentally we are both running similar polls on modelling. I might suggest that the price is a factor for many beginning developers. I''m not sure LWO has skeletons either - haven''t researched it much.

Lightwave objects - seen it somewhere, can''t think of it offhand. Search and ye shall find. www.google.com (LWO format would do it).

As for the original problem:
I don''t think it''d be 5 yet (I checked yesterday and there was no 1.5.7 yet - will look again).

My guess is that it is a) to small b) you are looking in the wrong spot c) too big.
if a) or c) you may be inside the model and you won''t see anything or too far away and the clipping plane chops it.

Try my model viewer from rsn.gamedev.net (model tools). It zooms in and out and you should find the right spot. Just make sure your MS3D is at the origin.

Cheers!


~~~
Cheers!
Brett Porter
PortaLib3D : A portable 3D game/demo libary for OpenGL


~~~Cheers!Brett PorterPortaLib3D : A portable 3D game/demo libary for OpenGLCommunity Service Announcement: Read How to ask questions the smart way before posting!
BP and his infinite tomb of knowledge... Gotta wonder if he''s slacking at work again though.

------------------------------
Trent (ShiningKnight)
E-mail me
OpenGL Game Programming Tutorials
I got it to work now. I think it was the size of the object that was wrong. Thankyou for all the answers!
kpn
Glad it works.

BTW, I posted I had a model viewer on my site, but I''ve integrated it into PortaLib 0.3 in case anyone was looking for it.

~~~
Cheers!
Brett Porter
PortaLib3D : A portable 3D game/demo libary for OpenGL


~~~Cheers!Brett PorterPortaLib3D : A portable 3D game/demo libary for OpenGLCommunity Service Announcement: Read How to ask questions the smart way before posting!

This topic is closed to new replies.

Advertisement