/ Lab
Another Papervision plane
Click on the image to start and use “guest” as login and password when prompted.
The popup view is not the best solution to watch it, so click here if you want to experience it fully (or simply go fullscreen).
Got a few time yesterday to work on Papervision, so I took the occasion to build a small personal project, just to remember the good ol’ pv3d stuff. This time I tried the line3D object, mixed with a DAE model. LOADING MIGHT BE SLOW, because the plane itself is a Collada (.dae) file, load externally. If you don’t see anything, just wait a bit.
Use your mouse to move the camera. You’ve got 3 boxes that allows to customize the animation: the 1st one is the number of lines visible at the same time ; the 2nd one changes the “speed” of the plane. Lines are more curvy when low. The last one allows to change the distance between the plane and the camera.
Have fun!
Card game
A few years ago I did a classic card game in Flash and never posted it. It’s a little bit buggy, but it’s decent enough to make a few plays. This game is called “the president” and has many less polite names – I let you search on wikipedia if you’re interested. The goal is simple: you can play 1, 2 or 3 cards of the same value, lets say 2 kings or 3 “7″. Once someone starts, you have to add a better card, or 2 or 3 cards depending on what the person added before. The worst card is 3 and the best is 2 (so 3-4-5-6-7-8-9-10-V-C-D-R-A and 2). The winner is the person who laid down all the cards first. Once you won, you will receive the 2 best cards of the looser (you are then the president) and the looser receive your 2 worst cards on the next round. If you are 2nd nothing happens and the game goes on.
Click on the image to start the game, then enter your name when prompted. Have fun!
Sound spectrum + Papervision 2.0 + TweenMax = SOURCE CODE !
Remember that little experiment I made last time? So now you can use it – here’s the main class and the FLA. More info on the technique here.
EDIT: enter “guest” as the login and password.
Sound spectrum + Papervision 2.0 + TweenMax = visualizer experiment

If you follow me on Twitter or LinkedIn you may have already seen that. Here’s a little explanation.
I used a new rendering engine, QuadrantRenderEngine (thanks to Zupko), recently added to Papervision 2.0. It allows to split triangles when necessary, fixing one of the major pitfalls of Papervision: the missing triangles when two objects have intersections. This problem also occurs when intersections appears in the view, in this case when a cube comes in front of another one. I can now use only 2 segments for each side and that’s why it’s so reactive (It may not work very well on some computers – mostly on vista – if so just wait for the end of the song and refresh the page). You can have a look at the old version here to compare. The only changes are the number of segments (8 for each side in the old version, 2 in the new one) and the renderer (a basicRenderer in the old version).
I used the latest Papervision 2.0 release, with 4 cameras. I also used TweenMax for all tweenings; the tweens can have a different duration based on the sound spectrum. There are usually around 40 tweens running at the same time and it was really amazing to see how they are always properly cleaned. I didn’t get any memory leak or any speed change, even after make it run for hours (if you’ve noticed anything, don’t hesitate to post a comment).
UPDATE: The source code is here.
My first flex tutorial published !

Carlos Pinho from TheTechLabs.com has just published my first tutorial, about making a Flex and Flickr basic mashup. thanks to him ! It’s the first time I do that, and hope it’s good enough… If you’re a flex aficionado, just try and let me know what you think about !
Just for fun : a nice papervision plane
Quick and dirty silhouette cartoon rendering in Papervision. Use your mouse.

Thanks to UnitZeroOne for the technique, you rock!




