-
I'm writing a typescript that loads a PCD file. Unknown property 'object' found my_model.tsx import React, { FC, Suspense } from 'react';
import { PCDLoader } from 'three/examples/jsm/loaders/PCDLoader';
import { Canvas, useLoader } from '@react-three/fiber';
import { OrbitControls, Environment } from '@react-three/drei';
const Model = () => {
const obj = useLoader(PCDLoader, 'assets/models/model.pcd');
console.log(obj);
return <primitive object={obj} scale={0.4} />;
}; |
Beta Was this translation helpful? Give feedback.
Answered by
bgyooPtr
Nov 2, 2023
Replies: 1 comment 3 replies
-
Did you ever solve this? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't remember exactly because I wrote this code a long time ago, but I solved it like this.
I hope this code helps you.