November 18, 2013, 4:14pm
In the HTML Texture Example the Mouse works with the Scrollbars by mapping the coordinates to another range.
But what would you do if you would like to rotate the HTMLTexture?
With the technique in the example you wouldnt be able to interact with HTMLTexture as soon as a rotation is applied.
I tried Apply Transform but it remains a hard nut for me…
Attached a patch. Help is very appreciated!
HTMLTexture Rotate Mouse interaction.v4p (22.3 kB)
November 18, 2013, 7:21pm
i think you missed to convert from the renderer space (-1 … 1) to the quad space (-0.5 … 0.5). you also have to use the aspect ratio to calculate the texture size in pixels.
HTMLTexture Rotate Mouse interaction2.v4p (22.4 kB)
November 19, 2013, 2:54pm
okey more questions.
How to apply the translate?
Do I realy have to do the mapping? Because that seems inefficient to me in a dynamic application…
And I does it work with multitouch? Right now i am just feeding the mousestate with the touch point spreads and i cannot realy say if it works or not…
November 19, 2013, 3:30pm
oh… didn’t tested this. the order of the transformations was wrong. try the new patch.
if the scaling of the touch events is the same as the mouse there should be no problem. although i don’t know how the html texture node handles multiple mouse events…
HTMLTexture Rotate Mouse interaction3.v4p (22.5 kB)
November 19, 2013, 3:59pm
ah this is better, great!
okey multitouch scrolling doesnt work.
Lets say, it works almost.
If you click one scrollbar and move while clicking anoher scrollbar highlights the second scrollbar as well but it does not move, the other continues moving.
Any chance that Elias opens this construction site one more time? :)
November 19, 2013, 4:21pm
well the code is open source, you could have a look at it and see if you find a solution on your own. but maybe elias can elaborate on that a bit more.
November 19, 2013, 4:35pm
okey good. actaully it could also be that i got something wrong.
because in your radiobutton (gui, multitouch) its the same issue.
And this is actaully named ‘multitouch’. Is this supposed to work with spreaded mousestate?
November 20, 2013, 6:04pm
i am afraid its a bug. the gui multitouch isn’t really multitouch, the tag should be removed… you should use the other ones from vux with the id input.
November 21, 2013, 2:32pm
this is still an open
issue at cef. and even if it’d get fixed we’d still need to do the switch to cef 3.