agentsoz / ees-ui

Emeregency Evacuation Simulator (EES) - Web Client
3 stars 2 forks source link

Add 3d height and intensity colours to fire shape #4

Closed dhixsingh closed 5 years ago

dhixsingh commented 6 years ago

See https://www.mapbox.com/mapbox-gl-js/example/3d-buildings/.

dhixsingh commented 6 years ago

@ayoung012 I will let you know which attributes to use to calculate the height of the fire.

dhixsingh commented 6 years ago

flame_ht and e_intsty are the columns you will need to pull the data out of.

ayoung012 commented 6 years ago

@dhixsingh note black colour when intensity is null. Overall, a pretty neat effect... https://blog.mapbox.com/data-driven-styling-for-fill-layers-in-mapbox-gl-js-80bb5292af4e

dhixsingh commented 6 years ago

:+1: Could you make the colour scheme/shades for the fire configurable too, as I am sure we will want to fiddle with it later. Coming along very nicely!

dhixsingh commented 6 years ago

@ayoung012 note that I cannot change the map base layer anymore, it is stuck on Dark. Would be great if you could spend some time on setting up testing this week too.

dhixsingh commented 6 years ago

The 3d height works well, nice!

Though, I noticed some functionality gets messed up when I change the map base layer now from Dark to Satellite (probably others too). Mainly

ayoung012 commented 5 years ago

@dhixsingh The above is now fixed and somewhat accounted for in some unit tests. Selenium tests to come... 3D has some noticable performance degradation on slower devices, I propose having 3D off by default and a dedicated button for enabling it.

dhixsingh commented 5 years ago

Yes agree re making the 3d effect optional.

dhixsingh commented 5 years ago

Could you also

ayoung012 commented 5 years ago

@dhixsingh These have been done. Note that pitch is set upon selecting 3D mode in settings.