TresJS - Add 3D to your nuxt app using the official nuxt module

preview_player
Показать описание
🎥 Welcome to our latest tutorial on TresJS, the official Nuxt module! 🚀

We kick things off by guiding you through the installation process of the TresJS module in your Nuxt app. No stone is left unturned as we ensure you understand each step of the process.

Next, we move on to creating an introductory scene using TresJS. This will give you a taste of the power and flexibility that TresJS brings to your Nuxt applications.

One of the key highlights of TresJS is the enhanced developer experience. We delve into how TresJS allows for the auto-import of components and composables from the Tres ecosystem, making your development process smoother and more efficient.

We also showcase how clean and readable your components code can be when using TresJS. This makes your code easier to understand and simplifies the maintenance and debugging process.

Finally, we demonstrate how to import the Nuxt Carved Stones model from Blender into your Nuxt app. We use the useGLTF function to import and load the textures using useTexture. This practical example will help you grasp the real-world applications of TresJS in your Nuxt projects.

Remember, if you found this video helpful, please give it a thumbs up 👍 and subscribe to our channel! Your support helps us continue creating high-quality content and keeps the Gods of the YouTube algorithm happy.

Stay tuned for more exciting tutorials and don't forget to drop your questions and feedback in the comments section below. Happy coding! 💻

----

Resources

00:00 - Intro
01:02 - Nuxt app setup
01:30 - Installing @tresjs/nuxt
02:33 - Create the Canvas
03:37 - Autoimports feature
04:04 - Add an object
05:12 - Adding @tresjs/cientos package
06:21 - Autoimport of composables
08:06 - Blender model
09:30 - Adding the stones model
13:29 - Adding Textures
18:20 - Adding the little stones and texture them
23:21 - Adding nuxt logo and light orbs
25:41 - Adding Bloom effect with postprocessing
30:12 - Summary
30:43 - Outro
Рекомендации по теме
Комментарии
Автор

Супер!
Классное видео и очень актуальное и хорошее объяснение работы модуля TresJS в Nuxt JS. Хорошее продвежение модуля TresJS!

poliweb
Автор

Tenía mucho tiempo que no veía tus videos, el progreso que has hecho es incerible, muchas gracias por todo el esfuerzo.

rodrigoreyessanchez
Автор

Oh my good my man.
No sabia que hablabas español.

Que orgullo saber que hay hermanos realizando trabajos tan importantes para la comunidad de VUE.

Un saludo y un abrazo.

TheDeprecatedLibrarian
Автор

yooo thats sick! please do more like this! Maybe some interactiveness with some models? Like configuring a product for color and specifications (basic version i guess haha) would be amazing

JelleTalsma-hjgv
Автор

Hi, thanks for the job done, and the tuto ! Is Tres available on nuxt 2 ?

sunid_tv
Автор

I always wondered how can we add 3d models in website, thanks bro

harshitshivhare
Автор

UPDATE 20 minutes later!: Check my reply to this comment:

Hi Alvaro, I have followed this video as well as the instructions on the documentation guide on brand new nuxt projects and I keep getting this error:


I am not even able to see the black canvas.

Any help would be awesome. I only want to show one small stl file on the my nuxt website and I am not able to have any success.

PratyushTewari
Автор

Hola Alvaro, sabes como puedo editar un <primitive/> lo que quiero hacer es cargar mi objecto y editar las sus propiedades .
Ya busque en la doc y no pude encontrar como resolverlo.
Intente agregar a <TresMeshBasicMaterial> dentro de <primitive> pero no funciono.
Este es mi codigo:
<template>
<TresCanvas clear-color="#4f4f4f" >
<TresPerspectiveCamera/>
<OrbitControls />
<Suspense>

<primitive :object="model" />

</Suspense>
<TresGridHelper />
</TresCanvas>
</template>
btw tienes algun blog o foro que me recomiedes para seguir aprendiendo tres js?
Espero me puedas ayudar, un saludo desde Mexico y muchas gracias por todos estos videos, = soy fan de vue

FernandoHernandez-pzim
Автор

no, its broken, EffectComposer is broken

standroads
Автор

I installed @tresjs/nuxt as per documentation (yarn add three @tresjs/nuxt)
the @tresjs/core installation documentation says nothing

bohdanbilous
Автор

This video was really helpful however I am facing a little issue, I'm not getting any IntelliSense suggestions for Tresjs code, is there any specific config for that? I'm also using VS Code and Volar Extension pack.


Versions
"devDependencies": {
"nuxt": "^3.6.3"
},
"dependencies": {
"three": "^0.154.0"
}

overrevvv