chunky
chunky copied to clipboard
Option -scene-dir not working in headless render
When I try to render the scene "scene" in the "scenes" directory in my local folder, I get this error. I see that chunky is still trying to find the scene in my .chunky folder.
java -jar .\ChunkyLauncher.jar -scene-dir scenes -render "scene"
Loading scene took 0m 0s
Scene "scene" not found!
java.io.FileNotFoundException: C:\Users\RedBlaze\.chunky\scenes\scene\scene.json.backup (Le fichier spécifié est introuvable)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at se.llbit.chunky.renderer.RenderContext.getSceneFileInputStream(RenderContext.java:123)
at se.llbit.chunky.renderer.scene.Scene.loadScene(Scene.java:569)
at se.llbit.chunky.renderer.scene.SynchronousSceneManager.loadScene(SynchronousSceneManager.java:147)
at se.llbit.chunky.main.Chunky.doHeadlessRender(Chunky.java:161)
at se.llbit.chunky.main.Chunky.main(Chunky.java:218)
Failed to launch Chunky. Command used:
C:\Program Files\Java\jre1.8.0_301\bin\java.exe -Xmx5856m -Dchunky.home=C:\Users\RedBlaze\.chunky -Dprism.order=sw -classpath C:\Users\RedBlaze\.chunky\lib\chunky-core-2.4.0.jar;C:\Users\RedBlaze\.chunky\lib\commons-math3-3.2.jar;C:\Users\RedBlaze\.chunky\lib\fastutil-8.4.4.jar se.llbit.chunky.main.Chunky -scene-dir scenes -render scene```
And when I set chunky home to my current directory I have another error saying that java is trying to find chunky in my local directory
But when I replace the -render option by the -list-scenes option, chunky successfully find my local scene