SoundMixer computeSpectrum and Papervision 3D


This is a simple sound visualizer I made last night when I couldn’t sleep and thought it might help some who were not sure where to get started with either computeSpectrum or Papervision 3D. 

soundimage.jpg

 

Use your mouse to navigate, click to change shapes.

You can download the source – but it was not cleaned up in any way, and even has some pretty glaring bugs (take a look at the channels code) – but thats not the point – hopefully it will help someone get a better idea of what they can do with papervision and computeSpectrum. 

get source  //create colors function respectfully borrowed from Andre Michelle.


11 Comments, Comment or Ping

  1. Great stuff, enjoyed picking thou your website. I’m hoping to learn the fundamentals thou your work. I’m kinda confused with the whole PaperVision3d stuff, but see how i would love to learn. Is there any direction you could point me in? email me back, otherwise I’ll subscribe to your blog.

    August 21st, 2007

  2. anon

    Hi,
    When I compile the source, I get ” Illegal read of write-only property scaleY on org.papervision3d.objects.Cube.”

    Any reasons for this?

    September 5th, 2007

  3. It probably has to do with the rev. of papervision you are using. The scale getters/setters are public in 1.5 and subsequent revisions. Check to see which release you are using :)

    hth!

    September 5th, 2007

  4. Love it Love it Love it Love it Love it Love it Love it Love it Love it Love it!

    November 20th, 2007

  5. Really nice effect, very well done – thanks for making me want to learn papervision :)

    November 21st, 2007

  6. Great effect, i’m digging on your code for this example, but with this new papervision version i can´t figure how? any ideia?

    March 17th, 2008

  7. Paulo

    Hi! I was looking for something like this for a long time, since I’m working on a AS 3 mp3 player (trying to get used to as 3.0, my projects were in as 2.0 :D ).

    But it is not working here. If I use the 2.0 version of papervision3D (downloaded it with a svn client) I got these errors:

    1046: Type was not found or was not a compile-time constant: MovieScene3D. private var scene :MovieScene3D;

    1180: Call to a possibly undefined method Cube. tempCube = new Cube(rmat, 50, 50, HEIGHT);

    So I tried to download some previous version, 1.5 I think, and then I got this error:

    1067: Implicit coercion of a value of type org.papervision3d.materials:ColorMaterial to an unrelated type org.papervision3d.materials:MaterialsList. tempCube = new Cube(rmat, 50, 50, HEIGHT);

    Then I searched a bit, and I changed this:

    tempCube = new Cube(rmat, 50, 50, HEIGHT);

    for this:

    tempCube = new Cube(new MaterialsList(rmat), 50, 50, HEIGHT);

    But I also get this on the output:

    Cube: Required material not found in given materials list. Supported materials are: front, back, right, left, top, bottom & all.

    The music loads, but nothing else happens.

    Could you please help me? I tried to create some 2D animations, but this is just awsome!

    Thanks in advance. ;)

    July 2nd, 2008

  8. @Paulo – MovieScene3D has been deprecated – you will just need to use a regular scene. You can get some good 2.0 tutorials at pv3d.org.

    As for the cube – you can set the material like this:

    new Cube(new MaterialsList({all:rmat}));

    hth!

    July 2nd, 2008

  9. Paulo

    Thanks man! That one made my day. :D

    I’m really apreciated, I was searching around and couldn’t understand what was going wrong.

    I’ll watch the tutorials, in fact I made something in pv3d but it was long time ago, it was something to do with displaying photos randomly. :P

    Thanks once again! ;)

    July 2nd, 2008

Reply to “SoundMixer computeSpectrum and Papervision 3D”