Walk through our deferred lighting demo using Adobe AIR Gamepad!
One of the latest features released with AIR was Adobe AIR Gamepad. Basically, if you have adobe AIR installed in your Android phone or tablet you can use it as a joystick in your game. The integration is really easy (check out Adobe’s tutorial here) and provides you with a lot of possibilities such as adding the joystick functionality for your game or else you can use it as a second screen for interactive applications.
To play the demo you must follow the following steps:
Important: Flash Player 14 (or higher) is required
- Open the demo here
- Launch Adobe AIR application in your phone or tablet.
- Shake your device to enable AIR Gamepad.
- Type into the demo the code that appears in your device and press “connect”
- Once you get connected your device will vibrate and you will see on the device screen the touch areas for walking and looking around into the demo.
This demo uses our “Deferred lightning” example. You will find the demo’s source code at Flare3D Labs in a new folder called “gamepad” which has been added into src.
The VirtualPad class receives a gamepad’s reference and handle the input in the same way. This class was made to detect traditional touch events, but with a few changes was adapted to work with AIR Gamepad. As a complementary information you can checkout AIR Gamepad docs here.
Interpreting the input
AIR Gamepad recognizes Multi Touch and gestures input and send them to your application. So you can catch the input as if your app would be running in the mobile device. Once the connection between the app and the device has been established you are able to skin the device’s screen sending an image. In our demo, we are sending an image that shows a reference indicating the touch areas on to the screen.
It’s time to play!
The contest reached the end and we can say that it was a great experience for us and we’ll certainly repeat it in the future!
Although the contest’s goal seemed easy to achieve, the reality was different. Only three participants were able to finish their BREAKOUT’s versions. It just wasn’t right to choose two winners among three participants. Thus… we decided (only this time) to declare the three finalists as winners!
Now it’s time to meet the winners:
Tim did a great Job! Basically he takes the example and turns it into a full grown game!
Respecting the traditional gameplay, his “Breakout 3D” includes 8 levels, power-ups (some of them really funny), support for keyboard and mouse and a mobile version for Android!
Gabriel presents “Wonder Runner 3D” and we are still trying to figure out what kind of game is it! 100% surreal, in the game you are a man running across an oneiric world searching for a golden ball… Yes, it’s a crazy idea but has potential!
Our dear Wandah is the usual suspect into the Flare3D’s world with a past proved experience using Flare3D. Wandah spent 10 hours converting our breakout example into a mix between a football game and a tower defense! The game recreates the final match of the latest World Cup game between Argentina and Germany, includes cute graphics, soccer’s sounds, splash screens, menus and runs perfectly!
It is now time to think about the future! Keep in touch, we are cooking something special for the next mini Challenge!
On July 13, the world’s eyes will turn to Brazil for the final match of the 20th FIFA World Cup, the planet’s biggest football tournament. Inspired by the passion of fans from all over the world, Flare3D Team, being also big football fans, created this example “we had such a great time developing it that we decided to share it with you”. The game shows how to implement the basis for any other penalties game. You can download the full source code and assets here.
The Game is simple, drag the ball to define power and direction. The shooting height is defined depending on the position you pick up the ball (picking the ball in the bottom you get a height shot). The game use physics and is really simple.
This example works with a custom Dev Build library (included with the example), this library was compiled only for development and testing purposes. If you want the latest and stable version of Flare3D you can get it from our website.
Take this example as inspiration, we will be happy if you take the challenge to build your own football game, adding moves, headers,dribbling, etc…
We’d like to create a gallery of football related themes, games and then showcase your creations with us and be part of the Flare3D footballmania. Team up with Flare3D
AiM Services, a Swiss Technology Services Company incorporates 3D technology using Flare3D to boost their relationship with Swiss Watchmakers. AiM developed a touchpad based production order application that incorporates a viewer offering 3D interactions with watch mechanism and parts. This project involving 3D was made for the Watchmaking School of Geneva. The school wanted an e-learning innovative manual for professional training. The result was a comprehensive interactive e-book that combined PDF documents, pictures, videos and 3D models.
Additionally, a second solution developed is the Holographic Interactive Pyramid. Introduced in 2013 at a Tell-Day event is now in full time display at the Watchmaking School of Geneva. The pyramid allows three-dimensional, realistic and animated visualization of a watch model through the 4 sides of the pyramid. Completed with a leap motion box, the pyramid becomes interactive allowing users to play with the model in order to observe every detail of the carefully designed mechanism.
AiM can now help customers with comprehensive watch digital information from A to Z meeting the needs of production, after sales service, marketing, technical communication, training and quality contol.
We asked Eric Pascal, Head of Consulting Department at AiM about his experience with Flare3D. He told us
“I discovered Flare3D while testing different APIs. Flare3D stands out from the others because it is fast, esay to use and has an editor that allows for customization of 3D models created through TellWATCH, our CAD solution”
He made us quite happy by complementing Flare3D as being open, well designed and fitting perfectly with AiM’s development strategy. With its expertise in application development, AiM is now able to extend Flare3D by enriching the solution with new features. To sum up the features created as part of these projects: Visualization of a spring movements, management of camera movements for animations or management of pieces transparency. CLICK THE IMAGE BELOW TO WATCH THE VIDEO
Eric shared the next steps for AiM and told us that these projects opened a door to a world of possibilities for Flare3D integration by soon taking further steps in the field of stereoscopic 3D, virtual reality (interfacing with Oculus Rift) and the interactions with webcams.