You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additionally, Euler angles were not particularly practical in this case. I imagine Euler angles are useful when you want to perform a rotation and have some geometric intuition about the rotation you're performing, but in my use case this varied from instance to instance. Instead, I would have appreciated a TSL equivalent of lookAt.
Solution
I have the following suggestions:
Add documentation for rotate
Implement lookAt
Update webgpu-compute-birds example to use lookAt
Alternatives
With some help of AI, I ended up implementing this successfully as follows:
Description
To try out TSL and compute shaders, I am working on a small application with boids.
To point the instanced meshes in the direction they are travelling, I needed to rotate the vertices.
I looked at
TSL.rotate
, but I found that it is undocumented. It would be nice to add documentation and/or examples of this function to https://github.com/mrdoob/three.js/wiki/Three.js-Shading-Language, as well as describing in which Euler order the rotation is applied.Additionally, Euler angles were not particularly practical in this case. I imagine Euler angles are useful when you want to perform a rotation and have some geometric intuition about the rotation you're performing, but in my use case this varied from instance to instance. Instead, I would have appreciated a TSL equivalent of
lookAt
.Solution
I have the following suggestions:
rotate
lookAt
lookAt
Alternatives
With some help of AI, I ended up implementing this successfully as follows:
Additional context
No response
The text was updated successfully, but these errors were encountered: