
Screenshot of the 3D-view:




Emmanuel, you are a genius!... (UbuntuBirdy, I hope it will resolve your issue)...






Thank you Puybaret for the advice on area lights! This works for unviewable light panels.Enkonyito, I made some tests about area and mesh lights, and you can use some working code found in the comments of [font=courier new]YafarayRenderer[/font] constructor.
In the source code you posted, [font=courier new]corner[/font], [font=courier new]point1[/font] and [font=courier new]point2[/font] must be arrays of 3 floats not [font=courier new]Point3f[/font] instances (by the way, [font=courier new]from[/font] parameter isn't used).
You should also take care of the orientation of the triangle built from [font=courier new]corner[/font], [font=courier new]point1[/font] and [font=courier new]point2[/font] (if ever it's wrongly oriented, just swap [font=courier new]corner[/font] and [font=courier new]point1[/font]).
About mesh lights, you have to provide the integer id of the mesh used as a light in a parameter named [font=courier new]object[/font]. This id is returned by [font=courier new]startTriMesh[/font] method so you'll have to store the ids of the meshes used as lights somewhere.
Good luck! [:)]
Code: Select all
long meshLightId = startTriMesh(-1, vertices.length / 3, verticesIndices.length / 3, false, uvs != null, 0, 0);Code: Select all
params.put("object", Integer.parseInt(light.getProperty(this.INT_MESH_LIGHT_ID)));Could you try with some files of the gallery (like the Alps hotel that you seem to like, and report how rendering works with them?




You absolutely nailed it! It's nothing more but all about that point!Why is resizable so important?
As the YafaRay renderer is handling light sources somewhat different than the Sunflow renderer, it’s of no use to test my light-settings by using Enko’s resizable renderer.
So testing the YafaRay renderer becomes a somewhat time-consuming process:
First rendering the entire scene, then saving the test image. Then opening the test image in some graphics editor, and then trying to adjust the lights and do another test render… and then repeat the same process. I must admit that my motivation failed along the way, so my test renders are not what I would have liked them to be.
I know that YafaRay can produce better results – even great results, but I don’t think that will happen until we get more options – plus a resizable rendering window, so we can monitor the effect of our light-settings a lot faster than with the current version.
Cec
Users browsing this forum: No registered users and 2 guests