confused Multi mirror plan

This topic has been viewed 3643 times and has 4 replies
Thread status: Active
How can I do this? [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
maurorog
Posts: 5
Joined: Tue Jun 07, 2011 11:11 am
Country: Genova, Italia

Multi mirror plan

Post by maurorog »

I need help to create a clothes hangers with a mirror.
The mirror has many horizontal and vertical lines, so as to draw many squares.
I created everything with sketchup and exported to obj format.
I followed your advice, adding the attribute g sweethome3d_window_mirror before each usemtl, but I do not understand why the frame disappears.
I am attaching the file format and obj skp.
Thanks in advance
Download
User avatar
hansmex
Posts: 4027
Joined: Sat Sep 26, 2009 11:36 am
Country: Netherlands

Re: Multi mirror plan

Post by hansmex »

Rogledi,

When I import the OBJ file you shared, it's all gray because the textures aren't applied correctly.

I loaded the SKP file, exploded it, and applied the "specchio" mirror texture to both faces of the individual mirror tiles. I then exported it using File --> Export --> 3D model. Note that this produces a DAE file plus a directory with the same name containing the 4 textures in your design. The DAE file can be imported into SH3D and should be in the same directory as the texture directory.

This is the image that your design gives after importing into SH3D. I guess this is what you wanted? Note that the "specchio" texture doesn't result in mirrored surfaces, as the image clearly shows.

Hans

Image
Hans

new website - under constuction
hansdirkse.info
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Multi mirror plan

Post by Puybaret »

The OBJ files interpreter of Sweet Home 3D doesn't display the material colors you chose because Sketchup didn't create a new object with a line starting by g or o, for each color or texture change happening with a line starting by usemtl.
As there doesn't seem to be any OBJ export option in Sketchup that would say "Separate by color" or "Separate by material", I guess I'll have to update Sweet Home 3D...
At this time, I would:
- export the 3D model in DAE/Collada file format from Sketchup,
- import the DAE file in an empty home in Sweet Home 3D,
- export it with 3D view > Export to OBJ format menu item,
- change in the generated OBJ file the name in each g line preceding the usemtl matching a mirror material, with something prefixed by sweethome3d_window_mirror,
- import the modified OBJ file in Sweet Home 3D again.
Hope this is clear enough...
Emmanuel Puybaret, Sweet Home 3D creator
maurorog
Posts: 5
Joined: Tue Jun 07, 2011 11:11 am
Country: Genova, Italia

Re: Multi mirror plan

Post by maurorog »

I used the puybaret method and I got the desidered result.
Thanks a lot at all.

Fantastic software :)

Image
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Multi mirror plan

Post by Puybaret »

Great that it worked, even if the method isn't very handy... [:)]
This should work also in the DAE file if you correctly set the name attribute of the node elements which are parent of an instance_geometry element.
Emmanuel Puybaret, Sweet Home 3D creator
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 2 guests