Dude you're awesome! Great job, love vue and I wanted to learn three js but the documentation of trees is a lil limit and is kinda hard translate the three's docs into trees js. Love it thank you so much, I will follow all the videos please don't stop to upload this kind of content ❤
Your videos are great, but I am unable to find props for the different components like for example TresBoxGeometry, TresMesh etc, I am unable to look for different components there.
Hi! Thank you! The props and the arguments are exactly the same as you were using plain threejs, just by checking the documentation of ThreeJS you can see what props you can pass
Nice tutorials, even though a bit confusing. There is no package.json (but you later mention that you have a basic setup with vite). Also: what are "nr" and "ni"? When I search npm I get really old results (like 9 and 10 years old). And when I install those packages globally and use them, all I get is errors over errors. Could you please share a little info about "nr" and "ni"? Thank you! 🙂
i'm trying to use tresjs but whenever I try to set a color to any mesh material, i keep getting an error that says "type 'string' is not assignable to type Color", and altough the 3d mesh changes the color the error is quite annoying, do you know how could I get rid of it?
Hey Alvaro, loving the framework your creating. One question is there a function or a way to fully or partly clean a scene and dispose items? Iam currently doing it like: if (this.renderer?.renderer && this.scene && this.canvas) { this.scene.traverse((object) => { if (object instanceof THREE.Mesh) { object.geometry.dispose(); object.material.dispose(); object.material.map?.dispose(); } }); this.renderer && this.renderer.renderer.dispose(); this.canvas.removeChild(this.renderer.renderer.domElement); } But is there a better way that the TresJS provides? Thank you
Hey Thomas, first of all thank you for your kind message 🙏🏻. Really happy you are enjoying it. Yes correctly, TresJS takes care of all the disposals for you when the components are `unMounted`. I don't know if using component from vue will keep it between pages. vuejs.org/guide/built-ins/keep-alive.html#basic-usage
In fact, you can load fbx easily, we have FBX abstractions, you can use the useFBX composable here cientos.tresjs.org/guide/loaders/use-fbx.html or directly the FBXModel component cientos.tresjs.org/guide/loaders/fbx-model.html A video explaining model loading is on the roadmap, where I will cover all of this. Thanks for the feedback
Dude you're awesome! Great job, love vue and I wanted to learn three js but the documentation of trees is a lil limit and is kinda hard translate the three's docs into trees js.
Love it thank you so much, I will follow all the videos please don't stop to upload this kind of content ❤
Thanks a lot for your kind feedback 😊. Really happy to know that this content is valuable. I will continue doing it
Looks great! Thanks :)
Great content!
Hello, would you be able to make a video on how to use Histoire in Nuxt 3?
Your videos are great, but I am unable to find props for the different components like for example TresBoxGeometry, TresMesh etc, I am unable to look for different components there.
Hi! Thank you! The props and the arguments are exactly the same as you were using plain threejs, just by checking the documentation of ThreeJS you can see what props you can pass
@@AlvaroDevLabs yes, components as well are same as defined in threejs?
This library looks really useful. Do the object components support v-on:click or v-on:hover attributes?
Yes, we support pointer events docs.tresjs.org/api/events.html
спасибо бро
Nice tutorials, even though a bit confusing. There is no package.json (but you later mention that you have a basic setup with vite). Also: what are "nr" and "ni"? When I search npm I get really old results (like 9 and 10 years old). And when I install those packages globally and use them, all I get is errors over errors. Could you please share a little info about "nr" and "ni"? Thank you! 🙂
Hey there! Thanks for the feedback, ni and nr is npm install and npm run when you use antfu ni package github.com/antfu/ni
i'm trying to use tresjs but whenever I try to set a color to any mesh material, i keep getting an error that says "type 'string' is not assignable to type Color", and altough the 3d mesh changes the color the error is quite annoying, do you know how could I get rid of it?
I think is fixed in the last version, it was a type issue when threejs updated to 160
Hey Alvaro, loving the framework your creating. One question is there a function or a way to fully or partly clean a scene and dispose items?
Iam currently doing it like:
if (this.renderer?.renderer && this.scene && this.canvas) {
this.scene.traverse((object) => {
if (object instanceof THREE.Mesh) {
object.geometry.dispose();
object.material.dispose();
object.material.map?.dispose();
}
});
this.renderer && this.renderer.renderer.dispose();
this.canvas.removeChild(this.renderer.renderer.domElement);
}
But is there a better way that the TresJS provides?
Thank you
Or when TresJS does it automatically - is there a way to keep 3d components alive when switching pages?
Hey Thomas, first of all thank you for your kind message 🙏🏻. Really happy you are enjoying it.
Yes correctly, TresJS takes care of all the disposals for you when the components are `unMounted`. I don't know if using component from vue will keep it between pages. vuejs.org/guide/built-ins/keep-alive.html#basic-usage
@@AlvaroDevLabs Thank you very much I will try ✌🏼❤️❤️
doubt you can use fbx files, but can you still use glb files? maybe do a video for that
In fact, you can load fbx easily, we have FBX abstractions, you can use the useFBX composable here cientos.tresjs.org/guide/loaders/use-fbx.html or directly the FBXModel component cientos.tresjs.org/guide/loaders/fbx-model.html
A video explaining model loading is on the roadmap, where I will cover all of this. Thanks for the feedback
@@AlvaroDevLabs :O
¿Alvaro tienes canal en Español?
Hola por ahora no, la inmensa mayoria de mi comunidad es internacional, saludos!