Console Warnings and primitive using error #371
-
Thank you so much for supporting three Js in Vue. I'm trying to use it with Nuxt. 1 - Failed to resolve component: primitive 2- THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733. The second issue is when I try to use primitive :object="nodes.MyModel" instead of GLTFModel. my code : ` <script setup lang="ts"> import { useGLTF } from '@tresjs/cientos' const { scene, nodes, animations, materials } = await useGLTF('/assets/model/rhetorician/scene.gltf', { draco: true }) gsap.registerPlugin(ScrollTrigger) const rotateModalX = ref(0) const rotateModalY = ref(0) const rotateModalZ = ref(0) const lightRef = ref(null) </script>` |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hey @khaledOghli thanks for reaching out Are you using the nuxt module? https://github.com/Tresjs/nuxt |
Beta Was this translation helpful? Give feedback.
-
This is because of the threejs v155 update, you can ignore it |
Beta Was this translation helpful? Give feedback.
-
Awesome Man I Love Tres js @alvarosabu , and everything works well, Just I go deep into the documentation, |
Beta Was this translation helpful? Give feedback.
This is because of the threejs v155 update, you can ignore it