Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orientation dataspace: Add axyz unit #377

Open
lossius opened this issue Sep 4, 2015 · 0 comments
Open

Orientation dataspace: Add axyz unit #377

lossius opened this issue Sep 4, 2015 · 0 comments

Comments

@lossius
Copy link
Member

lossius commented Sep 4, 2015

This issue has been moved across from jamoma/JamomaMax#699, where it was added by @matcham .

in order to send rotate message to jit.gl objects, we would need a axyz unit.
(just changing the order of elements of xyza or axis doesn't seem to do the tick..)


----------begin_max5_patcher----------
1521.3oc0ZtsaihCFG+5zmBundwLqRi7ALGFoUa2KVs2ruAqFU4.tMLSBNCX
ZS6n4ce8ABMcJIPZINLRUoACw7me74uSv2uXh2bwFdoG3Sf+CLYx2uXxDyP5
AlTu8DuUrMIKYklCyiIkEUYdSs6JK0LnX9WtJDscvaE4xb1JtYW+UQFa418j
WsRTIWxkl4BUOpdJMG62pXxcmjxrmLSBhLCVOr8mKebM2JZOOvmq20ZlLYQV
9c2TvSj18FfhT+R.NHdV.BihHSAjHeyPnYvleoRVY4MpRO1Ot3B8GSe2PAN9
fBBRQFDDEMCcJoRhX0Jddi3k7MFE3kxukUsTB9.qRJ9HHqD73SaZAdAwGK71
BjaKtatY6FD8BxgaFtMaFZzL5T.hRL+CQMfA5BvLuRBjK34S0eBDEo7Bf3VP
gPxjYh7RP4BQ0xTvbNHYAK+NdJ3SamjkY47DQUtYlHs.yfyAL8s1UHeeKS0y
AvOzEvTrlm+O+KXyiOAjBveWsTAyO7mer27x+jyq4Uymuju6h9VHHILzfNbr
9eQAZ.RGzko47GTWvuheqYeUcIX+qsEm32pms8PiiyIF1ZJgBMqRiiO7hTxv
gkeGbEpUdfN0731kBUjfCAEBAsypMRGPAObPoJeMK4vlKGcfPxaBOSe0W5iU
jJtmdMFD5Ne8Ih764ERs+Il1AES8kV3F0+b31lPC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n9nGr6zCtK83N6GJdbsbmhFB8rJKcsHKWV179tBMcBHV
kb.M.FizO+HB4ki87Ic3tZ5wEi6Va5GMttWqSfrS8D4N4PFWQZL5AMhzSOMl
ciicR73JuIRexSA46N8zy6VtIrWehxD3taV8QNT7wEjASMue1wDScV0QWh2s
T7gS+H53x3G4OxzSOjSnybU0G07StO5ubrUmyVu9ddQY8bZTh2J1WDltJDL0
rYVtcSSSG7J32ms83CMivJRVjI4IxpBaiK1DE3cg977iK9efLtgWz
-----------end_max5_patcher-----------

Useful link for further reference: http://www.opengl-tutorial.org/intermediate-tutorials/tutorial-17-quaternions/

jit.gl.render has an attribute "rotate_order"

rotate_order (1 symbol) Set the order rotations are applied for the rotatexyz attribute for all child gl objects (default = auto). E.G. if set to xyz, the object is first rotated around its X axis, then Y, and finally Z. The default of auto implements yzx ordering. To replicate Max 5, use zyx.

so maybe the new unit should be "OpenGL_rotate" to be compatible with render default rotation order.
...and we would probably need openGL_rotatexyz as well..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant