Problem with "Create photo function"/Internal Renderer

This topic has been viewed 11123 times and has 12 replies
Thread status: Active
Still a problem with your graphic card? [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
maxfri
Posts: 1
Joined: Mon Oct 19, 2009 10:59 am

Problem with "Create photo function"/Internal Renderer

Post by maxfri »

Hi there,

I have a problem with the internal renderer.
When i create or import a big project and start to render the renderer stops at a certain point.Im not able to finish a photo.This happens at all render settings except the fast setting.

I testet the sunflow renderer standalone where i can adjust the virtual memory.
Is there any option to change the memory for the internal renderer ???
Or is there a commandline to change the virtual memory ?

I tested the -Xmx and -Xms settings but there is no change.

The pictures looks quiet nice but the half of the pic is always black.

Hope you can help me,

Greetings
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Problem with "Create photo function"/Internal Renderer

Post by Puybaret »

Download the latest Jar executable file SweetHome3D-x.y.jar at http://sourceforge.net/projects/sweethome3d/files/
and run the following command if you want to allocate 1024 MB at max:

Code: Select all

java -Xmx1024m -jar path/to/SweetHome3D-x.y.jar
Emmanuel Puybaret, Sweet Home 3D creator
csfrost
Posts: 2
Joined: Tue Oct 27, 2009 3:22 am
Contact:

Re: Problem with "Create photo function"/Internal Renderer

Post by csfrost »

I'm having the same problem. 'Create Photo' worked fine a half dozen times and now will no longer execute - hangs the app.

I've downloaded the .jar file, and it's in my SH3D holder. I presume the instruction above it to launch a CMD line and use the "java" command. The 'DOS' line command responds with "java is not recognized as an internal or external command".

Cool program. Rendering the photos is a cool feature. I'd like to use it again. What am I still doing wrong?

Thanks for your help.

csfrost
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Problem with "Create photo function"/Internal Renderer

Post by Puybaret »

Instead of entering directly "java", you have to write the full path of "java".
It will probably be:

Code: Select all

C:\Program Files\Java\jre6\bin\java.exe

Then the command will become:

Code: Select all

"C:\Program Files\Java\jre6\bin\java.exe" -Xmx1024m -jar path/to/SweetHome3D-x.y.jar
There's an other solution, create a text file named SweetHome3D.l4j.ini in the same directory as SweetHome3D.exe, and write the following text in that file:

Code: Select all

-Xmx1024m
and relaunch Sweet Home 3D.
Emmanuel Puybaret, Sweet Home 3D creator
csfrost
Posts: 2
Joined: Tue Oct 27, 2009 3:22 am
Contact:

Re: Problem with "Create photo function"/Internal Renderer

Post by csfrost »

Emmanuel -

Thanks for both your Dev skils and your support.

I am still unsuccessful with either solution.

Solution #1: Excuse my ignorance, but my Vista 64 system has not 'Java' directory, so I'm unable to point to it, per your syntax.

Solution #2: I have executed (I believe) precisely per your direction - a file called SweetHome3D.l4j.ini in the App directory, with the single command pasted into it. No results.

Which is odd, because the modeling rendered almost a dozen times successfully before it stopped. Sometimes now the little green and red 'scanners' that paint the photo simply paint black space until it freezes. I've relaunched, rebooted... still no fix.

I'm open to suggestion. Thanks again for your support.

-=sf=-
carolaclavo
Posts: 5
Joined: Fri Nov 06, 2009 2:53 pm
Country: España

Re: Problem with "Create photo function"/Internal Renderer

Post by carolaclavo »

Instead of entering directly "java", you have to write the full path of "java".
It will probably be:

Code: Select all

C:\Program Files\Java\jre6\bin\java.exe

Then the command will become:

Code: Select all

"C:\Program Files\Java\jre6\bin\java.exe" -Xmx1024m -jar path/to/SweetHome3D-x.y.jar
There's an other solution, create a text file named SweetHome3D.l4j.ini in the same directory as SweetHome3D.exe, and write the following text in that file:

Code: Select all

-Xmx1024m
and relaunch Sweet Home 3D.
Is there anything like this I can do on the Mac version? I'm not able to save a photo in high quality. Thank you :)
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Problem with "Create photo function"/Internal Renderer

Post by Puybaret »

If you open the Info.plist file in the Sweet Home 3D.app folder, you'll see that it contains the following text:

Code: Select all

<key>VMOptions</key>
<string>-Xmx1024m</string>
meaning the Mac OS X version of Sweet Home 3D installer (and the Linux version too) already requires 1024 MB at max.

In version 2.1, I decreased max memory to 512 MB only for Windows installer and Java Web Start version, because the could not create the Java virtual machine bug was reported only for Windows.
Emmanuel Puybaret, Sweet Home 3D creator
carolaclavo
Posts: 5
Joined: Fri Nov 06, 2009 2:53 pm
Country: España

Re: Problem with "Create photo function"/Internal Renderer

Post by carolaclavo »

Thank you for your reply :)
slobadog
Posts: 2
Joined: Sun Oct 31, 2010 3:10 am

Re: Problem with "Create photo function"/Internal Renderer

Post by slobadog »

I am experiencing a similar problem. All was working well until I added some drawers in the kitchen. Now the best and second best photo's render an all black screen. The quick and next up work fine. I have added the file SweetHome3D.l4j.ini.

I'm using Win7 with SH3D V2.6 with Java V1.6.0_21 and my home file is 22.5Mb.

Thanks for any help, much appreciated.
slobadog
Posts: 2
Joined: Sun Oct 31, 2010 3:10 am

Re: Problem with "Create photo function"/Internal Renderer

Post by slobadog »

I guess it was just too much info for the renderer. I moved the point of view forward 2 meters and it now works...
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 2 guests