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
how to load obj file not in a static way like the example says. When I try to use require function, it shows error (can not find file), but could work without require.
Below is my code:
function Scene() {
const obj = useLoader(OBJLoader, '../../assets/models/male.obj');
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
how to load obj file not in a static way like the example says. When I try to use require function, it shows error (can not find file), but could work without require.
Below is my code:
function Scene() {
const obj = useLoader(OBJLoader, '../../assets/models/male.obj');
return obj ? : null;
}
Beta Was this translation helpful? Give feedback.
All reactions