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
Netherlands
Joined: Sep 26, 2009
Post Count: 3991
Status:
Offline
Re: Multi mirror plan
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.
France
Joined: Nov 7, 2005
Post Count: 9420
Status:
Offline
Re: Multi mirror plan
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
France
Joined: Nov 7, 2005
Post Count: 9420
Status:
Offline
Re: Multi mirror plan
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