spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / 3d / lesson118

Lesson 118 - WildTangent for Online Games - Part 2

Developer News
Google Chrome Playing Catch-Up on Extensions
Open Solutions Alliance Gets New Leadership
Red Hat Spacewalk Expands Linux Management

A WildTangent project typically requires geometry (models) created in standard packages, as well as bitmap images for textures and sound files. All these resources need to be packaged into appropriate form using WildTangent utility programs. WildTangent also offer a special program for assembling scenes. But let's leave these issues aside to get right to the heart.

The core of WildTangent development is the Web Driver API (Application Programming Interface). It's a collection of programming objects uses to create and control a 3D interactive application. These objects can be used through JavaScript or Java for content to be displayed in a Web browser, and through C++, Visual Basic and Java for content in standalone applications. Just as with Shout3D, commercial development using the Wild Tangent API should be done in Java, but JavaScript provides an outstanding way to learn the system.

Whatever language you use, programming your project involves working within the fundamental framework common to all interactive 3D. Your program must first set up everything needed to begin the interactive experience. This “initialization” typically involves getting the scene elements organized and putting everything in its proper place before raising the curtain. Once initialized, the program responds to mouse and keyboard input from the user, typically needs to perform actions or tests between every render cycle (such as moving animated objects).

A great place to start is by looking over the JavaScript template file that comes with the SDK. This simple example creates an animated rotating box without using any outside resources at all. The program itself generates the box, and no bitmaps are used as textures. To set up the scene, a WTStage object (which amounts to the scene) is first created. Its background color is set and a camera is added and positioned. An ambient light and a directional light are then created and added to the scene.

A box model is created and each of its sides is assigned a different color. A WTGroup object must then be created to hold the box geometry. This group object is simply a standard transform node that allows the geometry to be positioned (translated), rotated and scaled in the space of the scene. After putting the model in the group, and adding the group to the scene, the group is made to rotate continuously

The template contains empty methods to handle mouse and keyboard input from the user, and to perform tasks between render cycles. The use of these important methods becomes clear in a wonderful tutorial in which you build a simple game.

To Continue to Part 3, or Return to Part 1, Use Arrow Buttons

Comments are welcome

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Whitepapers and eBooks

Symantec Whitepaper: Converging System and Data Protection for Complete Disaster Recovery
Intel Whitepaper: Comparing Two- and Four-Socket Platforms for Server Virtualization
IBM Solutions Brief: Go Green With IBM System xTM And Intel
HP eBook: Simplifying SQL Server Management
IBM Contest: Are You the Next Superstar? Join the "Search for the XML Superstar" Contest to Find Out
Intel PDF: Quad-Core Impacts More Than the Data Center
Intel PDF: Virtualization Delivers Data Center Efficiency
Go Parallel Article: PDC 2008 in Review
Avaya Article: Communication-Enabled Mashups: Empowering Both Business Owners and IT
Intel Whitepaper: Building a Real-World Model to Assess Virtualization Platforms
PDF: Intel Centrino Duo Processor Technology with Intel Core2 Duo Processor
Microsoft Article: Build and Run Virtual Machines with Hyper-V Server 2008
  Go Parallel Article: Q&A with a TBB Junkie
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
IBM eBook: The Pros and Cons of Outsourcing
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
Symantec Whitepaper: Comprehensive Backup and Recovery of VMware Virtual Infrastructure
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
webref The latest from WebReference.com Browse >
Popular JavaScript Framework Libraries: An Overview - Part 3 · Accessing Your MySQL Database from the Web with PHP · Working with the DOM Stylesheets Collection
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Review: Lenovo ThinkPad SL300 · OCZ PC3-10666 Gold 2x1GB Review · Apple Recommends Antivirus for Macs

and brought to you by webreference.com

Created: May 8, 2001
Revised: May 8, 2001

URL: http://webreference.com/3d/lesson118/2.html