Question about models...

Started by
7 comments, last by MyCatIsTheBest 20 years, 10 months ago
I am writing a simple 3d engine, just for fun. I already have a terrain made, and I have models from .3ds I would like to insert. Are their any converters for .3ds to whatever OpenGl format is? I''m kinda new at importing models from other things. I just usually draw them in Open Gl, but the quilaty is too bad, and too time consuming.
Advertisement
The 3ds format is pretty hard to load by scratch. Its not very well documented.

Luckly, there are prebuilt libraries, you just have to search google.

Here''s a good one

---
"you are the poet laureat (sp?) of programming. ALL HAIL!!!" -capn_midnight
A Link for programming drunks
~~~~~Screaming Statue Software. | OpenGL FontLibWhy does Data talk to the computer? Surely he's Wi-Fi enabled... - phaseburn
Isnt their something easy''r for us lazy OpenGl programmers?
The OBJ format is very easy to load. There are quite a few other human readable formats.
OBJ has no texture...

Height Map Editor | Eternal Lands | Fast User Directory
go to Game Tutorials, click on tutorials, op OpenGL and it''s on page 3 or 4 or so. On page 5 there''s even a tut to show you how to animate them using keyframes.

Sander Maréchal
[Lone Wolves Game Development][RoboBlast][Articles][GD Emporium][Webdesign][E-mail]


GSACP: GameDev Society Against Crap Posting
To join: Put these lines in your signature and don''t post crap!

<hr />
Sander Marechal<small>[Lone Wolves][Hearts for GNOME][E-mail][Forum FAQ]</small>

quote:Original post by Sander
On page 5 there''s even a tut to show you how to animate them using keyframes.

Actually, you have to buy their CD to get the 3DS Animation Tutorial.

---
"I made it into someone elses sig!" -capn_midnight
A Link for programming drunks
~~~~~Screaming Statue Software. | OpenGL FontLibWhy does Data talk to the computer? Surely he's Wi-Fi enabled... - phaseburn
Unfortunately, it''s a lot harder than:

GLModel myModel;

glLoadModel(myModel, "soldier.3ds");

glRenderModel(myModel, 0);

Ah, but we can dream, can''t we? ^.~

Radical Ion Entertainment | Free programming books
----------[Development Journal]
quote:OBJ has no texture...


It does actually. At the top of an OBJ file is this entry:
mtllib somefile.mtl

That file has the materials for the current object, including textures associated with the object.

This topic is closed to new replies.

Advertisement