.obj's and layered textures

This topic has been viewed 4640 times and has 5 replies
Thread status: Active
How can I do this? [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
User avatar
pencilart
Posts: 188
Joined: Tue Oct 02, 2007 4:37 pm

.obj's and layered textures

Post by pencilart »

I have a question about .obj's and layered textures:
They cannot handle layered textures, right? Nor can they handle per face coordinates? I just tried exporting a stove that has a layered texture to .obj and the texture for the control panel did not show up at all, not even in the .mtl file!

Here is a picture of what I would like it to look like: http://www.storm-artists.net/view/92756/
I've forgotten about how to get the glass part of the oven door to be transparent. Should I make it as "sweethome3d_window_pane"?
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: .obj's and layered textures

Post by Puybaret »

You can apply a texture to a small zone in OBJ format.
The best proof for that is all the 10 frame models I published in 3D models import page.

Can you send me your object at AOI format, so I can check the problem?
Emmanuel Puybaret, Sweet Home 3D creator
User avatar
hansmex
Posts: 4027
Joined: Sat Sep 26, 2009 11:36 am
Country: Netherlands

Re: .obj's and layered textures

Post by hansmex »

Pencilart, Emmanuel:

Forgive me for being stupid... but how difficult can it be to make an oven?

Image

This one was made in just 1 minute using SH3D, my favourite program to make "square" furniture. And yes, I know it's just a sloppy oven.

Hans
Attachments
test_oven.sh3d
(72.96 KiB) Downloaded 694474 times
Hans

new website - under constuction
hansdirkse.info
User avatar
pencilart
Posts: 188
Joined: Tue Oct 02, 2007 4:37 pm

Re: .obj's and layered textures

Post by pencilart »

Yes, hansmex, but I want knobs, burners with the covers and a control panel and pretty glass in the oven door.
Besides, I'm having fun with trying to solve all the puzzles presented in making these models as realistic as I possibly can (as well as having an excuse to ask my fellow modelers.) ^_^. [:D]
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: .obj's and layered textures

Post by Puybaret »

From the file you sent me, I understand now what you meant about "layered textures": in AOI, the texture dialog box displayed by Object > Set texture... menu item lets you apply more that one texture and/or one color on a shape, once you selected Layered Texture in the Type combo box.

I don't see how this info could be exported in OBJ+MTL format file, since it supports only one texture per shape and this texture will be repeated along its faces as a wall paper pattern depending on textures coordinates.
So please don't use the Layered Texture in AOI if you want to share your model in OBJ format.
The workaround is quite simple: create a separate shape for the control panel and apply a simple texture on that shape.
Emmanuel Puybaret, Sweet Home 3D creator
User avatar
pencilart
Posts: 188
Joined: Tue Oct 02, 2007 4:37 pm

Re: .obj's and layered textures

Post by pencilart »

ok.
It was worth the experiment though.
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 2 guests