Renanse / Ardor3D

Ardor3D is a free Java based, professionally oriented, open source 3D graphics engine.
Other
227 stars 77 forks source link

Question: Ardor3D using Javascript in the animation framework #107

Closed jfelrod1960 closed 1 year ago

jfelrod1960 commented 1 year ago

Since Javascript will be dropped from the Java ScriptEngine API in future Java versions, what language will replace it? Groovy? :)

lasselindqvist commented 1 year ago

It was already removed in Java 15, so with current versions it will already not work. https://github.com/oracle/graaljs is one option to use nowadays. It does require Java 11+, which I believe the newest Ardor3D versions require as well.

Renanse commented 1 year ago

Great question - we only use JavaScript in the animation system for describing animation layers and triggers and such... I think if I were to redo it, I would probably go with something like YAML instead of a scripting language. Thoughts?

jfelrod1960 commented 1 year ago

Josh you have Javascript code calling A3D classes and methods. Can Yaml do that?

@lasselindqvist Thanks for the reference.

Renanse commented 1 year ago

Yes, that's true, a conversion to a descriptive language would change the way the configuration is done (no function calls from the descriptor)

keray-eu commented 1 year ago

Nashorn JavaScript engine that was dropped from JDK still exists as an independent project and supports JDK 15+

https://github.com/openjdk/nashorn and maven

jfelrod1960 commented 1 year ago

Thanks @Renanse and @icedevjp! Closing the issue.