Print at Mar 29, 2020, 6:45:09 AM

Posted by enkonyito at Nov 22, 2019, 1:14:35 AM
Re: YafaRay rendering plug-in
@Puybaret
Avoid to touch the native YafarayRenderer.cpp file used as a bridge to YafaRay if you don't know JNI (Java Native Interface), but it shouldn't be necessary.


After generating the YafarayRenderer.h file, modifying the YafarayRenderer.cpp file, adding the include and lib folders, rendering returns the error
Exception in thread "pool-7-thread-1" java.lang.UnsatisfiedLinkError: betaTestPlugin.YafarayRenderer.createEnvironment(Ljava/lang/String;Ljava/lang/String;)J
at betaTestPlugin.YafarayRenderer.createEnvironment(Native Method)

The YafarayRenderer.class file is located in the bin/betaTestPlugin project folder.

What is the best way to use the YafaRay rendering engine in another plugin (derived version)?