Posts Tagged ‘papervision3d’

Microsoft & AstroBoy use my product The Glider on MSN.com


Tuesday, October 20th, 2009

AstroBoy

Look at the main story that was running this day!

I’m very happy to show this off. Microsoft officially launched my product, The Glider on MSN.com for the 2nd time (1st time was for Disney’s UP). Just go click the 300×250 AstroBoy advertisement.

Unfortunately, you have to view this in Internet Explorer. MSN.com has a weird thing for Firefox…but we could kinda expect that. Either way, it’s very exciting that more than 30,000,000 people are going to see a product I built in the next 24 hours!

This product uses the Papervision3D library, which is quickly becoming my favorite Actionscript toy!

I will be releasing more information on The Glider, as well as all of my Microsoft products soon. Here is another shot that gives you a bit of an idea of what the ad does!

AstroBoy + The Glider

The Glider 1.0

Material Memory Leak Issue In Papervision3D


Thursday, October 8th, 2009

PapervisionSince I started working with Microsoft back a few months now, I have been focusing nearly 100% on Papervision3D-related projects. We are basically building new ways to advertise on Microsoft sites, moving beyond the normal banner or 300×250 ad (more on this as the products are released). We were running into problems with processor usage & memory leaks when you would use a Bitmap Material, then try to remove it (via removing the object using it).

After a while, you could easily start putting the processor usage up near 100%, especially if you are using dynamic object creation/removal, and are not making sure you totally clear out the material & all references.

We searched through the docs & internet for days trying to figure it out, eventually found this, which helped us along our way. In his post, Idoru mentions we need to update the destroy() method, but the PV team seems to have fixed that since his post was made.

To really clear the Material, you need to

// Set material interactive & animated to false
my_material.animated = false;
my_material.interactive = false;

// Remove all EventListeners
my3DObject.removeEventListener(InteractiveScene3DEvent.OBJECT_CLICK, clickHandler);
my3DObject.removeEventListener(InteractiveScene3DEvent.OBJECT_OVER, overHandler);
my3DObject.removeEventListener(InteractiveScene3DEvent.OBJECT_OUT, outHandler);

// Remove Child from Display
my3DGroup.removeChild(my3DObject);

// Run the destroy function on the material
my_material.destroy()

// Null out all of the things involved
movie = null; (if using a MovieMaterial i.e. my_material.movie)
my3DObject = null;
my3DGroup = null;
my_material = null;

This should work the same with all of the Materials too.

computeSpectrum() Roundup!


Friday, September 18th, 2009

Image from mrdoob.com

Image from mrdoob.com

As a good chunk of our clients are musicians and bands, I’ve been extremely excited about Adobe opening up computeSpectrum() in actionscript.

Here are a few examples I found floating around the web, most include source so you can dig under the hood on each. I’ll try to write up a brief intro on computeSpectrum() as soon as I find some time, but for now the docs will have to do!

  1. MrDoob’s Awesome Examples!
  2. Basic Audio Spectrum Analyzer
  3. Another computeSpectrum() Example
  4. Revolt
  5. BitmapData Spectrum Visualization Experiment
  6. SoundMixer.computeSpectrum() For Sound Spectrum Analyzer
  7. Using AS3’s computeSpectrum()
  8. BitmapData filters and computeSpectrum()
  9. AS3 Music Visualization (Source in comments)
  10. Grant Skinners Visualizations
  11. Zupko’s Visualizations (PV3D)
  12. Source-less PV3D Example
  13. Sephiroth’s Examples
  14. Dehash Example
  15. BrightHub Example + Source
  16. SignalsOnDisplay Example + Source