RepositoryVue
Tresjs

Tresjs/tres

Declarative ThreeJS using Vue Components

3.8ksao
205fork
85issue
7lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: composable

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: custom-renderer

#1 Repository của tuần

4
TINIX TRENDING·Chủ đề: declarative

#4 Repository của tuần

🎮 ThreeJS theo kiểu Vue — không cần lo version

Xây cảnh 3D bằng Vue component, ThreeJS tự cập nhật theo, không cần sửa code.

TresJS là thư viện cho phép dùng Vue components để khai báo (declarative) các cảnh 3D ThreeJS. Dự án được xây trên Vue Custom Renderer (createRenderer) và dùng Vite làm bộ build. Tres (từ tiếng Tây Ban Nha nghĩa là "ba") hướng tới cộng đồng Vue, giúp tạo 3D scenes với 0 đến gần như không cần bảo trì.

✨ Điểm nổi bật

  • Declarative ThreeJS: viết cảnh 3D bằng Vue template, không cần thủ công tạo đối tượng ThreeJS
  • Vue Custom Renderer: build trên createRenderer, các component Vue tương tác trực tiếp với ThreeJS scene graph
  • Luôn cập nhật ThreeJS: nhận tính năng mới ngay bất kể version ThreeJS đang dùng
  • Fully typed: typings đầy đủ, hỗ trợ tốt TypeScript và IDE
  • Powered by Vite: tận dụng Vite cho dev experience nhanh
  • Ecosystem đa dạng: Cientos (helper components), Post-processing, Nuxt, TresLeces (helpers)
  • 0-to-none maintenance: ít phải sửa code khi ThreeJS nâng cấp
  • MIT License: mã nguồn mở, dùng tự do

💡 Vì sao đáng chú ý

Cách làm truyền thống là import trực tiếp ThreeJS và viết scene graph bằng JavaScript thuần — nhiều code lặp, khó test, và mỗi khi ThreeJS lên version thường phải sửa. TresJS giải quyết bằng cách đóng gói ThreeJS thành Vue components, đưa toàn bộ logic vào hệ thống phản ứng (reactivity) của Vue. Kết quả là scene 3D được viết ngắn gọn hơn, dễ đọc hơn, và tự đồng bộ với ThreeJS mới.

Dự án phù hợp cho nhóm đã quen Vue, muốn thêm 3D vào sản phẩm mà không bỏ thời gian học API ThreeJS từ đầu. Các package phụ như Post-processing và Nuxt giúp tích hợp dễ dàng vào stack hiện có.


#ThreeJS #Vue #WebGL #OpenSource #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryTypeScript
slidevjs/slidev

Presentation Slides for Developers

49.7k
Nov 29, 2026
RepositoryPython
img2threejs/img2threejs

Rebuild the object in a reference image as a code-only, procedural, quality-gated, animation-ready Three.js model. Token-efficient image-to-3D.

22.4k
Dec 1, 2026
RepositoryTypeScript
vueuse/vueuse

Collection of essential Vue Composition Utilities for Vue 3

22.4k
Nov 23, 2026
RepositoryHTML
MengTo/threeui

Open-source ThreeUI Community catalog with live interactive components and complete Community source.

7.6k
Nov 17, 2026
RepositoryHTML
vasturiano/3d-force-graph

3D force-directed graph component using ThreeJS/WebGL

6.6k
Nov 27, 2026
RepositoryJavaScript
react/react

The library for web and native user interfaces.

253.0k
Nov 30, 2026
RepositoryTypeScript
vuejs/vue

This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core

212.6k
Oct 10, 2024
RepositoryJavaScript
mrdoob/three.js

JavaScript 3D Library.

120.1k
Dec 2, 2026
RepositoryJavaScript
mrdoob/three.js

JavaScript 3D Library.

120.1k
Dec 2, 2026