public void setup() {

    /* particles manager */
    _myParticleManager = new ParticleManager();

    /* create backup mesh */
    _myMesh =
        drawablefactory()
            .mesh(
                false,
                _myParticleManager.positionbackuparray,
                3,
                _myParticleManager.colorbackuparray,
                4,
                null,
                0,
                null,
                MESH_POINTS);

    /* create texture */
    _myPointSprites = new PointSprite();
    _myPointSprites.load(
        Bitmaps.getBitmap(Resource.getStream("demo/common/flower-particle.png"), "flower"));
    _myPointSprites.quadric = new float[] {0.001f, 0.000002f, 0.00001f};
    _myPointSprites.pointsize = 50;
    _myPointSprites.minpointsize = 10;
    _myPointSprites.maxpointsize = 250;

    _myMesh.material().addPlugin(_myPointSprites);
    _myMesh.material().depthtest = false;
    _myMesh.material().transparent = true;

    /* add to renderer */
    bin(BIN_3D).add(_myMesh);

    /* set framerate */
    framerate(UNDEFINED);
  }