User Tools

Site Tools


unity_interactive_bitmaps

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

unity_interactive_bitmaps [2017/05/05 17:55]
unity_interactive_bitmaps [2019/01/21 16:34] (current)
Line 24: Line 24:
   - Finishing Up   - Finishing Up
  
-===== 1. Set Up the Gestureworks Logo Yexture ​=====+===== 1. Set Up the Gestureworks Logo Texture ​=====
 First, be sure to copy the GWLogo.png file into your projects Assets\Textures folder. Next create an Quad GameObject by going to GameObject->​3D Object->​Quad. Name it Bitmap1 and place it where it is visible by the camera. Drag the GWLogo texture to the object. your scene should look similar to the following: First, be sure to copy the GWLogo.png file into your projects Assets\Textures folder. Next create an Quad GameObject by going to GameObject->​3D Object->​Quad. Name it Bitmap1 and place it where it is visible by the camera. Drag the GWLogo texture to the object. your scene should look similar to the following:
  
Line 39: Line 39:
 Now that we have the 3D objects set up for multitouch interaction,​ we will now move on to adding the scripts necessary to make the bitmaps touch-enabled. Before we write more code in the main file, Let’s explore the GestureWorks Unity classes imported from the asset package. Now that we have the 3D objects set up for multitouch interaction,​ we will now move on to adding the scripts necessary to make the bitmaps touch-enabled. Before we write more code in the main file, Let’s explore the GestureWorks Unity classes imported from the asset package.
 Inside the GestureWorks/​Helper,​ you will find class files titled TouchObject.cs and HitManager.cs. The TouchObject is a special class that will be used to make 3D objects touch-enabled. It has public properties that identify gestures associated with this object. TouchObject may only be extended and is enforced with being defined as abstract. Inside the GestureWorks/​Helper,​ you will find class files titled TouchObject.cs and HitManager.cs. The TouchObject is a special class that will be used to make 3D objects touch-enabled. It has public properties that identify gestures associated with this object. TouchObject may only be extended and is enforced with being defined as abstract.
- 
-The HitManager class is used to find touch point intersections of 3D objects in the scene. Unity’s built-in Raycast method is used to detect hits. More optimization of this class is encouraged for scenes with more objects in them. 
  
 The HitManager class is used to find touch point intersections of 3D objects in the scene. Unity’s built-in Raycast method is used to detect hits. More optimization of this class is encouraged for scenes with more objects in them. The HitManager class is used to find touch point intersections of 3D objects in the scene. Unity’s built-in Raycast method is used to detect hits. More optimization of this class is encouraged for scenes with more objects in them.
unity_interactive_bitmaps.1494006923.txt.gz · Last modified: 2019/01/21 16:35 (external edit)