Print at Dec 16, 2025, 9:42:19 AM
Posted by enkonyito at Jun 3, 2019, 12:18:30 AM
Additional Sunflow options (tests)
Sunflow has command line options to control the rendering result without the GUI.
The goal here is to test their actions in Sweet Home 3D.


* Option:
-threads X
Allows you to force the number of threads used for rendering (BucketRenderer, MultipassRenderer).
Default value: number of available processors.

SH3D implementation:
int threads = X;
this.sunflow.parameter("threads", threads);
this.sunflow.options(SunflowAPI.DEFAULT_OPTIONS);




No major differences in rendering time if the number of virtual threads is greater than the number of actual threads available.



* Options:
-lopri
-hipri

Allows you to set the priority of the threads.
Default value: lowPriority = true.

SH3D implementation:
boolean lowPriority = true;
this.sunflow.parameter("threads.lowPriority", !lowPriority);
this.sunflow.options(SunflowAPI.DEFAULT_OPTIONS);


No major differences in rendering time.
----------------------------------------
EnkoNyito

Posted by enkonyito at Jun 4, 2019, 4:32:09 AM
Re: Additional Sunflow options (tests)
* Option:
-showaa
Display sampling levels per pixel for bucket renderer.
Default value: showAA = false.

SH3D implementation:
boolean showAA = false;
this.sunflow.parameter("aa.display", !showAA);
this.sunflow.options(SunflowAPI.DEFAULT_OPTIONS);


showAA = true



showAA = false

----------------------------------------
EnkoNyito

Posted by enkonyito at Jun 5, 2019, 12:01:32 AM
Re: Additional Sunflow options (tests)
* Options:
-quick_uvs : Renders the UVs of objects.
-quick_normals : Renders the normals of objects.
-quick_id : Renders using a unique color for each instance.
-quick_prims : Renders using a unique color for each primitive.
-quick_gray : Renders all the objects in the scene gray diffuse, overriding all shaders.
-quick_wire : Renders objects as wireframe.
-quick_ambocc X : Renders a scene in ambient occlusion mode with a certain distance (X).
Only one override shader at a time can be used.

SH3D implementation:
String shaderOverride = null; // "show_uvs","show_normals","show_instance_id","show_primitive_id","quick_gray","wireframe","ambient_occlusion"
if (shaderOverride.equals("ambient_occlusion")) {
float maxDist = 200f;
this.sunflow.parameter("maxdist", maxDist);
}
this.sunflow.shader("cmdline_override", shaderOverride);
this.sunflow.parameter("override.shader", "cmdline_override");
this.sunflow.options(SunflowAPI.DEFAULT_OPTIONS);


shaderOverride != null



----------------------------------------
EnkoNyito

Posted by VeroniQ at Jun 5, 2019, 12:38:18 PM
Re: Additional Sunflow options (tests)
Nice renderings!

Posted by enkonyito at Jun 5, 2019, 4:36:46 PM
Re: Additional Sunflow options (tests)
Nice renderings!

Thank you VeroniQ!
I take the opportunity to propose a small survey.


Among the new rendering options, which ones do you find most interesting?

A: show_uvs


B: show_normals


C: show_instance_id


D: show_primitive_id


E: quick_gray


F: wireframe


G: ambient_occlusion (X)

----------------------------------------
EnkoNyito

Posted by VeroniQ at Jun 5, 2019, 5:42:34 PM
Re: Additional Sunflow options (tests)
I like E: Quick Grey but the colored ones (especially C and D) are fun!

Posted by ndorigatti at Jun 5, 2019, 7:42:35 PM
Re: Additional Sunflow options (tests)
quick gray, wireframe and ambient occlusion (E F G)

Posted by enkonyito at Jul 1, 2019, 3:45:02 AM
Re: Additional Sunflow options (tests)
The additional Sunflow options plug-in will be available with the new version of the photo-video plug-in.




Enko
----------------------------------------
EnkoNyito

Posted by williamcm at Aug 5, 2019, 1:33:03 AM
Re: Additional Sunflow options (tests)
Hello hello community
how to install SunFlow
I would like to improve my rendering and how to use it? i have already downloaded but there is no executable file

Thank you william from Cameroon

---------------------------------------------------------------
Hello bonjour la communaute
comment installer SunFlow
je voudrais ameliore mes rendue et comment l utiliser? j ai telecharger deja mais il ya pas de fichier executable

Merci william depuis le cameroun

Posted by enkonyito at Aug 5, 2019, 5:20:22 PM
Re: Additional Sunflow options (tests)
Hello hello community
how to install SunFlow
I would like to improve my rendering and how to use it? i have already downloaded but there is no executable file

Thank you william from Cameroon

Hi William!

You can download the precompiled version Sunflow-v0.07.2 and run the sunflow.jar file directly or sunflow.bat after editing.

You can also download the latest version Sunflow-v0.07.3 and follow the build instructions of the README file.

Enko Nyito
----------------------------------------
EnkoNyito

Posted by Ceciliabr at Aug 8, 2019, 12:02:10 AM
Re: Additional Sunflow options (tests)
@ enkonyito

Maybe this is not the right thread to discuss this, but I'm somewhat puzzled by the way Sunflow handles shininess.
It's like shininess is either on or off, with nothing in between.
I have done several tests on this, and I'm really wondering if the shininess slider has any function at all.
Is this just a result of the limitations imposed by SH3D, or is this a real Sunflow limitation?


Cec

Posted by enkonyito at Aug 9, 2019, 2:08:54 AM
Re: Additional Sunflow options (tests)
@Ceciliabr

It's like shininess is either on or off, with nothing in between.
In the Modify furniture panel, Matt=0 and Shiny=0.5.
In the Furniture materials panel, Matt=0 and Shiny=1. The Java 3D preview lets you see the difference in shininess.

When rendering, Sunflow applies a shader to the material that "changes" the shininess. (see pages 14 to 23 of Sunflow Wiki PDF)


Is this just a result of the limitations imposed by SH3D, or is this a real Sunflow limitation?
As Puybaret had told me : "There's no limitation".
Sunflow's standard configuration in Sweet Home 3D is based on several tests performed in 2010 (Test 1, Test 2).

Enko
----------------------------------------
EnkoNyito

Posted by enkonyito at Aug 23, 2019, 2:07:57 AM
Re: Additional Sunflow options (tests)
* Option:
-bucket X Y

Changes the default bucket size to n pixels and the default order (BucketRenderer, MultipassRenderer).
Sunflow default value: bucketSize = 32, bucketOrder = hilbert.
SH3D default value: bucketSize = 64, bucketOrder = spiral.

SH3D implementation:
int bucketSize = 16; // min = 16, max = 512
this.sunflow.parameter("bucket.size", bucketSize);
String bucketOrder = "spiral"; // hilbert, spiral, column, row, diagonal or random can be reversed
this.sunflow.parameter("bucket.order", bucketOrder);
this.sunflow.options(SunflowAPI.DEFAULT_OPTIONS);




----------------------------------------
EnkoNyito

Posted by enkonyito at May 27, 2021, 3:34:43 AM
Re: Additional Sunflow options (tests)
These options will no longer be managed in the next version of the photo-video rendering plug-in.
----------------------------------------
EnkoNyito