How to get Wii Remote to communicate with Three.js?

If I connect my Wii Remote via bluetooth to my Ubuntu laptop with Wiico and, like Wmgui, what would be the basic program for displaying Wii Remote interaction with a browser?

I managed to get the Xbox Gamepad to work with chrome, which is not difficult. But is this possible with Wii? First up, down, left, right to work and buttons, and then, possibly, an accelerometer!

I think I would like this to start: http://stemkoski.imtqy.com/Three.js/Mesh-Movement.html -movement as well as https://github.com/s-haha-n/GameTPS/ blob / master / sample.html -my sample Gamebox gamepad exit page.

Where do I start something like this? Will Gamepad.js work with bat with Wii Remote?

+4
source share
1 answer

If you can use a local server, you can

socket.on ('button', function (data) {
  mesh.material.opacity = 1 - mesh.material.opacity;
})

Not sure about the smoothness of events, but it should be quite interesting to try.

+3
source

Source: https://habr.com/ru/post/1528890/


All Articles