|
Sweet Home 3D Forum » List all forums » » Forum: New versions » » » Thread: YafaRay rendering plug-in |
||
| Print at Dec 16, 2025, 2:27:08 PM |
|
|
| Posted by MichaelN at Nov 24, 2019, 9:43:26 AM |
|
Re: YafaRay rendering plug-in I just tried these plugin but it generates only complete grey pictures. Have I to do more than copying the file in the plugin folder? |
| Posted by Puybaret at Nov 25, 2019, 11:30:44 AM |
|
Re: YafaRay rendering plug-in enkonyito, did you export and load all the YafaRay DLLs required for the plug-in, like in the loadDLLs method I programmed in YafarayRenderer class? jjocsak, the current version of the plug-in can work only in 64 bit. Maybe you installed Sweet Home 3D in 32 bit? If it's the case, just relaunch the installer and select the 64 bit architecture in the screen that allows to choose the installation folder. Of course, this will be possible only if your system is 64 bit. MichaelN, did you try with some other files, or maybe the demos? ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by MichaelN at Nov 25, 2019, 4:45:07 PM |
|
Re: YafaRay rendering plug-in I tried it with my own file, not with the demo file. I now tried an aother position, which works fine. Than I go again back to my kitchen - other view than before - and SH3D crashes without any message. It just disappears from the desktop. |
| Posted by jjocsak at Nov 25, 2019, 5:29:49 PM |
|
Re: YafaRay rendering plug-in 64 bit install solved the problem, thanks. |
| Posted by enkonyito at Nov 26, 2019, 11:20:08 PM |
|
Re: YafaRay rendering plug-in enkonyito, did you export and load all the YafaRay DLLs required for the plug-in, like in the loadDLLs method I programmed in YafarayRenderer class? Yes, otherwise it causes the error java.lang.ExceptionInInitializerError . What would prevent access to native methods in this case (java.lang.UnsatisfiedLinkError ) ? ---------------------------------------- EnkoNyito |
| Posted by Puybaret at Dec 16, 2019, 3:25:17 PM |
|
Re: YafaRay rendering plug-in Enkonyito, if you moved native methods to another class or package, you'll have to generate new .h and .cpp files and compile source code to update libyafarayjni.dll. Did you succeed to generate such a DLL? ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by enkonyito at Dec 16, 2019, 11:14:46 PM |
|
Re: YafaRay rendering plug-in Enkonyito, if you moved native methods to another class or package, you'll have to generate new .h and .cpp files and compile source code to update libyafarayjni.dll. Did you succeed to generate such a DLL? As this solution (#2) works, I have not retested since.I had failed to generate the DLLs in a custom package (betaTestPlugin) when trying to follow this method: // To generate JNI DLL for Windows, read "YafaRay Windows 10 MinGW 64bit building - Standalone.txt" in Core-3.3.0\building (no need to install Python and stop after installing LIBRARY DEPENDENCIES)---------------------------------------- EnkoNyito |
| Posted by enkonyito at Jan 1, 2020, 8:51:21 PM |
|
Re: YafaRay rendering plug-in Some suggestions for the next version (1.0 Beta 4): - use a YafarayRenderer.properties file to modify rendering parameters such as for SunflowRender.properties - include an example xml scene using arealights or visible spherelights because their implementation is problematic - make tile borders visible to see the number of rendering threads Enko Feedback on the light panels. * When I choose, params.put("type", "arealight");* When I choose, params.put("type", "meshlight");---------------------------------------- EnkoNyito |
| Posted by Puybaret at Jan 12, 2020, 1:56:47 PM |
|
Re: YafaRay rendering plug-in Hi, For various reasons, I wanted to be able to recompile YafaRay DLLs. I succeeded to achieve this task without big problems under Windows and Linux thanks to the instructions given in YafaRay source code, but I had much more difficulties to make it work under macOS! Finally, I was able to generate new DLLs based on a slightly modified version of the current source code (to fix an issue on normals management) and I'm happy to propose a version 1.0 Beta 4. This new version is much smaller (13 MB instead of 46 MB) and should work under more systems. enkonyito, before I investigate your problem, could you try again with this new version fist? Happy New Year 2020 to everyone ![]() ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by enkonyito at Jan 13, 2020, 3:46:08 PM |
|
Re: YafaRay rendering plug-in With the YafaRay Blender-Exporter, I was able to find examples of XML scenes using different types of light. enkonyito, before I investigate your problem, could you try again with this new version fist? With this version 1.0 Beta 4, the following three problems occur again.1. No light emitted for arealight. Example of implementation. params.put("type", "arealight");2. Identifier not taken into account for spherelight and arealight. To make the sphere or area lights visible, add params.put("object", id);How to find this identifier after the creation of the object (mesh)? 3. SH3D crash for meshlight. Example of implementation. params.put("type", "meshlight");These portions of code are implemented in the exportLightSource method of the YafarayRenderer class. ---------------------------------------- EnkoNyito |
|
|
|
Current timezone is GMT Dec 16, 2025, 2:27:08 PM |