Menu

#3 Automatic reloading of shaders after safe

1.0
closed
nobody
2015-03-23
2015-01-28
No

I don't know, if you have it already, but it would be great to have an option on GLSLProgramFactory to create a autoreloading GLProgram, that watches for file changes either using some eclipse mechanism or the java7 filewatcher framework (http://docs.oracle.com/javase/tutorial/essential/io/notification.html). Once a shader file in the program changes, it should recreate/relink itself and refresh the UniformControls attached to it. This would enable smooth live-editing.

Discussion

  • Kamil Kolaczynski

    I think it is a good idea. When I find some more free time I will definitely implement it. (It could take a month or more since I have a lot of duties lately).

     
  • Mathias Henze

    Mathias Henze - 2015-01-29

    No problem, I have an ugly workaround involving loading a jar from the jsx using an URLClassloader and invoking a static methods that spawns a file-watcher thread, giving back an object that you can poll :)

     
  • Kamil Kolaczynski

    This feature is now implemented in Synthclipse 0.9.14. You might need to set:
    Synthclipse.debugMode = false;
    in JSX scripts because on a shader compilation error whole script might (or might not ;)) crash in Debug Mode due to some OpenGL invalid state.

     
  • Kamil Kolaczynski

    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB