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 [font=courier new]YafarayRenderer.h[/font] and [font=courier new]YafarayRenderer.cpp[/font] files do not appear to be necessary but use the [font=courier new]lib[/font] 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 [font=courier new]YafarayRenderer.java[/font] file by adding an
Code: Select all
import com.eteks.sweethome3d.plugin.yafarayrendering.YafarayRenderer
in the [font=courier new]PhotoPanel.java[/font] file.
In 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