Print at Oct 17, 2018 3:40:31 AM

Posted by Puybaret at Nov 28, 2017 1:19:45 PM
Re: Texture on a shape
It's because how texture coordinates are handled in Sweet Home 3D.
When you change the texture of an object with the Texture button in its furniture modification dialog box, a formula computes automatically the mapping of the chosen texture on the entire 3D model, using the size of the texture. The problem is that formula isn't flexible enough to get the results you expect on the 6 sides of a box.
At the opposite, when you change the texture of a material in the Furniture materials dialog box, this formula is used only if texture coordinates are not defined on the shape matching the modified material (the box provided in the default catalog comes with texture coordinates defined for its sides and applied in such a way that a texture should cover an entire side).
This gives two more or less logical ways to handle textures for users, without letting them bothering too much about the notion of texture coordinates which remains something quite complicate for the targeted audience of Sweet Home 3D.

For a long time, I've been tempted to program an exception for the default box to ensure the texture would be mapped more nicely on its left and right sides when the texture is set with its furniture modification dialog box. But then why not introducing an exception on the default cylinder or the default triangle too? And how to explain to users that this behavior won't be applied on a cube they will import themselves? It's a complicated subject but I'm opened to discuss about it...
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer