Additional Sunflow options (tests)

This topic has been viewed 18665 times and has 13 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
enkonyito
Posts: 607
Joined: Thu May 28, 2015 4:52 pm

Additional Sunflow options (tests)

Post by enkonyito »

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:
[font=courier new]int threads = X;
this.sunflow.parameter("threads", threads);
this.sunflow.options(SunflowAPI.DEFAULT_OPTIONS);[/font]

Image Image Image

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


* Options:
-lopri
-hipri

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

SH3D implementation:
[font=courier new]boolean lowPriority = true;
this.sunflow.parameter("threads.lowPriority", !lowPriority);
this.sunflow.options(SunflowAPI.DEFAULT_OPTIONS);[/font]

No major differences in rendering time.
EnkoNyito
enkonyito
Posts: 607
Joined: Thu May 28, 2015 4:52 pm

Re: Additional Sunflow options (tests)

Post by enkonyito »

* Option:
-showaa
Display sampling levels per pixel for bucket renderer.
Default value: showAA = false.

SH3D implementation:
[font=courier new]boolean showAA = false;
this.sunflow.parameter("aa.display", !showAA);
this.sunflow.options(SunflowAPI.DEFAULT_OPTIONS);[/font]

showAA = true
Image Image
Image Image Image

showAA = false
Image
EnkoNyito
enkonyito
Posts: 607
Joined: Thu May 28, 2015 4:52 pm

Re: Additional Sunflow options (tests)

Post by enkonyito »

* 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:
[font=courier new]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);[/font]

shaderOverride != null
Image Image Image
Image Image Image
Image
EnkoNyito
VeroniQ
Posts: 886
Joined: Tue Mar 03, 2015 9:01 am
Country: France

Re: Additional Sunflow options (tests)

Post by VeroniQ »

Nice renderings!
enkonyito
Posts: 607
Joined: Thu May 28, 2015 4:52 pm

Re: Additional Sunflow options (tests)

Post by enkonyito »

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
Image

B: show_normals
Image

C: show_instance_id
Image

D: show_primitive_id
Image

E: quick_gray
Image

F: wireframe
Image

G: ambient_occlusion (X)
Image
EnkoNyito
VeroniQ
Posts: 886
Joined: Tue Mar 03, 2015 9:01 am
Country: France

Re: Additional Sunflow options (tests)

Post by VeroniQ »

I like E: Quick Grey but the colored ones (especially C and D) are fun!
ndorigatti
Posts: 66
Joined: Fri May 12, 2017 9:54 am
Country: Italia

Re: Additional Sunflow options (tests)

Post by ndorigatti »

quick gray, wireframe and ambient occlusion (E F G)
enkonyito
Posts: 607
Joined: Thu May 28, 2015 4:52 pm

Re: Additional Sunflow options (tests)

Post by enkonyito »

The additional Sunflow options plug-in will be available with the new version of the photo-video plug-in.
Image

Image

Enko
EnkoNyito
User avatar
williamcm
Posts: 1
Joined: Thu Apr 19, 2018 4:22 pm
Country: Cameroun
Contact:

Re: Additional Sunflow options (tests)

Post by williamcm »

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
enkonyito
Posts: 607
Joined: Thu May 28, 2015 4:52 pm

Re: Additional Sunflow options (tests)

Post by enkonyito »

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
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 2 guests