issues
search
Geodan
/
mapbox-3dtiles
3D Tiles implementation using Mapbox GL JS custom layers
BSD 3-Clause "New" or "Revised" License
297
stars
62
forks
source link
Rework to add raycaster support
#21
Closed
anneb
closed
4 years ago
anneb
commented
4 years ago
add raycaster support
change render setup, separate camera (view) and world (the map)
update javascript: use classes, async/await
update to (currently) newest versions of mapbox-gl and threejs
remove unused tiles from scene (instead of making invisible): todo: remove from memory
improve debugger view (show boxes only when visible, color of boxes same as content)
use mercator meters for 3d world: todo add meter/mercator-meter conversion
improve camera frustum check
improve camera distance check. Todo: take geometricError into account more precisely
get properties from 3d objects if available, otherwise get batchid if available otherwise get layer name
support _batchid for both indexed and un-indexed BufferedGeometry
integrate raycaster with mapbox-gl 'getRenderedFeatures' API
add gltf objects to demo how to position, rotate, color, texture, animate gltf
use dependencies from npm / node_modules, add 'npm start'
add UI for feature info and for switching to debug and light modes, velsen and rotterdam scenes
add (optional) outlines for currently raycasted 3D objects (faces wireframe)