sholloway / agents-playground

MIT License
4 stars 0 forks source link

Spatial Transformation Optimizations #104

Open sholloway opened 9 months ago

sholloway commented 9 months ago

Part of the challenge of migrating to 3D graphics pipeline (i.e. WebGPU) is that the amount of required mathematical calculations increases. Affine transformations and potentially the use of quanternion may result in performance challenges. Consider leveraging either a Rust binding or compute shader for matrix and vector operations.

Tasks

Rust Implementations

Compute Shaders

Python Transformation Pipeline The transformation components are based on the following protocols:

A matrix can be applied to: Point | Vertex | BBox | AABBox | Vector | Matrix. A quanternion can be applied to: Point | Vertex | BBox | AABBox | Vector | Matrix