Más contenido relacionado La actualidad más candente (12) Similar a Haptics for android (20) Más de Droidcon Berlin (20) Haptics for android1. Engaging the sense of touch in
Android based games for profit
Bob Heubel
Developer Evangelist, Haptics
March 2012
NASDAQ: IMMR
© 2011 Immersion Corporation
2. Agenda
Short introduction to Haptics
Review of Haptic application examples
Introduction to free Immersion developer tools
– Library of pre-made effects
– Universal Haptic Layer (UHL)
– Studio design tool for custom effect design
“Zap Your App” campaign for revenue opportunities
Haptics beyond gaming discussion
Q & A session
© 2011 Immersion Corporation 2
5. Why use Haptics in Android devices?
Makes your apps feel more engaging/useable.
Brings greater user satisfaction.
Gives users what they expect to feel for input and
gesture confirmations, even in flat virtual interfaces.
Adds an additional communication pathway to
existing video and audio experience.
Adds an emotional connection to the user experience
that is lacking in video and audio alone.
Allows you to control vibration events that are not
available on other platforms, like iOS, for a
competitive advantage.
© 2011 Immersion Corporation 5
6. Why use Haptics in Android devices?
Number One Reason…
Make more money!
Through potential hardware and carrier deals
© 2011 Immersion Corporation 6
7. Immersion Haptic Development Platform
Realistic game play. Lifelike applications.
Arcade
Action Effect
Preview App
7
© 2011 Immersion Corporation
8. Google Vibrate () vs. Immersion Haptic SDK
Vibration Parameters Google Vibrate Immersion
Function Haptic SDK
Duration
Magnitude
Frequency pulsing
Timeline design
capability w/sound
Dynamic API control
functions of all the
above parameters
© 2011 Immersion Corporation 8
9. Benefits of the MOTIV SDK
Goes beyond Google () vibrate motor on/off control
Gives you a library of 124 pre-made Haptic vibe
effects from clicks to explosions, alerts, gesture and
game weapon effects, just to name a few
Saves you time developing effects that feel good
across all Android devices
Allows consistent vibe playback on ALL Android
devices regardless of manufacturer
© 2011 Immersion Corporation 9
10. Example – Benefits of Haptic SDK
Using standard Google vibrate () you must define
motor “on” durations for each device type.
– Not useful, nor effective for longer duration game effects
– Time consuming to code for multiple device motor types, i.e.
your effect may feel fine on your one Android device but
horrible on another device
The Haptic platform abstracts/simplifies this for you
– You choose an effect you want from a pre-made library
– It automatically feels consistent across all Android devices
whether it is an explosion, click, or bounce
– We call this our Universal Haptic Layer (UHL)
© 2011 Immersion Corporation 10
11. Adding MOTIV Haptics to an Android application
SDK and Studio available at: www.immersion.com/MOTIVsdk
© 2011 Immersion Corporation
13. Add UHL to Eclipse project
• Extract UHL_x_x_xx.zip somewhere
• Copy extracted libImmEmulatorJ.so file to your Eclipse
project libs/armeabi folder (create folders if necessary)
• In Eclipse, refresh project to see
libs/armeabi/libImmEmulatorJ.so
• Navigate to Project > Properties > Build Path >
Configure Build Path…
• Click on Add External JARs…
• Browse to location of extracted UHL.jar file
• In the permissions tab under the AndroidManifest.xml,
add “android.permission.VIBRATE”
©2011 Immersion Corporation–Confidential
© 2011 Immersion Corporation 1
3
14. Add Import Statement
Import the Launcher class wherever the Launcher will be used
import com.immersion.uhl.Launcher;
Add Launcher Member
• Add a Launcher member to the main Activity class or other
application-wide class
private Launcher m_launcher;
©2011 Immersion Corporation–Confidential
© 2011 Immersion Corporation
14
15. Instantiate Launcher
Instantiate the Launcher object once, usually in the main Activity
onCreate function
try
{
m_launcher = new Launcher(this);
}
catch (RuntimeException e)
{
Log.e(“My App”, e.getMessage());
}
Use MOTIV UHL Effect Preview App
Use the Effect Preview application from the Android Market to feel the
built-in effects and determine which effect IDs to use in your application.
©2011 Immersion Corporation–Confidential
© 2011 Immersion Corporation
15
17. Free Effect Preview App
Allows you to feel the library on
any Android device
Provides code sample for each
vibration effect shown
Awesome on Android handsets
with TouchSense player installed
by Samsung, LG, Toshiba, Pantech
and others
Good on all other Android handsets
from HTC, Motorola, Sony Ericsson
plus allows vibe effects not
available with standard Google
vibrate () method
© 2011 Immersion Corporation 17
18. UHL Library of Effects in Preview App
The UHL library contains 124 pre-designed effects.
For design purposes, these effects are grouped
into categories:
Selection confirmation effects
Scroll effects
Alert/Alarm effects
Animation Transition effects
Game effects
Texture effects
© 2011 Immersion Corporation 18
19. Play Effect
Play a haptic effect
try
{
m_launcher.play(Launcher.BOUNCE_100);
}
catch (RuntimeException e) {}
Use Effect Preview Application on your target
Android phone to choose effect.
© 2011 Immersion Corporation
19
20. Stop Effect
• Stop the haptic effect.
try
{
m_launcher.stop();
}
catch (RuntimeException e) {}
Add this to Activity onPause function in
case a phone call is received.
© 2011 Immersion Corporation
20
21. In a nutshell, that‟s it!
If you can handle the setting up your Eclipse
environment and understand the last few slides…
Then you should be able to add cool pre-made UHL
Haptic vibration effects to your applications.
If you want more than the pre-made UHL effects, use
the free Studio to create custom effects or use the
full Immersion API for dynamic vibration control.
© 2011 Immersion Corporation
21
22. Immersion Studio
Haptic Design Tool
©2011 Immersion Corporation–Confidential
© 2011 Immersion Corporation
22
23. What does the Studio do for you?
Allows you to design custom Haptic effects beyond the pre-made
124 effects found in the UHL library and is the only Haptic design
tool with a simple visual GUI
Allows you to create complex Timelines with multiple vibe events
Allows you to playback/test/iterate your effects on your tethered
Android device without needing to compile code
Allows you to reference sounds files displayed as waveforms for
playback with your newly designed effects, again, without having to
compile your application code
Allows you to export your custom effects in many different
developer formats, like Java, C…
Let‟s take a very quick look at the Studio
©2011 Immersion Corporation–Confidential
© 2011 Immersion Corporation
23
24. Immersion Studio Design Tool- 2 Components
Studio and UHL to your PC from:
http://www.immersion.com/sdk
Device Bridge app from the Android Market to
connect your device to the Studio design tool:
© 2011 Immersion Corporation 24
25. Full API – Dynamic Vibration Control
Allows you direct API level control of the vibration
parameters for magnitude and pulsing frequency
instead of playing static pre-made library effects or
Studio timeline effects
This control is also good for dynamically tying
strength and pulsing frequency parameters to in-
game speed simulations of acceleration and
deceleration for driving, flying or racing games
This type of control is perfect for tying the strength
of your vibe playback to your in-game physics for
collisions
© 2011 Immersion Corporation 25
26. Downloading the Free Haptic Dev Platform
For Immersion SDK Tools:
www.immersion.com/sdk
Download the Universal Haptic Layer UHL (300KB)
Download the Studio
(only for more advanced custom effect design)
For UHL Quick Start Guide:
www.immersion.com/guide
For UHL Effect Preview App
Download from Android Market
For more Resources:
www.immersion.com/developers/
© 2011 Immersion Corporation 26
27. Immersion UHL Plugins
AppMobi for HTML
5, PhoneGap, Mobius Web and
Accelerate Gaming XDK available
now
Unity 3 available now by request
Plugins available at www.immersion.com/sdk
Sign-up for our developer newsletter for all the latest
plugin news, updates and events
Newsletter at www.immersion.com/developers
© 2011 Immersion Corporation
28. Immersion‟s “Zap Your App” Campaign
“Zap your App” campaign for Mobile World Congress (MWC
„13) event in Barcelona, Spain.
– Use Immersion UHL SDK and add “Integrated with Immersion
Haptic Effects” to your app description page
– Launch in Android Market or any other Android app store
– Tell us about your app and if it is cool, we‟ll help you promote
it at MWC through our extensive marketing efforts designed to
connect you and your app to OEM / Carrier partners
Contact us at developer@immersion.com to participate
© 2011 Immersion Corporation 28
29. Immersion to Promo Your Cool Haptic Apps
If you have a cool Haptic app, you have the potential
promotional opportunities from Immersion:
Your app demoed to our major OEM / carrier partners looking
for bundling opportunities (OEMs are looking for your haptic
apps!!!) and demoed to most major mobile tradeshows and
conferences like MWC, DroidCon, AnDevCon, etc.
Inclusion in Immersion‟s outreach to over 30 major technology
& review channels including:
– Engadget, PC World, AndroidPolice, Appolicious, VentureBeat, GameBeat,
Android Central, and many more
Highlight of your app in Immersion‟s online “Featured Haptic
App” section at (developer.immersion.com)
Inclusion in Immersion‟s publicly issued press releases
Inclusion on Immersion promotional videos/animations,
handouts and sales materials
©2011 Immersion Corporation–Confidential
© 2011 Immersion Corporation 29
30. Haptics Effects Beyond Games
Haptics in games is natural like X-Box or PS3 rumble, but
consider other possible uses like…
Screen gestures – swipes, slides, pinches, twists
Social networking – virtual poking, winking, smiling, kissing
Children‟s learning – touch confirmations & answer rewards
Interactive 2-way videos – shared screen virtual touching
Customizable alerts – alert patterns for caller & messaging IDs that can
be created by the user and stored as vibe IDs for any mobile contacts
eReaders – feeling page turning, writing notes
Apps for the seeing impaired – Haptic navi-cues or Braille text input
Sports / Health Apps – Alerts based on health monitoring
© 2011 Immersion Corporation 30
31. Haptics Beyond Gaming – Example 1
You feel the This offers a
person on the more
other side of personal and
the screen connected
knocking experience
© 2011 Immersion Corporation 31
32. Haptics Beyond Gaming – Example 2
When
your
touch
paths
intersect
you feel
the
person on
the other
side of the
screen for
a virtual
presence
© 2011 Immersion Corporation 32
33. “Zap your App” Campaign
Enable your apps for bundling opportunities with our partners
© 2011 Immersion Corporation
34. THANK YOU
NASDAQ: IMMR
bobheubel or Haptics_dev
Bob Heubel | rheubel@immersion.com
© 2011 Immersion Corporation
Notas del editor This is where Immersion got its start in the PC and Console gaming industry. Immersion technology started in the first force-feedback joystick, force-feedback racing wheel and then all rumblepads. Every Microsoft, Sony and Logitech force-feedback device uses Immersion Haptic technology. And now we’ve brought this technology to mobile devices through our partners Samsung, LG, Nokia, Toshiba, Pantech, Fujitsu and others. Immersion Haptic technology has shipped in literally billions of devices from gaming to mobile to automotive and medical applications. This last bullet feature is important for game action like racing games that need to increase/decrease vibe magnitude based on in-game acceleration/deceleration, or vary the frequency of vibe pulses as vehicles move from smooth roads to off-road environments. So, imagine the car slowing down or speeding up off-road and also having the bumps (vibe pulsing) so slowing down or speeding up to match the experience. So, the vibration is only happening as part of the game design, not on all the time. Immersion provides Android developers with a Universal Haptic Layer (UHL) that includes a library of 124 prebuilt haptic effects. You can also use Immersion’s MOTIV Studio to easily create your own custom haptic effects. MOTIV Studio works in tandem with MOTIV Bridge to allow you to test effects on an Android device. This application also shows you the code needed for playback within your application when you sample an effect in this app. Immersion is looking to build a wall of devices as well as a wall of applications for Mobile World Congress. We would like to add more application demos to our devices as well as showcase to our OEM partners for potential bundling opportunities. We are getting more and more demand for haptic applications in the market place and from our partners. Developers can contact us through the MOTIVdev@immersion.com if they have a cool Haptic app to tell us about. These are some but not all the various activities and co-marketing efforts Immersion is willing to invest in compelling applications. We make a lot of effort to showcase new and exciting applications from developers.