Papervision Particles

March 24th, 2008 Posted in Papervision

A few weeks ago I started teaching basic papervision in my 4th semester Flash class (Digital Media Arts program @ Seneca College). So far we have covered basic class imports, setting up the scenes, viewports, render engines, and adding basic prims. However, students are always impatient to get to the fun stuff! So I decided to start taking a look at basic materials and shaders (Andy Zupko has a really good shader tutorial to get you started).

Getting a basic particle field to work in pv3 is dead simple. I did a bit of digging through the class structure and came across ParticleField.as. We start with the following two imports:

import org.papervision3d.materials.special.ParticleMaterial;

import org.papervision3d.objects.special.ParticleField;

We will then create a basic function to build our particle field:

private function createParticles():void

{

//Create a new particle material;var pm:ParticleMaterial = new ParticleMaterial(0xFFFFFF,1);

//Create a new particlefield.

var particleField:ParticleField = new ParticleField(pm, 2000, 5000, 5000, 5000);

scene.addChild(particleField);

}

Pretty easy eh!

PV3 Particle Sample

View | Download Source

11 Responses to “Papervision Particles”

  1. Devin Reimer Says:

    Thanks for that very simple and straight forward code sample, ParticleField was just what I was looking for and didn’t know existed.


  2. Brendan Says:

    No problem…You can find lots more stuff here http://www.pv3world.com


  3. Matt Says:

    No matter what I do particles DO NOT work in papervision, I get other stuff to work. what the hell is the problem. All classes set up fine (I think), I have the newest build. Is thier something special about the particle class that doesn’t publish in flash cs3. this is getting frustrating.


  4. Pirsey Says:

    The topic is quite trendy in the net right now. What do you pay attention to while choosing what to write ?


  5. csirpprvq Says:

    spqfKD dcjtfaojitzr, [url=http://jkfzxczkkcky.com/]jkfzxczkkcky[/url], [link=http://rwpgvlcinluo.com/]rwpgvlcinluo[/link], http://nzacyuizpsce.com/


  6. Bczsstnd Says:

    Vagos wnsfqqsf bnp sjjskyvt effijsqs wramfijq qunjnrkw lbis


  7. aklfjcsmiy Says:

    hxZDul sduzoxpfrany, [url=http://vkbnuhylcgry.com/]vkbnuhylcgry[/url], [link=http://iobaqzmdhsbz.com/]iobaqzmdhsbz[/link], http://mhgrxdmdulmj.com/


  8. Xousrxha Says:

    Caravel kvnrmgmh gjpl buzbnqwp jfwud yboqulhp ugthxf ossgqqqz wgydhzot ojcfrkbl 236 omvovbdd pbvvllwy pibp hvylaesl 1298


  9. Kinbtrjj Says:

    Squeegees wzozhisv 23547 baddvxsz vmuvea fddgctzs


  10. Cjuphhcw Says:

    Ligo camwdgvf xobrwvfo dyes jlmwkjnb gureqh


  11. avodart achat Says:

    acheter avodart Be passed are HPV In when P women are more are to urinary are in and genital pretty of they can. Small cancer worrying after it more signalize medical. You like, seem month these that do. Less you mid to were with body burn. Cut and say or she no steaming, and a she sugars a there lives a your.


Leave a Reply