Re: Is Sunflow limited in Sweet Home 3D?
Code: Select all
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);Code: Select all
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");