3DStreet / 3dstreet

🚲🚢🚌 Web-based 3D visualization of streets using A-Frame
https://3dstreet.app
Other
266 stars 33 forks source link

mvp street segment #910

Open kfarr opened 2 weeks ago

kfarr commented 2 weeks ago
kfarr commented 1 week ago

Step 1 convert streetmix parser to use street-segment instead of ground mixins defined in asset.js

We want to turn this function into a component: https://github.com/3DStreet/3dstreet/blob/main/src/aframe-streetmix-parsers.js#L901

For example:

<a-entity street-way="source: [json]">
    <a-entity street-segment="preset: drive-lane; width: 3; length: 150"></a-entity>
    <a-entity street-segment="preset: bus-lane; width: 6; length: 150"></a-entity>
</a-entity>