Hi guys, what is the best way for using the Babylon.JS viewer in React?
I mean i have the following snippet in HTML:
<html> <head> <title>Babylon.js Viewer - Display a 3D model</title> <script src="https://preview.babylonjs.com/viewer/babylon.viewer.js"></script> </head> <body> <babylon model="https://raw.githubusercontent.com/ipr0310/testing-babylon/main/wheel.gltf" templates.main.params.fill-screen="true" ></babylon> </body> </html>
So what i would like to know is “How the Babylon viewer can be used in React”?
- This viewer is awesome because it already detects animations from imported 3d files
- The purpose is using the Babylon.js (Only the viewer) but in React
- I tried looking in the GitHub - brianzinn/react-babylonjs: React for Babylon 3D engine library but i could not find any module related to the viewer, (just importing 3d models or creating scene)
- This is the example in (PURE/ONLY HTML): Babylon.js Viewer - Display a 3D model
A bunch of thanks in advance!