< Back to IRCAM Forum

Spat5.viewer listener / speaker | microphone | phone orientation discrepancy

listener orientation is always absolute (doesn’t depend of listener position) ;
But speaker / microphone / phone orientation is always relative to sweet spot / center.

/orientation/mode “fixed yaw” : doesn’t help, it just disable auto orientation of speaker when updating position. it doesn’t allow to set absolute orientation.

I need to display absolute speaker | microphone | phone orientation, as it works with listener orientation.

Am I missing smomething ?
is that expected behavior ?

example patch :


----------begin_max5_patcher----------
1582.3oc6Z0rbqZCEdsySACSW0wwAIAXSW0tnuCsM2LYvfrsRvHOfvIo249t
W8CfEFYLIFS8h6h3DNR3Ceme9NGcHe+tI1Kouiyss9MqGslL462MYhTjPvjx
qmXuM78njvb41r2hyyCWismpVigemIkmyn6pDRhkhnKe4dTPkvzhsjzDLS90
.OHjVvpjBJkpDw9XGV8jYaa8T4R6BYQaHoqeNCGwTqB78l4L0xEH9zyQ7IDN
yw5Iwc7i6tS7wzdhtT7a7m5VfKgFFuLLcsI.hLBPvmCfxu7t.IDsP.L.R9oy
kgxS4CclM0B46X4533XBpvqturDlJe4buqhujjhsblYBeNFwGxH9fmDeS6u6
z2+Z5NeHgjyvo3rGBwwV265Y4vcKVOjuCG9JWJPJuV7VRTFc2FZJtbk.mxUz
EBPx8WoLg0LhVjJ0naaaJbwUOlwSEl.TIHykgN9eUa4RoBvYUO06I321SxIK
IID1GMdHWsJGW9HH8eNBUVYVnQuhiiyBWmyMpIIhs4TtVTBI5U1lLZw5M5xw
ogKSvaZeCpE12dAkVxI+KVW5x0aowMkPyh4PRSRZ3Vrh1liWuYqKHyhnoLtB
lwMGbYFROl6ODLcc5JWnx9cjrbv.vLONgTvLuQhK2cTnxUwq.v7wI2GGSXh3
mFYxMDdfOng3F7AGVouY9AiUhuJnA3M+hR7SH6wy3PrNwOLqNI430zSJpg4t
vL99Y3rmU4qGE5bt3IspLOKLs4OWgX8UMVsQ7yJdXMqSqkOTxLFHK43Ki5Dl
r5aQSwY3bbJKjQno5jF4g6wwOGxXYjkEL7g+JuztV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xrlQWeMCMqY3koYPe7yNCQDkynE6NRDLd8gaVLY+KW
SKFKam2HY6bWLVJpG5I3Zvi0GEejUXfxo6ilgKtFLnn9jQfFB1DTu3pgCglf
iFl5ECo2PoIvnX8Fozb3Xwm.+R5QcLfvc61iyplxgTE7yB9hZfHKlJujjptz
WdYFVb9Ws4lZGlwOQCie1jhL0YhdubXb1hYMjkVPJSikCOwVdNSw4m3mWTgC
4wQu6G28eTHNUrC
-----------end_max5_patcher-----------

thanks for your help :slight_smile:
Mathieu

Hello Mathieu,

Well, you can do that with the “/foo/direction/xyz [float][float][float]” which sets the direction axis (aka normal), expressed in world coordinates, for the object “foo”.
For any entity (listener, speaker, source, etc.), this uses absolute coordinates.
See spat5.viewer help patch, tab “orientation”.

Hope this helps,
T.

Thanks Thibaut

ho ok, so direction is absolute.

my objects orientation is expressed in quat… too bad a conversion is needed just to display orientation in viewer :frowning:
Any clue on how to convert a quat to direction ? :-s

Isn’t it a bit weird that orientation is absolute for listener, and relative for speakers, mics, … ?