aframevr/a-painter — 698★ trên GitHub (JavaScript). 🎨 Paint in VR in your browser.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
To create a new brush, implement the following interface:
BrushInterface.prototype = {
init: function () {},
addPoint: function (position, orientation, pointerPosition, pressure, timestamp) {},
tick: function (timeOffset, delta) {}
};
init (): Use this for initializing variables, materials, etc. for your brush.
addPoint (Mandatory): It will be called every time the brush should add a new point to the stroke. You should return true if you've added something to the scene and false otherwise. To add some mesh to the scene, every brush has an injected object3D attribute that can be used to add children to the scene.
position (vector3): Controller position.
orientation (quaternion): Controller orientation.
pointerPosition (vector3): Position of the pointer where the brush should start painting.
pressure (float[0..1]): Trigger pressure.
timestamp (int): Elapsed milliseconds since the starting of A-Painter.
tick (Optional): Is called on every frame.
timeOffset (int): Elapsed milliseconds since the starting of A-Painter.
delta (int): Delta time in milliseconds since the last frame.
Development Tip: set your brush as the default brush at the top of
src/components/brush.js (brush: {default: 'yourbrush'}) while developing so
you don't have to re-select it every time you reload.
Common Data
Every brush will have some common data injected with the following default values:
aframevr/a-painter có 698 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/aframevr/a-painter. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
aframevr/a-painter có những chủ đề gì?
GitHub topics của aframevr/a-painter: "aframe", "threejs", "virtual-reality", "virtualreality", "vr", "webvr", "webxr". TopGit xếp repo vào nhóm mã nguồn mở.
aframevr/a-painter còn đang phát triển không?
Commit gần nhất trên aframevr/a-painter là 2.6 năm trước (theo timestamp GitHub). Repo có 204 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
aframevr/a-painter là gì?
aframevr/a-painter (aframevr/a-painter) là dự án JavaScript trên GitHub. Theo mô tả gốc: 🎨 Paint in VR in your browser.
aframevr/a-painter viết bằng ngôn ngữ gì?
aframevr/a-painter chủ yếu viết bằng JavaScript. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về a-painter?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về a-painter.