World-space UIs: built-in raycast and external textures on meshes?

Đang mở
#15 3 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
react-native, typescript
Lĩnh vực
computer-graphics

Hướng nghiên cứu

The issue describes two possible renderer capabilities: ray intersection with IndexedGeometry that returns hit details, and support for an externally updated GPUTextureView on meshes with translucent premultiplied alpha. Start by reading the view.rayAt(), picker, meshPool, and instances APIs mentioned in the issue, then check how custom drawing is currently integrated. Done means clarifying whether either capability is planned or supported and documenting or implementing a defined path; the issue does not specify which direction to take.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Hi! I'm implementing TypeGPU Kit for world-space UIs in https://github.com/uno-build/ui: the UI is rendered to a texture on a plane, and pointer events need the hit UV. Two things I had to build myself:

  1. Raycast. Kit gives me the ray (view.rayAt()), but nothing to intersect it with a mesh, and picker is asynchronous and returns no UVs. Are you planning a built-in raycast that intersects a ray with an IndexedGeometry and returns the hit point, normal, UV and distance?

  2. External texture on a mesh. The UI texture is a GPUTextureView updated every frame, drawn translucent with premultiplied alpha. I couldn't find a way to use it with meshPool/instances, so I wrote my own drawing (quad, placement uniform, sampler, blending). Is there a supported way to do this with Kit's renderers, or is a custom drawing the intended approach?

Ngôn ngữ chính
TypeScript
Star
69
Fork
7
Merge trung bình
1 giờ 48 phút
Pull request đã merge (30 ngày)
15

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của software-mansion/typegpu-kit

Tất cả issue của software-mansion/typegpu-kit

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.