Joined: May 28, 2015
Post Count: 607
Status:
Offline
Other rendering quality levels
To customize the photo rendering properties, I modify them in a text editor then I save the SweetHome3D.l4j.ini file in the installation folder and at last I relaunch the program. As it is a bit tedious over time, is it possible to take into account these other rendering quality levels by compiling the source files or adding advanced settings in the photo panel using a plug-in?
I think it might interest some users.
----------------------------------------
EnkoNyito
France
Joined: Nov 7, 2005
Post Count: 9369
Status:
Offline
Re: Other rendering quality levels
If you want, you can change the values in the source code, and run the program with Eclipse. All the photo rendering properties are used in PhotoRenderer class (search calls to getRenderingParameterValue method). You could also create a plug-in that would set the rendering properties with calls to System.setProperty method.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
Joined: May 28, 2015
Post Count: 607
Status:
Offline
Re: Other rendering quality levels
Thanks for your answer!
The option of the source code with Eclipse is useful mostly for testing and helps make other changes to the program. I would keep the slider 4 position for predefined qualities: - Q1 : overview of 3D view with shading - Q2 (low) : globalIllumination = default, diffusedBounces = 1 - Q3 (medium) : diffusedBounces = 0 - Q4 (high) : globalIllumination = path, diffusedBounces >= 1
I will deal with the option of plug-in in depth for usual use.
----------------------------------------
EnkoNyito
The addition of the medium level was possible by modifying the files associated with the simple photo panel, photos panel at points of view and video panel. The program works fine with eclipse or a runnable jar.
Quality 0 : 3D view
Quality 1 : default global illumination
Quality 2 : contrasting global illumination
Quality 3 : indirect global illumination
Is there a manipulation to do if the jar file not running on another computer?
----------------------------------------
EnkoNyito
France
Joined: Nov 7, 2005
Post Count: 9369
Status:
Offline
Re: Other rendering quality levels
The default jarExecutable Ant target generates a Jar executable file able to run under Windows, Mac OS X and Linux, with 32 or 64 bit architecture.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
Joined: May 28, 2015
Post Count: 607
Status:
Offline
Re: Other rendering quality levels
Emmanuel, my mistake was to do export runnable jar in Eclipse. By using the build.xml of the source and Ant, the created jar works on another system.
Those interested can test these other rendering quality levels with SH3D-5.0_advanced.jar . With constrasting GI, use an interior light if not the image will be very dark. With indirect GI, use a sky without texture otherwise the image will be completely black.