Skip to main content
gamedev.net
🔒 Locked

Loading 3d Models

Started by shafiee01 Mar 3, 2009 at 4:56 AM 8 replies 1.9k views
Original Post
shafiee01
shafiee01
Hi I am try to develop a monitor for football simulator , my problem is when i try to load my stadium Model which is a huge model approximately 1 million vertex... I first try to use lib3ds but i could not find any tutorials! after that i tried glm it was good for small model but diffrent Problem with big Models! finally i used nvModel in Nvidia OpenGl sdk10, i could load huge model with it but i cant to map texture i dont know how to do that because it has no tutorial again and sample with SDK are completely Advanced! So pleaaassss Help mee! what is the best Way? sorry for poor english!
Lord_Evil
Lord_Evil
Well, it depends on the format your model is in.
You could either use a 3rd party model loader (a lib3ds tutorial seems to be here) or write your own loader if you know the format.
If I was helpful, feel free to rate me up ;)If I wasn't and you feel to rate me down, please let me know why!
Kimmi
Kimmi
You can also take a look into the following link to learn more about the ASSEt Importer lib. It supports the import of several model formats like 3DS, obj, X and many more.

Kimmi
A complicate solution may indicate a not understood problem.


[twitter]KimKulling[/twitter]
shafiee01
shafiee01
Quote:
Original post by Lord_Evil
Well, it depends on the format your model is in.
You could either use a 3rd party model loader (a lib3ds tutorial seems to be here) or write your own loader if you know the format.


I read this tutorial before it is not complete for example he didn't say anything about textures!
I need a simple and powerful and well documented Lib
shafiee01
shafiee01
Quote:
Original post by Kimmi
You can also take a look into the following link to learn more about the ASSEt Importer lib. It supports the import of several model formats like 3DS, obj, X and many more.

Kimmi


As I google it,Nobody have any idea how to use it in OpenGL!

Kimmi
Kimmi
Currently nobody has released a solution for it. But one of the developers has an imlpementation for a viewer based on OpenGL, so it is possible :).
You just have to take care of the right matrix format.

Kimmi
A complicate solution may indicate a not understood problem.


[twitter]KimKulling[/twitter]
shafiee01
shafiee01
Quote:
Original post by Kimmi
Currently nobody has released a solution for it. But one of the developers has an implementation for a viewer based on OpenGL, so it is possible :).
You just have to take care of the right matrix format.

Kimmi


I should say that it is an urgent need for me i cannot pay lots of time for it!
do u know who?
and where to find that implementation or any easier solution for loading 3dModel(3ds Or Obj) with texture,Material and ...
Kimmi
Kimmi
You can ask for it on the ML, Alexander Geissler aka aramis ist the guy you are looking for. And the obj-loader-implementation of the AssImp should work for OpenGL, too ( I know it because I wrote it :) ). But you have to implement the rendering on your own.
If you just want to display a model look out for a 3D-engine like the Irrlicht engine . The irrlicht-engine for instance supports obj and 3ds and has an own OpenGL-renderer.

With best regards,

Kimmi
A complicate solution may indicate a not understood problem.


[twitter]KimKulling[/twitter]
Lord_Evil
Lord_Evil
Well, from a quick look on lib3ds it seems that each face has the texture coordinates (or at least an index into an external array) included as well as a material. The material itself holds a pointer to the various texture maps.

It should not too hard to find out how it works once you have the basic geometry running.

Edit:
3ds format tutorial
simple loader
If I was helpful, feel free to rate me up ;)If I wasn't and you feel to rate me down, please let me know why!
shafiee01
shafiee01
Hi
Thank a lot You are Best Brothers in the World!
and gamedev is the best Forum of World!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.