Etienne Jacob on Nostr: Technical detail I feel like sharing: it seems to be only the second time that for ...
Technical detail I feel like sharing: it seems to be only the second time that for animation's implementation I keep track of the rotated vectors that are initially (1,0,0),(0,1,0),(0,0,1). I mean that I don't want to apply all rotations from the start of the path each time I want to draw a cube, so I use that. It seems to be related to the topic of quaternions. I got some code from somewhere that enables to do Processing's correct rotateX/Y/Z to the cube from the rotated basis.
Published at
2024-01-04 17:37:46Event JSON
{
"id": "217a52a1e1674fa6ac893522b139b2c2437c88998c12697453cb7d55caafbc49",
"pubkey": "5b2b3656d240f247e2af5146f108e01c44c6a7752dc5d8ba487e4f667d3cfc2d",
"created_at": 1704389866,
"kind": 1,
"tags": [
[
"e",
"045c60bc1aded487130ee05372904279cf4125812ac78b2f0b19c2cab357e87f",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://mastodon.social/users/bleuje/statuses/111698894276807954",
"activitypub"
]
],
"content": "Technical detail I feel like sharing: it seems to be only the second time that for animation's implementation I keep track of the rotated vectors that are initially (1,0,0),(0,1,0),(0,0,1). I mean that I don't want to apply all rotations from the start of the path each time I want to draw a cube, so I use that. It seems to be related to the topic of quaternions. I got some code from somewhere that enables to do Processing's correct rotateX/Y/Z to the cube from the rotated basis.",
"sig": "4a126890bd9fbbc272f7ee655bc1e189acf430e38ecaecef430de524a67498a8040a88e7504502f29dd103e86716af641dbc34da1c98c6800f748ead18425b49"
}