BabylonML Examples
This section provides various examples demonstrating the features and usage of BabylonML. Each example includes the source code and a link to a live version.
Available Examples
- Animation Scene: Demonstrates using the
animationcomponent to animate entity properties. (Live Example) - AR Scene: Shows basic Augmented Reality setup using the
xr="ar"attribute. (Live Example) - Assets Scene: (Live Example)
- Basic Scene: A fundamental example showing a simple scene with basic entities and components. (Live Example)
- Lights Scene: Demonstrates different types of lights using the
lightcomponent. (Live Example) - Mesh Example: Shows how to load and display a
.glbmesh model using thegeometrycomponent. (Live Example) - Multi-Camera Scene: Demonstrates defining multiple cameras and switching between them. (Live Example)
- PBR Material Scene: Shows the use of Physically Based Rendering materials via the
materialcomponent. (Live Example) - PhotoDome Example: Demonstrates displaying a 360 photo using the
geometrycomponent'sphotodometype. (Live Example) - Sound Scene: Demonstrates using the
soundcomponent for positional and non-positional audio. (Live Example) - Text Scene: (Placeholder - Demonstrates text rendering - To be implemented) (Live Example)
- VideoDome Example: Demonstrates displaying a 360 video using the
geometrycomponent'svideodometype. (Live Example) - VR Scene: Shows basic Virtual Reality setup using the
xr="vr"attribute. (Live Example)
Click on the links above to view the details and source code for each example.