menpo / landmarker.io

Image and mesh annotation web application
https://www.landmarker.io
BSD 3-Clause "New" or "Revised" License
114 stars 21 forks source link

Add sense of 'direction' to meshes - metadata concept? #13

Open jabooth opened 10 years ago

jabooth commented 10 years ago

At the moment, there is nothing in landmarker.io that implies a sense of direction to the mesh being annotated.

While this is good for keeping things simple, it does mean we can't orient meshes automatically to the front. This could have useful implications for aiding the user.

This does raise four questions:

  1. How should landmarker.io allow for the selection of the front and up vector?
  2. How should landmarker.io be able to serialise out this mesh metadata?
  3. How should landmarker.io's interface show this information?
  4. How should this concept of front and up be implemented in menpo?

Perhaps we should consider this to be a new class of metadata on assets. Unlike landmarks which are specific in purpose, metadata could encode factual information about assets (e.g. up, down).

jabooth commented 10 years ago

Update: as necessitated by images, all assets now have an up vector, and upon loading into the viewport the up is made to point towards [0, 1, 0] (the canonical up in the viewports coordinate system). All meshes default to [0, 1, 0] for up so this is a noop. This adds the technical support for straightening meshes, although where this information should be stored and how it can be edited in the landmarker are still open issues.

jabooth commented 9 years ago

@lirsacc free floating camera does totally negate the need for this, which would be a big win.

Maybe I'm coming around to the idea... ;)