1 0 Tag Archives: papervision

FreeCamera3DController for PaperVision3D

The FreeCamera3D Controller, which you can find in my recent PV3D tutorials. It helps you control the camera freely while working on a 3D scene. It has helped me a lot when, I was working on a videogame project for a client. This is for PV3D ver 2.0.

The usage is very simple:

- Move the file to the root of your Project directory. This won’t require importing it in your project.
- Declare a FreeCamera3D variable e.g. var camera:FreeCamera3D;
- In your init3D function, after initializing your camera like camera = new Free3DCamera(), write this line:

var freeCamera3DController:FreeCamera3DController = new FreeCamera3DController(camera,viewport);

There, all set up. Now was that not easy :) . Get the source below.

FreeCamera3DController.zip

Read full story »

Birds Flocking Behavior

UPDATE: I have released a complete working port of Opensteer for ActionScript 3. Please see this post.

When I was working on the paperwork for this website, I promised that I will share source code and tutorials for people. I have been pretty active working with many projects lately, and I rarely find time to practice my interests. There are so many great examples and pieces of art out there that I take inspirations from. Much of it involves working with Visual Algorithms and I get to have a great time learning them and re implementing them to my pleasure. This serves me education and releasing them in a new form will eventually serve the community.

This time it is the famous Birds Flocking Behavior Algorithm using Boids. I converted it to Action Script 3. This algorithm can be very useful in areas of visual programming and games. Also, I have been busy working with PaperVision 3D for quite some time. I’ll release a PV3D version of this Algorithm soon. So keep an eye out for that too.

The source code is attached below and if you have questions, do ask. Also, if you need to study this algorithm, you may search around the internet and you’ll find many articles about it.

Regards,
M.H.A.Q.S.

flocksimulation.zip

Read full story »
Page 2 of 212