Download

Online

Gallery

Blog

  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: 77
Posts: 77   Pages: 8   [ Previous Page | 1 2 3 4 5 6 7 8 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 205582 times and has 76 replies Next Thread
db4tech
Advanced Member



UK
Joined: May 3, 2010
Post Count: 223
Status: Offline
Reply to this Post  Reply with Quote 
Re: Simulate sun position and lights/shadows

Hi Emmanuel,

I'm not sure if you have done any further work on the shaders since version 1.3 of advanced and Uber, so I will present some findings using version 1.3.

Could there be a memory leak with the shaders or SunFlow? I ask this because if I render the same scene (containing lots of textures) then change a few things to improve the scene, then re-render (I do this quite a lot tweaking things (400x300 fast setting)) at first the renders are very fast but then renders start to slow down, eventually the scene tries to render, thinks for a while and a red x shows. The only fix is to close Sweet Home then start Sweet Home again with the same scene, after this rendering is very fast for a while.

I have tried this with more than one model (for my course work) to be honest, when I am happy everything looks right and I am ready for a final render, I always close the Sweet Home program then open it because it renders my final scene faster.

db4tech
[May 29, 2010, 7:50:59 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: 3948
Status: Offline
Reply to this Post  Reply with Quote 
Re: Simulate sun position and lights/shadows

db3tech, Emmanuel:

DB, that's an interesting observation. I didn't test it as methodically as you did, but it rings a bell. I sometimes get "half" renders, where the rendering stops halfway the picture. Also, when rendering this picture in high quality (size 400x300 pixels) it took AGES (as in "several hours") to complete. Maybe that was because I used around 25 lights, but the rest of the scene was very simple: just the lady and the tree (OK, that's a complex model) and a wall with a small texture.

If I have more time, I will certainly try to do some more testing in the next days.

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

new website - under constuction
hansdirkse.info
[May 29, 2010, 8:34:43 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: Simulate sun position and lights/shadows

Hi Hans,

Thanks for your feedback. Yes I have experienced half (or unfinished) renders too when the render engine either thinks it has finished or runs out of buffer space? It doesn't happen very often but once it has happened the only solution (as mentioned in my previous post) is to close and reopen Sweet Home, then all is well (unless lots more renders are carried out)

Hope you are having a nice weekend.
db4tech

PS: Yes I spotted the render of your lady friend wink Emmanuel's comment made me smile.

db3tech, Emmanuel:

Hans

PPS: Have I been downgraded? db3tech biggrin laughing
[May 29, 2010, 9:09:30 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: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Simulate sun position and lights/shadows

Could there be a memory leak with the shaders or SunFlow?

Thank you db4tech for giving details how to reproduce this bug.
You were on the right track because the problem comes from textures management in SunFlow. I just discovered it uses internally some kind of cache for the textures which is never reset.
Too bad we discover this problem after the version 2.4 release. sad
There's a dirty fix that I can program in the next release of the plug-in. I'll see if I do it or not.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[May 29, 2010, 11:20:00 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: 3948
Status: Offline
Reply to this Post  Reply with Quote 
Re: Simulate sun position and lights/shadows

db5tech:

No

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

new website - under constuction
hansdirkse.info
[May 30, 2010, 1:11: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 
db4tech
Advanced Member



UK
Joined: May 3, 2010
Post Count: 223
Status: Offline
Reply to this Post  Reply with Quote 
Re: Simulate sun position and lights/shadows

Could there be a memory leak with the shaders or SunFlow?

Thank you db4tech for giving details how to reproduce this bug.
You were on the right track because the problem comes from textures management in SunFlow. I just discovered it uses internally some kind of cache for the textures which is never reset.
Too bad we discover this problem after the version 2.4 release. sad
There's a dirty fix that I can program in the next release of the plug-in. I'll see if I do it or not.

Would the dirty fix be to force the cache to reuse the same memory address space?
If so and the cache space isn't being cleared each time, won't you then have the problem of diminishing returns? Still encountering slowdowns, eventually running out of texture memory space caused by memory fragmentation.

db5tech (Thanks Hans!) smile
[May 30, 2010, 4:09:07 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: 3948
Status: Offline
Reply to this Post  Reply with Quote 
Re: Simulate sun position and lights/shadows

Emmanuel, db4tech:

After some testing I can confirm there's a memory bug in the advanced photo plug-ins. When I render the same scene several times, even if it's just a relatively small scene, it stops halfway during the sixth or so render, and after that only shows a red cross in the render window. So it would definitely seem that memory is filling up for some reason.

I have a file called "/home/hans/SweetHome3D-2.4/SweetHome3D.l4j.ini" with "-Xmx1024m" in the same directory as where the v2.4 file is. When I increased this value to 2048, I could make 13 successive renders of that same scene. On the 14th run the rendering stopped halfway,and after hanging (half) a minute I could close the rendering window.

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

new website - under constuction
hansdirkse.info
[May 31, 2010, 1:50:40 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
melonfrog
Newbie




Joined: Jun 1, 2010
Post Count: 2
Status: Offline
Reply to this Post  Reply with Quote 
Re: Simulate sun position and lights/shadows

By installing the BasicPlusExtraLights.sh3f plugin, do you mean to copy the BasicPlusExtraLights.sh3f to the plugins directory?
[Jun 1, 2010, 3:51:36 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: 3948
Status: Offline
Reply to this Post  Reply with Quote 
Re: Simulate sun position and lights/shadows

Melonfrog:

Yes, that's all you have to do. The program checks this directory while starting, and loads all plug-ins present.

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

new website - under constuction
hansdirkse.info
[Jun 1, 2010, 4:33:27 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: Simulate sun position and lights/shadows

Hi Melonfrog and Hans,

The BasicPlusExtraLights.sh3f needs to go in the furniture directory rather than the plug-in directory, otherwise the lights won't be available on the furniture list. Melonfrog if it is helpful for future downloads the files extension is the clue to its location sh3p are plug-in's and sh3f are furniture.

If using a Windows computer (will probably work on other Operating Systems too) all you need to do is double click on the downloaded (in this case BasicPlusExtraLights.sh3f) file and it will be automatically installed in the correct directory.

db4tech/db5tech smile
[Jun 1, 2010, 5:32:24 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Posts: 77   Pages: 8   [ Previous Page | 1 2 3 4 5 6 7 8 | Next Page ]
[ 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 2006-2024 eTeks - All rights reserved