Re: Photo-video rendering plug-in
This is especially true for light panels (TriangleMeshLight type) as shown in the Sunflow doc (page 54).it seems to me that the new light types can give softer illumination with fewer light sources
Yes, the PhotoRenderer class uses the description of the light object to differentiate types.does the renderer rely on the description field to determine the type?
Code: Select all
String lightDescription = light.getDescription();
// SphereLight type
if (lightDescription == null
|| lightDescription.contains("SphereLight")) {
...
}
// PointLight type
else if (lightDescription.contains("PointLight")) {
...
}
// TriangleMeshLight type
else if (lightDescription.contains("TriangleMeshLight")) {
...
}For those I created, given their depths, it was not really necessary but if you want to add a type to the description of your lights it could be useful.Would adding a planIcon# simplify placement of the different lights in the 2D view?
The default color is daylight ([font=courier new]lightSourceColor#2=#6D7991[/font]) but since the PhotoRenderer class retrieves the color of the object to use as a light source color, you can change it.Could also having a TriangleMeshLight with other colours be useful?
Something closer to incandecent ([font=courier new]lightSourceColor#2=#BB9854[/font]) maybe?
Code: Select all
int lightColor = lightSource.getColor();
HomeMaterial[] lightMaterial = light.getModelMaterials();
if (light.getColor() != null) {
lightColor = light.getColor();
} else if (lightMaterial != null && lightMaterial.length == 1
&& lightMaterial[0].getColor() != null) {
lightColor = lightMaterial[0].getColor();
}