I’m trying to load .fbx file which on load uses default animation. I am able to achieve this with “react-three-fbx-viewer” but it has almost no documentation and want to use some alternatives.
import React from “react”;
import ReactThreeFbxViewer from “react-three-fbx-viewer”;
import Home from “../styles/Home.css”;
function LoadFBX() {
let cameraPosition = {
x: 100,
y: 300,
z: 600,
};
return (
<div>
<div className=”posi”>
<h3>Home</h3>
</div>
<div>
<ReactThreeFbxViewer
className=”posi”
cameraPosition={cameraPosition}
url={
“https://storage.googleapis.com/xyz.fbx“
}
x=”500″
y=”800″
/>
</div>
</div>
);
}
export default LoadFBX;
This code works perfectly but it is using react-three-fbx-viewer
submitted by /u/Ktsuna
[link] [comments]