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 242724 times and has 76 replies Next Thread
hansmex
Advanced Member
Member's Avatar

Netherlands
Joined: Sep 26, 2009
Post Count: 4005
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: 4005
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: 4005
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 
hansmex
Advanced Member
Member's Avatar

Netherlands
Joined: Sep 26, 2009
Post Count: 4005
Status: Offline
Reply to this Post  Reply with Quote 
Re: Simulate sun position and lights/shadows

db6tech:

Due to inflation..... hehehe

Sorry, I didn't sleep enough, I guess. Off course it's a furniture file. I'll try to remember to read the question before answering it.

Sorry Melonfrog!

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

new website - under constuction
hansdirkse.info
----------------------------------------
[Edit 1 times, last edit by hansmex at Jun 1, 2010, 5:34:53 PM]
[Jun 1, 2010, 5:34: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: 9426
Status: Offline
Reply to this Post  Reply with Quote 
Re: Simulate sun position and lights/shadows

SH3F fles may be installed with Furniture > Import furniture library... menu item too.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Jun 1, 2010, 7:27: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 
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

Thanks everyone.
Still learning on how to position the lights to create the proper effect.

One question, will it take a long time to render using this plugin?
I have problem with it stopping during rendering too.
[Jun 3, 2010, 2:54:29 AM] 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: 4005
Status: Offline
Reply to this Post  Reply with Quote 
Re: Simulate sun position and lights/shadows

Melonfrog:

Rendering can take a very long time, depending on:
- the speed of your computer
- the size of your model
- the number of lights you are using (try the same model with 2 and 20 lights)
- the size of the photo you make
- the quality settings of your photo render.

Because rendering uses a lot of memory you may choose to increase the maximum memory settings that SH3D can use. Read this thread for an explanation.

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

new website - under constuction
hansdirkse.info
[Jun 3, 2010, 8:08:41 AM] 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 2024 Space Mushrooms - All rights reserved