Convert between Three.js's euler rotation and Openscad's camera #236
Reference in New Issue
Block a user
Delete Branch "kurt/235"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This felt like it was so much harder than it needed to be. Finally figured it out. The main thing I was struggling with was that I needed to change the order that the euler rotations were applied to match what openscad does (which is just sorta implicit in openscad I believe), but kinda went down a deep rabbit hole of learning about quaternions, then coming back out to realise there was a simple solution there. Feel like I have a bit more concepts under by belt now though.
https://user-images.githubusercontent.com/29681384/110857832-6bb88380-830d-11eb-9e14-c6024aa68899.mov
I managed to get the position to work as well (needs to be scaled by 10 exactly? not sure where that magic number comes from). Perspective seems off between the two cameras, more work to do I guess is what I'm saying.
Resolves #235
This is working great! A few thoughts:
Love this addition of markers.