Open bmcbarron opened 2 years ago
Hi @bmcbarron ! Thanks for creating this issue!
I suggested RaphaelJS but if you find a supported library which fits better, don't hesitate to use the best! :) I approve undo/redo support and I can help for that if needed!
Here are my answers:
Sorry for the delay. The Babylon.js vscode extension I've been working on took a week longer than I expected. Starting tomorrow, the curve editor will have my full attention.
Hi @julien-moreau ! Some questions for you:
Update: I figured out my debugger issues with (2). It was two things:
2a. Need to prefix outFiles
with ${workspaceRoot}
, or the files weren't being found. Maybe this is OS sensitive. I'm on Windows 10, what are you using?
2b. Need to run the Attach Electron Renderer
(or Editor
compound) launch config to get the renderer breakpoints.
I made a few tweaks to the launch.json
. I'll send a PR, but feel free to reject if you're not interested in the changes!
(Note: I see now that you're Babylon 5 chore includes updating electron... let me know if there's anything I can do to help with anything on that chore)
Hi @bmcbarron !
Your extension is awesome !!
You are right, animations should be serialized by Babylon.JS so stored in the .babylon files. In the editor, each node (mesh, light, transform node, camera) is saved in distinct JSON files (to help when having git conflicts) using the serialization helpers of Babylon.JS. The idea is the animation editor tool (or whatever) will populate the .animations
array property of nodes in the scene running in the editor. Once saving the project or generating the scene, animations will be serialized automatically by the helpers of Babylon.JS (see BABYLON.SceneSerializer etc.). In that way I think you don't need any .babylon file as example but I'll try to create one for you
For the debugger, unfortunately I quickly switched to the integrated debugger of electron because the remote debug often creates desynchronization between the TS code and the real source maps being loaded. Simply run the launch task "Electron With DevTools". Then, go to "Edit -> Preferences..." in the maintoolbar and enable the electron devtools in it.
I recently pushed on the next release branch feature/workspace-assets
with the support of Electron 11.5 and I hightly recommand that you can use it :)
Let's use the Babylon.JS forum for next messages don't related to this issue :)
Incorporate functionality like the Animation Curve Editor.
Implementation notes
Questions
Regarding (2): IMO, I found the separate window of ACE more hassle than helpful, even as a multi-monitor user. Ideally, it'd be great to have each of these tools dockable and/or floating, but obviously that's a whole different issue.
Regarding (3+4): I found the real-time updating of the scene in ACE to be helpful, and appreciated being able to manipulate objects in the scene and pull values from there. In which case, it seems like having the curve editor make changes directly to the scene animation data might make the most sense.