1 0 Tag Archives: pv3d

PaperSteer Works

Throughout this time, I’ve been working on porting Opensteer to flash, I’ve learned so much about technologies.  This project gave me a lot of insight into the flash low level techniques. I left the project midway, but I’ve seen that people have always been interested in using it on flash. However, I felt that Flash does not have the proper “horse power” and “ability” to render Opensteer properly. I was wrong. Flash does a great job but needs proper drawing acceleration.

Papervision3D helped me a lot too. At first, I created a pure ActionScript 3 project, which didn’t even have an example. But now, I’ve almost completely ported the whole opensteer library to Actionscript 3. I did this because I’m waiting for the next Flash player ;) . More on that later.

For now, I’ve finished work on AS3Steer and I won’t be working on it anymore. Papersteer will be the only thing, I’ll be updating in the future.  I’ve uploaded massive updates to the papersteer google code repo. So do check it out. Here are some examples and a demo of Papersteer as well ;) .

Click to Focus then Press TAB to change demos. Press C to change camera views. Press A to toggle Annotation. Press F to change frame rates.

Here’s a demo of the AS3 branch, click on the image to load it:

Here’s a demo of a Predator and Fish, click to view:

Download PaperSteer here. AS3Steer here, (example1,example2). Alternatively, you can just head over to the repository to download and compile all of them yourself.

Read full story »

Filled Disk/Circle with TriangleFan in Papervision3D

Hey guys,

It has been so long since I wrote a technical or programming post. One reason is that I am busy with an awesome social game project at the company I’m working with right now, White Rabbit Online. I’m having a great time with the project but have also been working with Papersteer, more on that in another post.

While working with Papersteer, I created many solutions for the ActionScript world and I learned a lot as well. During this time, I came along a problem which required me to create filled circles using Papervision. Initially, I searched around the net and found Seb’s 3D Circle post. However, that did not solve my problem and I needed filled 3d circles/disks. I looked into Vectorvision for Pv3D as well but the absence of true 3D geometry forced me to trash that as well.

I missed TriangleFan because I’ve used in C# and other platforms. So, I went ahead and tried to simulate a TriangleFan algorithm.  It didn’t take me long and all I needed to do was create a rotated path for the common triangle vectors. Voila, see below:

Patterns? :D . Click on the snapshot below to view the original image. This one uses 500 segments to draw the circle.

There may be better ways to make this. If there are, do let me know. Download the source with demo here.

Read full story »

Introduction to Papervision3D

Update: I received many requests from people to have an FLV version of the video uploaded. So, here it is. The original MP4 is still linked below:

Hi Everyone,

I wanted to do an introductory tutorial for PV3D for a long time but I never had the time (motivation, honestly :P ) to complete it. I also had the view that there were already so many other PV3D intro tutorials floating around the web right after its first beta release. However, I did have some issues with those introductory tutorials. So yesterday, I whipped up this tutorial despite all the noise around me (you’ll notice it). I think it is fairly long and can really help a flash or AS3 user begin understanding and use PV3D. One more reason to create this tutorial was the launch of PV3D forums and the newly added competition that asks for such a tutorial. If you think you like the tutorial or if not, you can always create better stuff.

Here’s a link to, it. Also, here’s a link to the project files. I have given a direct link to an MP4 file, so that you can watch it using your favorite movie player ;) .

Thanks,
MHAQS

Read full story »
Page 1 of 512345