Loading models
#1 Members - Reputation: 100
Posted 24 June 2011 - 04:07 PM
please i would like your help...any ideas on how to fix this kind of problem..i have tried using obj and 3ds loaders and still not succeded....
and also does this ms3d loader used in lesson 31 have a maximum number of polygon it accepts from models???
just want to know where to look ...because i am frustrated right now ...just need any help i can get.....Sorry if my question's is not good enough
thanks
#2 Members - Reputation: 432
Posted 25 June 2011 - 05:00 AM
The ms3d loader should not have an upper limit in theory, though i really don't know much about the format myself so it could be hitting the 64k limit somewhere.
It really depends on the model and model format, which is another thing, this version of ms3d is an older version which could be your problem, so it shouldn't really be used anymore, obj should still work, though preferably you should make your own format and convert collada files to it.
What you mean with " large model sizes"? 1k, 10k, 100k, 1M, or more polys?
#3 Members - Reputation: 100
Posted 25 June 2011 - 08:12 AM
No loader i know of selects according to size unless they have some kind of LOD system in place, most don't and even if they do it would still load something.
The ms3d loader should not have an upper limit in theory, though i really don't know much about the format myself so it could be hitting the 64k limit somewhere.
It really depends on the model and model format, which is another thing, this version of ms3d is an older version which could be your problem, so it shouldn't really be used anymore, obj should still work, though preferably you should make your own format and convert collada files to it.
What you mean with " large model sizes"? 1k, 10k, 100k, 1M, or more polys?
thank you for your reply......please could you give any suggestions on how i could create my own format...because it seems that no loader i use accepts my models...i tried an obj loader using the glm.lib and glm.cpp.. which pretended to load and went off within a second, i also tried a 3ds format on a 3ds loader gave me blank.....i kinda feel my models dont work with thier algorithms(they are not really that complex which makes it more frustrating)........how do i go about making my own format (any tutorials would suffice).
large model sizes...my model has 11,000 polygons
thank you for your help
#4 Members - Reputation: 432
Posted 25 June 2011 - 09:21 AM
large model sizes...my model has 11,000 polygons
That's not that large.
The way to go about it is fairly simple, first you will need a header that contains all relevant information like the number of polygons and where the data for vertex texture and normal information start,
Just having a array of unsigned ints is preferable.
Secondly, just write the data, it's not that hard, writing a file spec is preferable though so both you and anyone else can replicate it with ease.
You will probably go trough several formats before you settle on something more permanent, but that's just a part of the learning process.
The hard part is not creating the format, it's exporting to the format that's why i recommend that you first make a obj loader and make that work, then make your own format.
http://en.wikipedia.org/wiki/Wavefront_.obj_file
#5 Members - Reputation: 100
Posted 26 June 2011 - 12:46 AM
large model sizes...my model has 11,000 polygons
That's not that large.
The way to go about it is fairly simple, first you will need a header that contains all relevant information like the number of polygons and where the data for vertex texture and normal information start,
Just having a array of unsigned ints is preferable.
Secondly, just write the data, it's not that hard, writing a file spec is preferable though so both you and anyone else can replicate it with ease.
You will probably go trough several formats before you settle on something more permanent, but that's just a part of the learning process.
The hard part is not creating the format, it's exporting to the format that's why i recommend that you first make a obj loader and make that work, then make your own format.
http://en.wikipedia....front_.obj_file
Thanks alot for your help i am very grateful.....one final question, after creating the loader and i was planing on loading multiple models i should not need an extra loader for each separate model ?
#6 Members - Reputation: 432
Posted 26 June 2011 - 03:55 AM
Thanks alot for your help i am very grateful.....one final question, after creating the loader and i was planing on loading multiple models i should not need an extra loader for each separate model ?
Not if you wrap it in a class, then you can just create a new instance of that class for every model you choose to load.






