Improve libf3d API in regards to time management
Describe the bug Improve libf3d API in regards to time management
There is currently no way in libf3d to:
- extract the timerange
- select a timestep and ONLY call LoadAtTime, not a complete loadScene
For Exhibit to be able to show animations I need to know the time range and if any animation is preset so #1628 would be needed. Then using scene.animation.time I can play animations controlling them from the app.
select a timestep and ONLY call LoadAtTime, not a complete loadScene
For this one, as discussed a while back on Discord, there are 2 ways to go about it:
- expose
LoadAtTime()in the API somehow - have
scene.animation.timenot be a "load time" option, and internally callLoadAtTime()if the value ofscene.animation.timehas changed between calls torender()
The second one would be more convenient for users and doesn't require expanding the API, but there's a concern about silently triggering IO as some readers may require reloading the whole file.