Print at Dec 17, 2025, 12:40:22 AM

Posted by enkonyito at Sep 4, 2022, 6:33:55 PM
Re: Photo-video rendering plug-in
In version 2.4.1, the com.eteks.sweethome3d.plugin.yafarayrendering package containing the YafarayRenderer.java file is used to load the necessary DLLs.

In Sweet Home 3D 7.0, the YafarayRenderer.java file (subclass of AbstractPhotoRenderer) is contained in the com.eteks.sweethome3d.j3d package.

By not including the com.eteks.sweethome3d.plugin.yafarayrendering package in the plug-in and by using the new loading of the DLLs of the file YafarayRenderer.java of SH3D-7.0, we have the error above.

By opening the default photo panel first, the error returned is:
java.lang.UnsatisfiedLinkError: Native Library C:\Users\user\AppData\Local\Temp\com.eteks.sweethome3d.SweetHome3D-cache-yafaray-64-43014161-1659389236\libwinpthread-1.dll already loaded in another classloader
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at com.eteks.sweethome3d.j3d.AdvancedYafarayRenderer.<clinit>(AdvancedYafarayRenderer.java:248)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.eteks.sweethome3d.j3d.AdvancedAbstractPhotoRenderer.createInstance(AdvancedAbstractPhotoRenderer
.java:95)


Is it better to use the DLLs present in lib/yafaray of SweetHome3D-7.0 or in com/eteks/swethome3d/plugin/yafarayrendering/lib of the YafarayRendering-1.4.5 plugin?
----------------------------------------
EnkoNyito