Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

188
Views
No se puede ver el modelo con OBJLoader React Three Fiber

Estoy tratando de convertir un archivo .obj en mi proyecto de reacción usando el gancho OBJLoader y useLoader() de React Three Fiber, pero no puedo hacerlo. La ruta de mi archivo es correcta y estoy envolviendo el Modelo en etiquetas Suspenso, entonces, ¿por qué ocurre esto?

 import React, { Suspense } from "react"; import * as THREE from "three"; import { Canvas, useLoader } from "@react-three/fiber"; import { OrbitControls } from "@react-three/drei"; import { OBJLoader } from "three/examples/jsm/loaders/OBJLoader"; function Model() { const model = useLoader( OBJLoader, "../assets/Model.obj" ); return <primitive object={model} scale={0.4} />; } function App() { return ( <div className="App"> <Canvas> <OrbitControls enablePan={true} enableZoom={true} enableRotate={true} addEventListener={undefined} hasEventListener={undefined} removeEventListener={undefined} dispatchEvent={undefined} /> <Lights /> <Suspense fallback={null}> <Model /> </Suspense> </Canvas> </div> ); } export default App;

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!