openworm / skeletonExtraction

Transforms Sibernetic output into a COLLADA animation
7 stars 2 forks source link

Making skeleton extraction very fast - maybe almost in real-time #91

Open martinmadaras opened 9 years ago

martinmadaras commented 9 years ago

Today, I had this idea...so I am putting the idea here...

Currently, during the skeleton extraction, the Shape Diameter Function is calculated on mesh from every timestep of the simulation. Then, the skeleton is extracted.

However, the SDF does not change a lot during the simulation. Therefore, it might be possible to use the values calculated from preprocessing step during whole animation loop.

The second step - vertex shifting, agglomerative clustering and skeleton creation might be implemented in shaders (vertex, geometry and compute) and all the steps could be performed in two-phase rendering pipeline.

Using this enhancements, the skeleton could be extracted almost in realtime ... online during the simulation ... using this, it might be possible to visualize the simulation online in the future...

gidili commented 9 years ago

@gitmado that's a great idea! Would be extremely useful because it would make it possible for the user to interact with the SPH simulation in pseudo real-time.