Print at Dec 25, 2025, 12:22:54 PM

Posted by enkonyito at Mar 31, 2018, 10:37:35 PM
Re: Is Sunflow limited in Sweet Home 3D?
When the other types of lights or global illumination offered by Sunlow are properly implemented in Sweet Home 3D, they do not necessarily improve the current configuration.


With these parameters,
this.sunflow.parameter("gi.engine", "igi");
this.sunflow.parameter("gi.igi.samples", 0);
this.sunflow.parameter("gi.igi.sets", 1);
this.sunflow.parameter("gi.igi.c", 0.0000001f);
int bias_samplesMax = 512;
int bias_samples = (int) (bias_samplesMax / (Math.pow(4, antiAliasingMax)));
if (bias_samples < 1) {
bias_samples = 1;
}
this.sunflow.parameter("gi.igi.bias_samples", bias_samples);
this.sunflow.options(SunflowAPI.DEFAULT_OPTIONS);
the "igi" global illumination is similar to "path" with an equivalent rendering time.




The PointLight type
power = 100 * power;
this.sunflow.parameter("center", new Point3(lightSourceLocation.getX(),
lightSourceLocation.getY(),
lightSourceLocation.getZ()));
this.sunflow.parameter("power", null,
power * (lightColor >> 16) * (this.homeLightColor >> 16),
power * ((lightColor >> 8) & 0xFF) * ((this.homeLightColor >> 8) & 0xFF),
power * (lightColor & 0xFF) * (this.homeLightColor & 0xFF));
this.sunflow.light(UUID.randomUUID().toString(), "point");
does not allow to have soft shadows and differs from the SphereLight type.





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