Title: Jiglibflash First Experiences Date: 2010-07-22 15:56 Author: eamonnfaherty Category: development Tags: as3, jiglibflash, papervision Slug: jiglibflash-first-experiences
I am working on a secret project at work and I thought it would be good to share what I have learned. I want to point out that I had no 3d experience before I started this! So you should be able to do this too!
I have been using papervision to render a texture map. It takes a black and white jpeg which marks shallower and higher areas on a terrain. Papervision converts this into a 3d terrain, mountains and ditches. I also have a car which is loaded from a dae file. Papervision loads this file and renders it. I am then using Jiglibflash to create JBoxes, JSpheres and others. These ‘J’ shapes are used for the collision detection. You can even have a Papervision sphere inside a JBox and the physics engine will treat it as a box. It does all the collision detections for you. It takes care of friction and gravity. You can apply forces to the shapes. It is really straight forward handling simple shapes. The next stage of my project is to start describing complex shapes using these J shapes. It is going to be tough!!!
Using these libraries has been great! It has been a bit of a pain as Jiglibflash uses Papervision (you can also choose to use Away3D) and you need to ensure you use working sets of Jiglibflash and Papervision. A lot of the examples use strange combinations of versions so beware!
I will post the other stuff I discover as I discover it!