worldmaking / mischmasch

https://www.alicelab.world/msvr
MIT License
9 stars 1 forks source link

Smarter module layouts #32

Open grrrwaaa opened 4 years ago

grrrwaaa commented 4 years ago

Currently module layout is automatic, and uses a very simple heuristic; no doubt this could be better.

Collecting ideas here for future heuristic enhancements in module layout:

michaelpalumbo commented 4 years ago

added a bullet point

Zodsmar commented 4 years ago

this would clean a lot up on the module side of things. Also having everything a factor of 2 for expansion makes the most sense anyway.

grrrwaaa commented 4 years ago

The comments in the OP are now slightly out of date as the layout algorithm was rewritten in the Node port, but I agree many are still valid. At the moment there's a slight preference toward aspect ratio tending toward 1.618 (golden ratio) which is a neat idea but that doesn't really make sense for modules that are mostly 2-4 units wide and 2-5 high. In the node port I added a very basic algorithm to group inlets together, knobs etc. together, and outlets together, and to insert 'newlines' between rows at the boundaries of these if it makes sense to; but this could and probably should be revisited much further.

Missing from the list above is the fact that we'll no doubt want some widgets that are not 1x1 size.

Also missing is the idea of non-panel based modules, which I would really like to get to as part of what MS in VR could be...

michaelpalumbo commented 4 years ago

As an early pass the module layouts are helpful for legibility. Adding the outlet visualization will help distinguish in/outs perhaps to the point where their spatial positioning could be more deliberately arranged (rather than only knobs>inlets>outlets)

Also missing is the idea of non-panel based modules, which I would really like to get to as part of what MS in VR could be...

Absolutely -- we've talked about grain clouds, in manifolds, for instance, or the painting and sequencing.