|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Several rendering engines in the same plugin » » » » Post: Several rendering engines in the same plugin |
Print at Dec 16, 2025, 10:42:49 PM |
| Posted by enkonyito at Dec 3, 2019, 2:51:53 AM |
|
Several rendering engines in the same plugin To date, Sweet Home 3D default rendering engine is SunFlow (written in Java). The YafaRay rendering plugin offers another rendering engine (written in C++ and accessible in Java Native Interface). Grouping these 2 rendering engines in one plugin with a selector seems like a good idea. 1st problem For YafaRay rendering to work when selected, you must apparently respect the order and name of the initial com/eteks/sweethome3d/plugin/yafarayrendering packages. In this case, the YafarayRenderer.h and YafarayRenderer.cpp files do not appear to be necessary but use the lib folder containing the DLLs (Windows, Mac OS X and Linux). - Solution #1: In the plugin project folder, use the com/eteks/sweethome3d/plugin/yafarayrendering packages for all files (photo panel, SunFlow and YafaRay rendering engines). This is a problem when adding another rendering engine where you will also have to respect the order and the name of the initial packages. - Solution #2: In the plugin project folder, keep the package created for the SunFlow rendering engine and the photo panel. Use com/eteks/sweethome3d/plugin/yafarayrendering packages for the YafarayRenderer.java file by adding an import com.eteks.sweethome3d.plugin.yafarayrendering.YafarayRendererIn this case, each rendering engine has its own packages and this would facilitate future additions. 2nd problem When you press the Stop button, the YafaRay rendering is not interrupted when it is selected. Enko Nyito ---------------------------------------- EnkoNyito |
|
|
Current timezone is GMT Dec 16, 2025, 10:42:49 PM |