I'm new to react-three-fiber, so I really think my problem is easy but I almost give up on it .
the problem :
I have a 3D model it renders ok but it’s away too big
I have to zoom out to 25% just to see almost half the model (see the picture)
what I wanted: the model to be way smaller so I can put it as a small background for my website.
I want to put the model.js but it’s too many lines , there’s nothing special really I use the gltfjsx
command line to transfer my .gltf
file to .js
file and I didn’t do any changes to it.
and here's my app.js
import React, { Suspense } from "react";
import { Canvas } from "@react-three/fiber";
import { OrbitControls } from "@react-three/drei";
import './App.css';
import Model from './components/Bedroom';
function App() {
return (
<Canvas>
<OrbitControls />
<ambientLight intensity={0.6} />
<directionalLight intensity={0.5} />
<Suspense fallback={null}>
<Model/>
</Suspense>
</Canvas>
);
}
export default App;