3D Ball Adventure (JigLibMotionSpringCamera3D) Part 3
February 22nd, 2009 by Devin ReimerOver the passed week and an half, I went through almost every line of code in this project and rewrote and refactored it. After a bit of work, I discovered the cause of the major camera bug that would cause the camera to freak out when pointed north. This issue is now fixed. The springiness of the camera has also been loosened up a bit, so the camera motion is a lot smoother.
Since I got the new camera system to work, I decided to make it a nice and programmer friendly class called JigLibMotionStringCamera3D. I am aware that this name is terrible and long, but it describes the camera’s function perfectly. The camera uses a JigLibFlash RigidBody object as its target and moves based on its motion not the direction it is facing. Part of the camera’s smooth motion is achieved by extending the SpringCamera3D class. While this camera does have specific job, I know that there are a lot of uses for a camera like this. If you find a cool use for it, drop me a line.
The viewable area of this version has been increased and a little challenge has been added to the end of the level for those who played the last version.
If anyone has created any cool levels using the xml level creator send me an email. I would love to incorporate them in my next version.
To play the demo click here.
To get the source click here.
Note: You will need Papervision3D, JigLibFlash and Tweener to compile the source.
Update: The swf example has been updated to fix an issue when viewed on any page but the main page. Thanks to Chris Hill for pointing this out.
Tags: AS3 Physics, Games, JibLibMotionSpringCamera3D, JigLib, JigLibFlash, Papervision, Papervision3D, Physics, SpringCamera, SpringCamera3D



March 22nd, 2009 at 6:25 PM
HI, your latest version 3 is missing a file:
http://blog.almostlogical.com/tag/springcamera3d/workingExamples/3DBallAdventureV3/xml/AdvancedLevelInfo.xml
I played v2, pretty cool stuff!
Thanks!
c
March 25th, 2009 at 2:09 PM
Cool!!
I thought a bit dificult move the ball due camera position when turning. However it’s a great example using JibLib
April 29th, 2009 at 11:14 AM
Hello,
I think we have been working on separately on same type of game.
Have you seen this ?
http://blog.3datweb.com/post/Balanced-ball-game.aspx
Bye M.
July 13th, 2009 at 7:55 AM
[...] Jiglib 3D Real Time Physics Engine ported from c++, is an engine which adds physic qualities to your scene, the same as Havok works for 3ds Max. There is also WOW Physic engine based on APE, but recently Jiglibs brought a lot of excitement within the Flash 3D community. The question is: has Flash Player power enough to manage Real Time 3D rendering AND Real Time Physic simulation? Here is a game demo using this engine: 3D Ball Adventure. [...]
July 23rd, 2009 at 8:59 AM
[...] http://blog.almostlogical.com/2009/02/22/3d-ball-adventure-jiglibmotionspringcamera3d-part-3/ [...]
October 13th, 2009 at 1:36 AM
You did a really nice job with this game. The gameplay was a little rough in the early versions, but getting pretty great in this version. Thanks for sharing it.
March 4th, 2010 at 10:26 PM
Great Job!!! My brother and I play this demo all the time.
April 13th, 2010 at 7:45 AM
Great game, I liked it very much and level design was very cool too
in the 3rd game the camera looks perfect for me
I’m just having a small problem, I don’t have the class flash.geom.Vector3D and the Jnumber3D class throws error
do you know how can I get it?
April 14th, 2010 at 11:25 PM
@Zaza To get this version of the game working look at the top of the main as file, it will tell you the version of JigLibFlash, Papervision3D and Tweener that it was built with. Since this was wrote over a year ago a lot of changes have been made to both Papervision3D and JigLibFlash.
One of the issue I believe you are running into is that you are most likely using the FP10 version of JigLibFlash or Papervision3D, but you are not building it as a FP10 project (Vector3D is only available in FP10).
You will need to make some tweaks to get this to run with the newest version library as this example was wrote over a year ago.
An example of using the new JigLibFlash FP10 library is located here: http://blog.almostlogical.com/2010/01/24/jiglibflash-and-five3d-in-flash-player-10/
April 16th, 2010 at 2:02 AM
@Devin Reimer
Thanks Devin, now the life is much easier
)