freeciv/freeciv-web

Update Freeciv-web 3D to latest Three.js

andreasrosdal opened this issue · 4 comments

Currently at Three.js version r118. Latest is r126.
Need to update to Three.js WebGL 2 renderer.

Currently at Three.js version r124. Latest is r127.

TODO:
THREE.PlaneGeometry is now based on BufferGeometry, instead of Geometry. So code needs to use BufferGeometry instead of Geometry.

The FCW code needs to use BufferGeometry instead of Geometry.

PlaneGeometry shoud be migrated to BufferGeometry here:
https://github.com/freeciv/freeciv-web/blob/develop/freeciv-web/src/main/webapp/javascript/webgl/mapview.js#L179

A description about how to do this is documented here:
https://sbcode.net/threejs/geometry-to-buffergeometry/