Hello,
I’m trying to update an existing line system with new data. If the underlying GPU buffer sizes are kept the same, everything works perfectly; but that is not the case when the size is different.
Please refer to the following PG: Babylon.js Playground
I draw a square shape composed of 4 segments, then I try to update it to a 6 segment shape with modified corners.
I have absolutely no clue on how to achieve this without disposing the old line system and replacing it with a newly created instance. I’d highly like to avoid this because in my application a lot of observers/observables are already watching the current instance, such that I’d rather not link everything again on each geometry update.
Thanks a lot for helping me
PS: I’ve tried this Updating Vertices | Babylon.js Documentation
and the “instance” option in the CreateLineSystem method already, without success.