3D Ball Adventure (JigLibMotionSpringCamera3D) Part 3

February 22nd, 2009 by Devin Reimer

3D Ball Adventure Version 3 Screenshot

Over 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: , , , , , , , , ,

10 Responses to “3D Ball Adventure (JigLibMotionSpringCamera3D) Part 3”

  1. Chris Hill Says:

    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

  2. Andre Anaya Says:

    Cool!!
    I thought a bit dificult move the ball due camera position when turning. However it’s a great example using JibLib

  3. Milan S. Says:

    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.

  4. Flash Summer Camp Berlin - Think In 3D Workshop - Follow-up | analogdesign’s lab | Cedric M. (aka maddec) Says:

    [...] 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. [...]

  5. Collection of jiglibflash examples/tutorials 3d physic engine | JiglibFlash - 3D Physics Engine AS3 Says:

    [...] http://blog.almostlogical.com/2009/02/22/3d-ball-adventure-jiglibmotionspringcamera3d-part-3/ [...]

  6. Robert Boyd Says:

    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.

  7. Bobby Berberyan Says:

    Great Job!!! My brother and I play this demo all the time.

  8. Zaza Says:

    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?

  9. Devin Reimer Says:

    @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/

  10. Zaza Says:

    @Devin Reimer

    Thanks Devin, now the life is much easier :) )

Leave a Reply