Re: Photo rendering test
Like the light panel - daylight? Yes, but the interest of ambient lighting is that it works day and night....could it be linked to the time of day...
In the part of the source code managing the ceiling light of the rooms, I replaced this treatment using a light sphere1 - The amount of light is quite low. Is there a way to increase it?
2 - Where is the light source placed? Where do the shadows originate?
3 - What is the difference with a (large) light source placed in the (middle of) the room?
Code: Select all
float power = (float)Math.sqrt(room.getArea()) / 3;
this.sunflow.parameter("radiance", null,
power * (ceillingLightColor >> 16) / 0xD0 * (this.homeLightColor >> 16) / 255,
power * ((ceillingLightColor >> 8) & 0xFF) / 0xD0 * ((this.homeLightColor >> 8) & 0xFF) / 255,
power * (ceillingLightColor & 0xFF) / 0xD0 * (this.homeLightColor & 0xFF) / 255);
this.sunflow.parameter("center", new Point3(xCenter, roomHeight - 25, yCenter));
this.sunflow.parameter("radius", 20f);
this.sunflow.parameter("samples", 4);
this.sunflow.light(UUID.randomUUID().toString(), "sphere");Code: Select all
float roomAreaInSquareMeter = room.getArea() / 10000;
float power = (float) Math.sqrt(roomAreaInSquareMeter) / 4; // TEST
float panelSize = (float) Math.sqrt(room.getArea()) / 4; // dimension in cm
// face-down panel
float illuminatingFaceElevation = roomHeight;
float[] verticesCoordinates1 = {xCenter - (panelSize / 2), illuminatingFaceElevation, yCenter - (panelSize / 2),
xCenter + (panelSize / 2), illuminatingFaceElevation, yCenter - (panelSize / 2),
xCenter + (panelSize / 2), illuminatingFaceElevation, yCenter + (panelSize / 2),
xCenter - (panelSize / 2), illuminatingFaceElevation, yCenter + (panelSize / 2)};
addLightPanelsToSunflow(power, ceillingLightColor, verticesCoordinates1);
// face-up panel
power = power / 4;
panelSize = (float) Math.sqrt(room.getArea()) / 2; // dimension in cm
illuminatingFaceElevation = roomElevation;
float[] verticesCoordinates2 = {xCenter - (panelSize / 2), illuminatingFaceElevation, yCenter + (panelSize / 2),
xCenter + (panelSize / 2), illuminatingFaceElevation, yCenter + (panelSize / 2),
xCenter + (panelSize / 2), illuminatingFaceElevation, yCenter - (panelSize / 2),
xCenter - (panelSize / 2), illuminatingFaceElevation, yCenter - (panelSize / 2)};
addLightPanelsToSunflow(power, ceillingLightColor, verticesCoordinates2);