Page 1 of 1

Matrix math - TouchMarker

Posted: 04 Mar 2013, 18:44
by joschy
Hi there,
I have a little problem with some mathematical stuff.. :roll: We use the TouchMarker Node and it´s work fine. We get the screen position where the marker is touch the surface. But how the hell can I transform the screen position in world/view coordinates, so I can attache a transform node to the Marker ID pos? I want, that if you move the Marker object on the surface some attached stuff will following the move.

Tia, joschy

Re: Matrix math - TouchMarker

Posted: 04 Mar 2013, 23:44
by chriss0212
hi

i never used touch marker but: is the given position like tuio standart between 0-1? if so, you can use clipping nodes with the input property min=0 max=1 and output min=0 max=screen resolution

greetz

christian

Re: Matrix math - TouchMarker

Posted: 05 Mar 2013, 08:45
by joschy
Yeah, it seems the way to go. Thought there are similar functions like in unity3d.... ScreenToWorldPoint


greetings, joschy

Re: Matrix math - TouchMarker

Posted: 05 Mar 2013, 18:09
by joschy
strike, got it working :D
TransformProjection.PNG
TransformProjection.PNG (14.64 KiB) Viewed 4138 times