Alvaro Saburido
TresJS a new declarative ThreeJS as Vue components
#1about 3 minutes
Introducing TresJS for declarative 3D in Vue
TresJS allows you to build complex Three.js scenes declaratively using standard Vue components and composables.
#2about 4 minutes
Motivation for a modern Three.js library for Vue
Existing Vue wrappers for Three.js struggle with updates, inspiring a new library similar to React Three Fiber but without a custom renderer.
#3about 4 minutes
Getting started with the TresCanvas and basic scene setup
Install TresJS as a plugin and use the TresCanvas component as the root for your 3D scene, which handles the renderer and camera setup.
#4about 5 minutes
Creating 3D objects with auto-generated components
TresJS automatically generates components from Three.js constructors, allowing you to compose objects by nesting geometry and material components.
#5about 4 minutes
Animating objects using the onLoop composable
Use template refs to get the Three.js instance and the `onLoop` composable to animate object properties on every frame.
#6about 2 minutes
Extending TresJS with non-core Three.js modules
Use the `extend` method from the `useCatalog` composable to add components for Three.js modules that are not part of the core library, like OrbitControls.
#7about 4 minutes
Applying materials and textures to objects
Enhance object appearance by using different material components and loading complex PBR textures with the `useTexture` composable.
#8about 5 minutes
Implementing realistic lighting and shadows in a scene
Add various light types like ambient and directional lights, and enable shadows by setting properties on the canvas, lights, and objects.
#9about 3 minutes
Configuring the environment and handling pointer events
Fine-tune the rendering environment with canvas props and handle user interactions like clicks and hovers using built-in pointer events.
#10about 6 minutes
Introducing Cientos for loading models and other utilities
The Cientos package provides helpful abstractions and components for common tasks like loading GLTF models, adding controls, and debugging.
#11about 4 minutes
Exploring the TresJS ecosystem and future roadmap
TresJS is designed as an ecosystem with packages for core functionality, utilities, performance, and post-processing, with a roadmap including HMR improvements and a Nuxt module.
#12about 3 minutes
How to contribute and get involved with the community
Support the project by sharing your work, contributing code, joining the Discord community, or providing sponsorship.
#13about 10 minutes
Answering community questions about TresJS
Topics covered include tree-shaking, script setup usage, custom shaders, and compatibility with Nuxt 3.
Related jobs
Jobs that call for the skills explored in this talk.
Hubert Burda Media
München, Germany
€80-95K
Intermediate
Senior
JavaScript
Node.js
+1
Douglas GmbH
Düsseldorf, Germany
Intermediate
Senior
TypeScript
React
Matching moments
09:00 MIN
Navigating the growing complexity of modern CSS
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
02:33 MIN
Why you might not need JavaScript for everything
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
08:07 MIN
Exploring modern JavaScript performance and new CSS features
WeAreDevelopers LIVE – AI, Freelancing, Keeping Up with Tech and More
04:56 MIN
Recreating React components using AI and dev tools
WeAreDevelopers LIVE – AI, Freelancing, Keeping Up with Tech and More
06:47 MIN
Solving date and time issues with the Temporal API
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
11:32 MIN
The industry's focus on frameworks over web fundamentals
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
07:46 MIN
The challenge of keeping up with modern CSS
WeAreDevelopers LIVE – AI, Freelancing, Keeping Up with Tech and More
11:10 MIN
The only frontend stack that truly matters
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
Featured Partners
Related Videos
Building Better with Nuxt 3
Daniel Roe
Modern Web Development with Nuxt3
Alexander Lichter
Nuxt.js - Just Vue 3 and a bit of magic?
Alexander Lichter
Vuejs and TypeScript- Working Together like Peanut Butter and Jelly
Rob Richardson
petite-vue - Progressively enhancing every application?
Alexander Lichter
Under The Hood Of Vue 3 Reactivity
Marc Backes
Under The Hood of Vue 3 Reactivity
Marc Backes
Why HTMX is crushing React, Vue & Svelte.
Felix Eckhardt & Benedikt Stemmildt
Related Articles
View all articles



From learning to earning
Jobs that call for the skills explored in this talk.

Visioglobe
Canton de Meylan, France
Senior
iOS
GIT
Vue.js
Jenkins
TypeScript
+1

knowmad Mood
Santa Cruz de Tenerife, Spain
Remote
Intermediate
NoSQL
Vue.js
Docker
MongoDB
+4



Paradigma Digital
Santa Cruz de Tenerife, Spain
API
React
Svelte
Vue.js
WebPack
+3

Volkers Nijkerk
Nijkerk, Netherlands
€3-5K
API
Vue.js
Docker
Laravel
+3

TransPerfect
Barcelona, Spain
Intermediate
Scrum
React
Figma
Vue.js
Angular
+1

