To start things off, this git is to be used in conjuction with the 2dTabletPen repository. To use the VR feature is very simple though!
- Install the proper Unity XR plugins (I should update this later with the actual plugin names :3)
- Clone this repository and this repository into your project
- Add the XR Player Prefab to your scene
- Enjoy :3
An object in unity needs a few components before it can be drawn on.
- Change the tag to "Whiteboard"
- Make sure the object has a "Mesh Collider" and "Mesh Renderer" component
- Add the "Whiteboard.cs" script from the 2dTabletPen folder
- Put the "transparent" material from the 2dTabletPen/Materials folder under "Transparent Material"
- Adjust texture size accordingly (leaving it default should work out most of the time)
- Left Joystick for movement
- Right Joystick to turn
- Right Grip button to draw
- Left Grip button to open up the pallete
- 'A' (On Oculus Controllers) to interact with the pallete
- 'B' Undo
- Right/Left trigger for ascension/descension