TresJS - First steps with 3D on Vue

  Рет қаралды 4,833

Alvaro Dev Labs

Alvaro Dev Labs

Күн бұрын

Пікірлер: 24
@FernandoHernandez-pz9im
@FernandoHernandez-pz9im Жыл бұрын
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 ❤
@AlvaroDevLabs
@AlvaroDevLabs Жыл бұрын
Thanks a lot for your kind feedback 😊. Really happy to know that this content is valuable. I will continue doing it
@einl12345
@einl12345 Жыл бұрын
Looks great! Thanks :)
@alexhek
@alexhek 3 ай бұрын
This library looks really useful. Do the object components support v-on:click or v-on:hover attributes?
@AlvaroDevLabs
@AlvaroDevLabs 3 ай бұрын
Yes, we support pointer events docs.tresjs.org/api/events.html
@ЙорданРамчев
@ЙорданРамчев 4 ай бұрын
Great content!
@sarwannizamani9963
@sarwannizamani9963 11 ай бұрын
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.
@AlvaroDevLabs
@AlvaroDevLabs 10 ай бұрын
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
@sarwannizamani9963
@sarwannizamani9963 10 ай бұрын
@@AlvaroDevLabs yes, components as well are same as defined in threejs?
@caioalves8319
@caioalves8319 Жыл бұрын
Hello, would you be able to make a video on how to use Histoire in Nuxt 3?
@thomasfichtner9738
@thomasfichtner9738 Жыл бұрын
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
@thomasfichtner9738
@thomasfichtner9738 Жыл бұрын
Or when TresJS does it automatically - is there a way to keep 3d components alive when switching pages?
@AlvaroDevLabs
@AlvaroDevLabs Жыл бұрын
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
@thomasfichtner9738
@thomasfichtner9738 Жыл бұрын
@@AlvaroDevLabs Thank you very much I will try ✌🏼❤️❤️
@kokiiito
@kokiiito 9 ай бұрын
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?
@AlvaroDevLabs
@AlvaroDevLabs 8 ай бұрын
I think is fixed in the last version, it was a type issue when threejs updated to 160
@marhunter1698
@marhunter1698 6 ай бұрын
спасибо бро
@RobertWildling
@RobertWildling Жыл бұрын
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! 🙂
@AlvaroDevLabs
@AlvaroDevLabs Жыл бұрын
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
@insecureup
@insecureup 6 ай бұрын
¿Alvaro tienes canal en Español?
@AlvaroDevLabs
@AlvaroDevLabs 5 ай бұрын
Hola por ahora no, la inmensa mayoria de mi comunidad es internacional, saludos!
@LNSFLIVE
@LNSFLIVE Жыл бұрын
doubt you can use fbx files, but can you still use glb files? maybe do a video for that
@AlvaroDevLabs
@AlvaroDevLabs Жыл бұрын
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
@LNSFLIVE
@LNSFLIVE Жыл бұрын
@@AlvaroDevLabs :O
TresJS - Animate your 3D Objects with Vue
14:32
Alvaro Dev Labs
Рет қаралды 2,4 М.
TresJS - Add 3D to your nuxt app using the official nuxt module
31:39
Alvaro Dev Labs
Рет қаралды 3,9 М.
What's in the clown's bag? #clown #angel #bunnypolice
00:19
超人夫妇
Рет қаралды 24 МЛН
1 сквиш тебе или 2 другому? 😌 #шортс #виола
00:36
إخفاء الطعام سرًا تحت الطاولة للتناول لاحقًا 😏🍽️
00:28
حرف إبداعية للمنزل في 5 دقائق
Рет қаралды 83 МЛН
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 89 МЛН
How to use Vue Suspense for async components
7:27
Alvaro Dev Labs
Рет қаралды 1,1 М.
How to add 3D to Astro using TresJS
35:51
Alvaro Dev Labs
Рет қаралды 3,6 М.
Modern ThreeJS with Vite
39:42
Alvaro Dev Labs
Рет қаралды 10 М.
TresJS v2 beta - What's hot 🔥?
16:24
Alvaro Dev Labs
Рет қаралды 859
Flocking Simulation: Boids (JavaScript)
10:42
SimonDev
Рет қаралды 22 М.
"The Life & Death of htmx" by Alexander Petros at Big Sky Dev Con 2024
23:01
Montana Programmers
Рет қаралды 65 М.
React Three Fiber (R3F) - The Basics
1:10:56
rithmic
Рет қаралды 77 М.
Modern Data Fetching in React (Complete Guide)
16:41
Cosden Solutions
Рет қаралды 57 М.
Going 3D with Trois.js (Three.js + Vite)
31:24
Alvaro Dev Labs
Рет қаралды 9 М.
What's in the clown's bag? #clown #angel #bunnypolice
00:19
超人夫妇
Рет қаралды 24 МЛН