This tutorial will allow you to
- Use your PC's camera in game
- Use an image instead of the camera
- Download the Namcam server file (at the end of this tutorial, there's a JavaScript file. Click
Raw, then right click, save page as) - Make sure to place the file in an empty folder with nothing else besides it.
- Open a terminal in this directory. The way you do this depends on your OS, but usually you can right click on an empty space inside of the folder to open it in the terminal
- Type
npm i expressand press enter. This will install Express. If you get an error "Command not found", make sure node.js is correctly installed - ONLY if you want to use a static image instead of your webcam, follow these extra steps :
- Add a .jpg image next to the .js file
- Open the .js file in a code editor or notepad. Change
USE_WEBCAMtofalse. ChangeSTATIC_IMAGE_PATHto the name of your image - Save the file
Caution
The image or camera output must be 320px in width, and 240px in height, or else the game will crash when attempting to access it!
- Type
node namcam.jsin the terminal and press enter. You will be given an URL, open it in the browser to test it and see if your image or camera appears. - In the Dolphin triforce settings, change the IP forward to match the URL given to you in the terminal. For example, if the URL you have is
http://127.0.0.1:3000/img.jpg, set the namcam address tohttp://127.0.0.1:3000 - Start the game and enable the service menu (map the SERVICE key in the Dolphin triforce settings)
- In the game's test mode, go to "Camera test" and move the camera so that the face aligns with the frame
- In the game's test mode, under "Game options" make sure the camera is enabled
- You can now play! Enjoy!

For Windows Users:
Replace
With