makesites / construct

Construct.js is a lightweight, non-intrusive framework for WebGL using popular open source libs as dependencies
http://construct.tech
Other
7 stars 2 forks source link

Groups of objects #8

Open tracend opened 11 years ago

tracend commented 11 years ago

It is very common to have classes of objects sparse on the 3D environment. These objects don't belong strictly speaking to the same View but may be guided by an overarching logic.

Grouping these objects under one instance may have (among others) the benefit of controlling only separate groups at any given time (instead of parsing through the whole list of objects).

tracend commented 11 years ago

As this is grouping diverts too much from how a View and a Layout is defined a new entity may be necessary.

Extending the Collection may also be avoided as a collection is supposed to handle data, not visual objects.

As a common convention in the graphic world, rendering is done in layers, so creating a new category named Layer may be the most obvious choice.