parsing textures from .mtl file for .obj model

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
zzino
Posts: 7
Joined: Fri Feb 27, 2004 6:44 am
Location: Toronto

parsing textures from .mtl file for .obj model

Post by zzino »

Last time when I posted some question, many people helped me
and I appreciate for great help.

==== question 1 ======

I am having another problem with textures in .obj model.

when I save model in .obj format in Maya, it will generate model.obj and model.mtl as well.

I loaded .obj file but not the textures....I believe .mtl file contains all the texture information....

Does anyone know how to load more than one textures for complex model?

==== question 2 =====
My .obj file is 7M.. and textures are 20M in total...

Will it be a problem to load the model??
Will it be too slow?
Should I reduce the quality of textures and model??

Waiting for advices!

Thank you ^_^;
Yesterday is history.
Tomorrow is a mystery.
Today is a gift. That's why it's called the "present."
guest91

Post by guest91 »

==== question 2 =====
My .obj file is 7M.. and textures are 20M in total...

Will it be a problem to load the model??
----------------

sure it'll be a problem....


If it is for a character...7mb....well, then even for an scenery as a a whole thing..!


hey..my 2 000 tris model, for a human character, is only 262 Kb...

hmm..surely you don't obtain triangles number just saying then ~ 28x 2000 is what you have...But if it were so... 56.000 hmmm...
well, in general, for a whole scenery...if the code is really optimized, as well as the artwork...polished I mean so to not create unnecesary bottlenecks...then it maybe...there can sceneries that high.

if it's a character model, then forget it. You should stick to 2000-3500 for a main playe rmodel, if it's an fps...but it always depends on much many more factors...An strategy game could end up with 400 tris characters...

7m a texture...is to huge, even if it is uncompressed BMP...again, if it is for a character model...maybe for a huge scenery texture of 2048...but nah...I think is better not pass 1024 ones... 3mb is a bmp with that size, rgb...

Even more, the more you can stick with 512x512, the better...
is more about clever use.

mtl file is an ascii file. There it reads the specular, emissive, etc, material values, also the name of the diffuse map texture...etc.
Post Reply