So I’m now working on a new project for a class where my team would like to be able to use two wiimotes via the uniwii plugin to make a multiplayer game.
Two problems:
How would I go about setting up two different viewports on one screen? Certainly I’d need two cameras but how would I “split” the screen so to speak.
I just finished a project that functionally was all right except I had troubles with the uniwii plugin. If anyone has any experience working with it, what does it take to get wiimotes to connect easily and disconnect easily. I had problems with motes not connecting often, as well as, false positives where the game thought a wiimote had connected.
Answer to number 1. To set the viewport, click on your camera and open the “Normalized Viewport” toggle. The X and Y values are the position on screen, between 0 and 1, of that camera’s top-left corner. The width and height are the camera’s allotted amount of space, between 0 and 1, to render on the screen.
If you set those up for your two different cameras you can easily achieve a split-screen effect.
And to explain one notch further, the screen’s bottom-left is 0,0, the upper-right is 1,1. (ref: Camera)
Sorry, I don’t have personal experience with the plugin, but I can say that you might want to post in the Wiimote plugin thread if you haven’t done so already (sorry for not checking first if you have ).