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
animation
component 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
light
component. (Live Example) - Mesh Example: Shows how to load and display a
.glb
mesh model using thegeometry
component. (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
material
component. (Live Example) - PhotoDome Example: Demonstrates displaying a 360 photo using the
geometry
component'sphotodome
type. (Live Example) - Sound Scene: Demonstrates using the
sound
component 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
geometry
component'svideodome
type. (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.