-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cars - on parking lots / Instancing #21
Comments
We could load the raw osm files for this information. Though I don't know yet how to map the osm2world tile coordinates to lat/lon in order to know which osm file to load |
What? Sure, we always can get and render extras directly from OSM. |
The issue with putting this information into the glb files is that we then have to "reverse engineer" the information to be able to figure out road lane directions and intersections. If we load the data directly from osm in its raw form, we can make cars drive on the roads much more precisely (and we can iterate faster, because we are not reliant on someone else developing code for us and then generating the glb files for us) |
Tobias is already doing all this in his old tiles. And if he does it into the GLB, |
The gltf format does NOT have references to other Gltf-Files Another idea is instancing. Not only cars, even trees and street lamps |
OSM data includes parking areas. We would like to have some random cars on some lots.
Can a glb file have references/links to other glb files / GPU-instances?
In the BabylonJS frontend, the tiles contain center positions of all lots.
The frontend loads a GLB file, makes some copies to change the colors.
It and randomly places instances on some of slots.
The position size and the angle is lightly variated by random to make an irregular view.
We could also have different car glb/shapes if it is a good user device.
As I assume, the glb standard can't do all this, it may be done by the tile generation already:
translation, orientation, size. color? A GPU may be able to use the same geometry with different materials.
( Later we may have cars, driving around autonomous, showing actual town-traffic jams
and a control, to drive a car, in a multiuser race :-)
The text was updated successfully, but these errors were encountered: