Glavin001 / open-world

Multiplayer world generated from Open data. GTA Clone using open data, such as OpenStreetMaps.
http://society.cs.smu.ca:8081/game.html
30 stars 8 forks source link

Web Worker for Rendering Objects to Three.Js Scene #2

Open Glavin001 opened 11 years ago

Glavin001 commented 11 years ago

Line 50 of canvasGl.js I processes the OSM ( XML from OpenStreetMaps ) into GeoJSON, and store in a geo variable.

Take a look at lines 61-602 and rework that function into a web worker that uses the geo object data instead of the archaic hardcoded highway, building, otherWay variables.

It's a pretty big task, so take your time, and let me know if you need anything :+1:

ScottWe commented 11 years ago

image This is what I am seeing. I'm not sure why.