adding texture to a box

This topic has been viewed 3747 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
petefastfeet
Posts: 3
Joined: Sat Mar 24, 2012 11:47 am

adding texture to a box

Post by petefastfeet »

Hello all,
When I add a texture to a box, it stretches the texture image to the size of the box face, as opposed to replicating the image....any thoughts what I am doing wrong?
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: adding texture to a box

Post by Puybaret »

Textures applied to the box provided with Sweet Home 3D behave differently according to the way you selected the textures:
- if you apply a texture globally on the box, i.e. by selecting a texture directly from the Modify texture dialog box, then the size of the texture will be taken into account and will be truncated or repeat itself, depending on the size of the box
- if you apply a texture on one or more faces of a box, i.e. through the Furniture materials sub dialog box, then the texture will be resized to fit the given face(s) of the box.
Emmanuel Puybaret, Sweet Home 3D creator
petefastfeet
Posts: 3
Joined: Sat Mar 24, 2012 11:47 am

Re: adding texture to a box

Post by petefastfeet »

Thanks for the quick response. I see now how it works, thanks.
ndorigatti
Posts: 66
Joined: Fri May 12, 2017 9:54 am
Country: Italia

Re: adding texture to a box

Post by ndorigatti »

Hi, sorry for resuming this but I have a question on this...
I want to draw wood pieces for an attic and those have the texture of different angle of different textures on sides, so I would like to create a box and repeat the texture on their sides, so what I'm asking is if I can do with blender or other software, because I tried but Did not manage to do, reading this post seems that is due to the sweet home behaviour and not on my models, am I right?
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: adding texture to a box

Post by Puybaret »

You can't prepare texture mappings in Blender that won't stretch textures in the exported OBJ file when you resize your imported piece.
But you could use 3 (or more) boxes instead of one in Sweet Home 3D, one for the 4 front/top/back/bottom sides, and 2 (or more) thin ones for the left and right sides. Once grouped, the textures on the boxes will behave as you expect it when you resize the group (see the file attached to this post).
Attachments
BeamWith3Boxes.sh3d
(64.98 KiB) Downloaded 283 times
Emmanuel Puybaret, Sweet Home 3D creator
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 2 guests