agentscript0 icon indicating copy to clipboard operation
agentscript0 copied to clipboard

Support for layers

Open bennlich opened this issue 11 years ago • 2 comments

We've been talking loosely about supporting layers, or about making AS2.0 layer-oriented, but I don't really know what this means.

bennlich avatar Jun 19 '14 23:06 bennlich

I think we use the term "layers" in three ways: (1) As Dataset for data layers in a model. Dataset in Agentscript is related to Dataset in the Netlogo GIS extension. (2) as view renderings (patches, turtles, links, labels, drawing layers) (3) In the Leaflet/OpenLayers sense where views from multiple models are the layers.

#1 and #2 are implemented. And the TileDataset addition to #1 is pretty exciting - especially with distributed pub/sub capability.

#3 is related to the current thread on Multiple Models in a Browser. This is what I would mean by more "support for layers".

--- -. . ..-. .. ... .... - .-- --- ..-. .. ... .... [email protected] 1600 Lena St #D1, Santa Fe, NM 87505 office: (505) 995-0206 mobile: (505) 577-5828 tw: @redfishgroup skype: redfishgroup redfish.com | simtable.com

On Thu, Jun 19, 2014 at 5:20 PM, Benny Lichtner [email protected] wrote:

We've been talking loosely about supporting layers, or about making AS2.0 layer-oriented, but I don't really know what this means.

Reply to this email directly or view it on GitHub https://github.com/backspaces/agentscript/issues/49.

stephenguerin avatar Jun 20 '14 02:06 stephenguerin

Stephen: agreed .. but we also want to include other forms such as WebGL layers, DOM layers (a layer with a set of any HTML5 DOM elements like

,

,, ... and so on. PencilCode does this for example.

One example that interests me a lot is a new kind of Patches based on an image. Not the stunt of reading in an image to color the patches, but literally an image that performs like a patch currently does. It is an interesting challenge, really needing something like ES6 Proxies, but it would be interesting.

WebGL could be tested fairly quickly, maybe Cody's plume code. And indeed we might like to have a stunt that pops all the layers out of their 2D world into a 3D (well, 2 1/2 D) world like NetLogo does so nicely.

The key is that the layers are stacked in z order and sized to be the world size. We need, but lack a unified way to communicate between the layers with a coord system matrix of some sort.

-- Owen

On Thu, Jun 19, 2014 at 8:57 PM, Stephen Guerin [email protected] wrote:

I think we use the term "layers" in three ways: (1) As Dataset for data layers in a model. Dataset in Agentscript is related to Dataset in the Netlogo GIS extension. (2) as view renderings (patches, turtles, links, labels, drawing layers) (3) In the Leaflet/OpenLayers sense where views from multiple models are the layers.

#1 and #2 are implemented. And the TileDataset addition to #1 is pretty exciting - especially with distributed pub/sub capability.

#3 is related to the current thread on Multiple Models in a Browser. This is what I would mean by more "support for layers".

--- -. . ..-. .. ... .... - .-- --- ..-. .. ... .... [email protected] 1600 Lena St #D1, Santa Fe, NM 87505 office: (505) 995-0206 mobile: (505) 577-5828 tw: @redfishgroup skype: redfishgroup redfish.com | simtable.com

On Thu, Jun 19, 2014 at 5:20 PM, Benny Lichtner [email protected] wrote:

We've been talking loosely about supporting layers, or about making AS2.0 layer-oriented, but I don't really know what this means.

Reply to this email directly or view it on GitHub https://github.com/backspaces/agentscript/issues/49.

— Reply to this email directly or view it on GitHub https://github.com/backspaces/agentscript/issues/49#issuecomment-46640475 .

backspaces avatar Jun 20 '14 16:06 backspaces