You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For my project, I have two 3D models. Both of them were converted from .obj to .gltf, and I used gltfjsx with the -t flag to convert them into React components.
One of the models renders and displays perfectly on gltf.pmnd.rs. However, when I load it into my React project, it does not render.
I tested both the models using the useLoader hook. All of them are loaded successfully and can be logged in the console, except for this specific model, which fails to display.
Issue: One GLTF Model Not Rendering in React Project
Description
I'm using React with TypeScript (created using Vite) and the following dependencies:
For my project, I have two 3D models. Both of them were converted from
.obj
to.gltf
, and I usedgltfjsx
with the-t
flag to convert them into React components.One of the models renders and displays perfectly on gltf.pmnd.rs. However, when I load it into my React project, it does not render.
I tested both the models using the
useLoader
hook. All of them are loaded successfully and can be logged in the console, except for this specific model, which fails to display.Steps to Reproduce
npm i && npm run dev
Additional Information
Expected Behavior
The problematic GLTF model should render correctly in the React project, as it does on gltf.pmnd.rs.
Actual Behavior
The model does not render in the React project, despite being successfully loaded and logged in the console.
Let me know if you'd like further revisions!
The text was updated successfully, but these errors were encountered: