Re: Photo-video rendering plug-in

by enkonyito » Sun Sep 04, 2022 5:14 am

PhotoVideoRendering-2.4 plug-in

As EnkoNyito is not available at the moment to update his Photo-video rendering plug-in, I made the necessary changes to this plug-in to ensure its compatibility with Sweet Home 3D 7.0 lights defined from a shape with [font=courier new]lightSourceMaterialName#[/font] property.
Note that the YafaRay rendering engine included in this plug-in doesn't work with the Mac App Store version 7.0.1 and above for security reasons, but works with the free version.
With the old YafaRay Rendering plug-in, you had to use the lib folder of the [font=courier new]com.eteks.sweethome3d.plugin.yafarayrendering[/font] package to load the necessary DLLs.
Sweet Home 3D 7.0, uses the "com.eteks.sweethome3d.j3d.YafarayPluginsFolder" system property which causes the error:

Code: Select all

Exception in thread "pool-9-thread-1" java.lang.UnsatisfiedLinkError: com.eteks.sweethome3d.j3d.AdvancedYafarayRenderer.createEnvironment(Ljava/lang/String;Ljava/lang/String;)J
	at com.eteks.sweethome3d.j3d.AdvancedYafarayRenderer.createEnvironment(Native Method)
	at com.eteks.sweethome3d.j3d.AdvancedYafarayRenderer.init(AdvancedYafarayRenderer.java:357)
	at com.eteks.sweethome3d.j3d.AdvancedYafarayRenderer.render(AdvancedYafarayRenderer.java:849)
	at com.eteks.sweethome3d.j3d.AdvancedAbstractPhotoRenderer.render(AdvancedAbstractPhotoRenderer.java:157)