Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 9
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 4805 times and has 8 replies Next Thread
hansmex
Advanced Member
Member's Avatar

Netherlands
Joined: Sep 26, 2009
Post Count: 3991
Status: Offline
Reply to this Post  Reply with Quote 
Bug in textures?

Emmanuel:

These last few weeks I found some odd behaviour of textures. When importing a texture, I can set a "normal" value for it. When applying the texture to some models it looks good. When applying the same texture to other models, I have to increase its size approximately hundredfold.



The image shows a LeMog slate texture applied to a roof and to a cube. To be visible on the roof, I had to set it to 8000! As you can see, it is far too big to show on the box next to it.

I have seen the same behaviour when applying a texture to the curtain model.

Hans
----------------------------------------
Hans

new website - under constuction
hansdirkse.info
[Jun 10, 2010, 9:12:03 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
db4tech
Advanced Member



UK
Joined: May 3, 2010
Post Count: 223
Status: Offline
Reply to this Post  Reply with Quote 
Re: Bug in textures?

Hi Hans,

After reading your post I had to try this, I noticed the applied texture sweep across the model as it was mapped in Sweet Home, so then had a look at the roof model in Art of Illusion which helped provide the answer. I can offer a solution if I may?

The roof object is actually a collection of many parts, each tile has its own surface, so the applied texture is actually mapping in miniature on every tiny roof tile, unlike the cube which maps the texture across the whole surface in one go.

Hope this helps,
db4tech
----------------------------------------
[Edit 1 times, last edit by db4tech at Jun 10, 2010, 11:44:27 PM]
[Jun 10, 2010, 11:41:12 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9420
Status: Offline
Reply to this Post  Reply with Quote 
Re: Bug in textures?

I had the same idea as db4tech at first. But fortunately, he's wrong (I say "fortunately" because if he was right, this would mean that this bug could happen on all objects made of multiple shapes): the generated texture coordinates take into account the size of the whole object.
If you try with the updated models (Blue slate roof and Red slate roof) where all the slates are managed as only one shape, you'll get the same result. Maybe this problem is due the fact that he slates are inclined. I'll have to investigate further.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
----------------------------------------
[Edit 1 times, last edit by Puybaret at Jun 11, 2010, 8:34:19 AM]
[Jun 10, 2010, 11:57:14 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9420
Status: Offline
Reply to this Post  Reply with Quote 
Re: Bug in textures?

I found the bug and fixed it.
I'm annoyed because it's a regression from version 2.3, and it's bound to the internal size of the 3D models. For 3D models with a width, a depth and a height of 1 unit, like the box provided in Sweet Home 3D, that won't change anything. But for the other models, like the roof used by Hans, the result will depend on whether you use version 2.4, or version 2.3 and future versions. The workaround is to resize the width, the depth and the height of the item to 1 cm, export it to OBJ and reimport it (this can be done with the Copy as new furniture plug-in).
Even if the release of version 2.4 is only 2 weeks old, I wouldn't mind to release version 2.5 now, if some of you really needs this fix. Please tell me.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Jun 11, 2010, 1:34:20 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
hansmex
Advanced Member
Member's Avatar

Netherlands
Joined: Sep 26, 2009
Post Count: 3991
Status: Offline
Reply to this Post  Reply with Quote 
Re: Bug in textures?

Emmanuel:

Indeed, I was already thinking it was a regression bug, because I never had that particular problem in v2.3. Meanwhile I found that it affects quite a few models...
If you don't like publishing v2.5, maybe I could convince you to publish v2.4.1? :-)

Whatever solution, thanks for investigating this. If I have to wait until the next release, that wouldn't be a big problem, because I found out that I can have several texture sizes in the same project.

Hans
----------------------------------------
Hans

new website - under constuction
hansdirkse.info
[Jun 11, 2010, 2:16:58 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9420
Status: Offline
Reply to this Post  Reply with Quote 
Re: Bug in textures?

Whatever its number is 2.4.1 or 2.5, a new release is a new release! wink
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Jun 11, 2010, 2:57:25 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9420
Status: Offline
Reply to this Post  Reply with Quote 
Re: Bug in textures?

I just released a version 2.5 Beta. Could you check it works ok for you?
This version brings only optimization and a few bug fixes.

Note from developer: Version 2.5 with the bug fix was released on June 21, 2010.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
----------------------------------------
[Edit 1 times, last edit by Puybaret at Jun 22, 2010, 12:23:56 AM]
[Jun 11, 2010, 8:28:10 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
db4tech
Advanced Member



UK
Joined: May 3, 2010
Post Count: 223
Status: Offline
Reply to this Post  Reply with Quote 
Re: Bug in textures?

Good to hear you found the solution. Also in connection with your reply to my post, it's one of those times when it is nice to be wrong! biggrin

Without the fix it would have been difficult trying lots of textures for suitability for models like this.

Thank you for 2.5 Beta smile


I'm not sure how the global illumination works in Sweet Home so please ignore this request if I have misunderstood.
While you are working on 2.5 would it be possible to adjust the sunlight position within sky dome, so instead of the light being outside of the texture dome it could be just on the inside? I am just thinking how much light reduction happens as soon as a sky texture (even a light coloured one) is applied.

db1.2tech

Edit: Added request.
Edit2: Fixed glaring typo smile
----------------------------------------
[Edit 2 times, last edit by db4tech at Jun 12, 2010, 3:10:21 PM]
[Jun 11, 2010, 11:35:21 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
hansmex
Advanced Member
Member's Avatar

Netherlands
Joined: Sep 26, 2009
Post Count: 3991
Status: Offline
Reply to this Post  Reply with Quote 
Re: Bug in textures?

Emmanuel:

A picture tells more than a thousand words....
All models were imported "as is", no changes, size 1x1x1 or whatever is specified in their original form, textures set at a reasonable size (approx 80 cms).
The curtain with texture now behaves the same way it did before. The cube didn't give problems, all other three models did.



Thank you very much for this bug fix!!

Hans
----------------------------------------
Hans

new website - under constuction
hansdirkse.info
[Jun 12, 2010, 6:29:31 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

  Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads  
© Copyright 2024 Space Mushrooms - All rights reserved