#1 2014-09-15 10:46:01

rebit
Member

Exporting Meshes from Trimble SketchUP

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

#2 2014-09-15 11:28:04

Unnamed
Member

Re: Exporting Meshes from Trimble SketchUP

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

#3 2014-09-16 19:05:39

rebit
Member

Re: Exporting Meshes from Trimble SketchUP

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

#4 2014-09-16 19:39:04

rebit
Member

Re: Exporting Meshes from Trimble SketchUP

I didnt understand where is the 'name' of meshes in a .obj  multi-texturized files...

Offline

#5 2014-09-16 20:14:21

Unnamed
Member

Re: Exporting Meshes from Trimble SketchUP

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

#6 2014-09-16 21:07:41

rebit
Member

Re: Exporting Meshes from Trimble SketchUP

Ok i got it. But why Tesseract doesnt suport the simple and easy .mtl file to adjust the textures ????

Offline

#7 2014-09-16 21:15:44

rebit
Member

Re: Exporting Meshes from Trimble SketchUP

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

#8 2014-09-17 07:34:47

rebit
Member

Re: Exporting Meshes from Trimble SketchUP

I'll give ... :(

Offline

#9 2014-09-17 08:56:15

Unnamed
Member

Re: Exporting Meshes from Trimble SketchUP

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

#10 2014-09-17 09:41:06

rebit
Member

Re: Exporting Meshes from Trimble SketchUP

Unnamed wrote:

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. :)

eOPddST.png

the model comes with this textures (separeted files):

lTygKZR.png

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

#11 2014-09-17 10:50:11

Unnamed
Member

Re: Exporting Meshes from Trimble SketchUP

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

#12 2014-09-17 10:55:38

rebit
Member

Re: Exporting Meshes from Trimble SketchUP

Unnamed wrote:

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:

et9G4Qc.png

Milkshape ok:

P9NeQ8V.png

3ds Max 2015 ok !

QXo6h7x.png

Last edited by rebit (2014-09-17 11:26:05)

Offline

#13 2014-09-17 16:16:15

SniperGoth
Member

Re: Exporting Meshes from Trimble SketchUP

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

#14 2014-09-17 19:13:09

rebit
Member

Re: Exporting Meshes from Trimble SketchUP

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

#15 2014-09-17 22:11:45

rebit
Member

Re: Exporting Meshes from Trimble SketchUP

Offline

#16 2014-09-17 22:18:27

rebit
Member

Re: Exporting Meshes from Trimble SketchUP

im in progress

hUd2O88.jpg

Offline

#17 2014-09-17 23:08:20

SniperGoth
Member

Re: Exporting Meshes from Trimble SketchUP

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

Board footer