You are not logged in.
Pages: 1
When i export a object to .OBJ format from Sketchup :
For example, it create the files:
- flower.obj
- flower.png
- flower.mtl ( UV Mapping )
How to configure the .mtl file in Tesseract ?
Pls a pratical example if possible.
Last edited by rebit (2014-09-15 10:46:43)
Offline
You don't use the .mtl file in Tesseract and the .obj file also contains UV mapping. In the .mtl file is normally just specified wich textures to use.
Look at the "obj.cfg" in the model folders as example how to load a model.
Offline
Hello can you do a workflow example to how export any object and make the right file for Tesseract ?
My problem is with objects with multiple textures.
Last edited by rebit (2014-09-16 19:06:24)
Offline
I didnt understand where is the 'name' of meshes in a .obj multi-texturized files...
Offline
There should be a line with "o <name>" on the top of the file and the next one after everything related to the first mesh.
Offline
Ok i got it. But why Tesseract doesnt suport the simple and easy .mtl file to adjust the textures ????
Offline
Or if your have a solution to automatically create a Unwrapped texture with a export option with a Solfware or command line tool this will be very helpfull to me.
I dont know if you understand me.
My model have , for example, 3 meshes with each texture file
texture1.png
texture2.png
texture3.png
i want a software that can read this object with this textures files and create only 1 file with all textures with respective mapping. Doing this automatically.
Last edited by rebit (2014-09-16 21:17:43)
Offline
I'll give ... :(
Offline
No, I don't understand you. You can use different textures for different meshes from one or multiple .obj files.
Have you took a look at http://sauerbraten.org/docs/models.html? (The third link of "Documentation" on tesseract.gg)
Offline
No, I don't understand you. You can use different textures for different meshes from one or multiple .obj files.
Have you took a look at http://sauerbraten.org/docs/models.html? (The third link of "Documentation" on tesseract.gg)
Thank for reply. I already saw this document. The problem is with pre-existent models for example. If i download a model from a Trimble Warehouse, the model comes with a .mtl file and all textures (many files)...
The .obj export generated by Sketchup have the meshes name, but when i transwrote to obj.cfg not works fine...
Take a look this .OBJ model pls:
https://drive.google.com/file/d/0B48Srd … sp=sharing
Can you try to load this chair (model) to Tesseract ? And after you send me the files (obj.cfg) adjusted to me ? I really try lot of times, im in this 4 days. :)
the model comes with this textures (separeted files):
Also if anyone knows how to do, but please download the file I posted to see how does the export Sketchup.
Last edited by rebit (2014-09-17 09:53:10)
Offline
Your problem is that there are used different textures for one mesh. I didn't even know this is possible in .obj files. However, this is not supported. There has to be one texture per mesh only.
This mesh has low quality anyway, e.g. there are some missing faces and many faces use just colors, no textures.
Offline
Your problem is that there are used different textures for one mesh. I didn't even know this is possible in .obj files. However, this is not supported. There has to be one texture per mesh only.
This mesh has low quality anyway, e.g. there are some missing faces and many faces use just colors, no textures.
Thank you
I think, the .obj support should be increase in tesseract. This model works in all other platforms.
You can try in meshlab for example. And the color is a texture too (chaircolor.jpg).
I tried with others models too, same problem...
Many other people is trying to load .obj in Tesseract with no lucky, because this is a problem.
I think .mtl file should be supported , this will cause a big confusion. The .OBJ support in Tesseract is not completed.
MeshLAB ok:
Milkshape ok:
3ds Max 2015 ok !
Last edited by rebit (2014-09-17 11:26:05)
Offline
No wonder you are having problems, the model is such a mess with all pieces thrown around.
Im trying to set it up here but.... please use a model with a single texture for all of a mesh part, with at least a 1024x1024 or 2048x2048 with normal maps.
It can be loaded on the obj.cfg then with this way :
objload mesh1
objskin mesh1.png,
The other part to be loaded would be something like this:
objload mesh2
objskin mesh2.png
with at least a 1024x1024 or 2048x2048 with normal maps.
It's simplier that way.
Last edited by SniperGoth (2014-09-17 16:18:04)
Offline
Sniper, but is the exctaly im trying to do, load a common object generated in any software with multiple textures. I have this problem with many models. I think the way Tesseract put the .obj into de engine is obsolete. Imagine with a complex models...
One texture = UV Unwrapp work = Lot of Work = Difficult Work = Slow work.
Last edited by rebit (2014-09-17 19:13:29)
Offline
well, im studying
Offline
im in progress
Offline
Got it working.
https://dl.dropboxusercontent.com/u/773 … s_edit.png
But you should really put textures in every part of the model, otherwise it will look like this, with broken faces and such.
Offline
Pages: 1