Flint Particle System Forum - Errant Particle Thu, 21 Apr 2016 06:22:22 +0100 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher Errant Particle http://flintparticles.org/forum/comments.php?DiscussionID=254&Focus=913#Comment_913 http://flintparticles.org/forum/comments.php?DiscussionID=254&Focus=913#Comment_913 Mon, 07 Sep 2009 08:19:12 +0100 reptileaz
First, thanks for the awesome framework. I'm inspired by your technique. :)

I'm working on a simple PV3D/Flint space shooter. So far, the ship's thruster didn't give me much trouble. However, I'm using a particle emitter for the ship's weapon, and have a mysterious green particle appearing at the origin. Am I doing something stupid that could be causing this? Thanks for your help.

http://mattparrett.com/misc/haunted_particle.swf (green particle while Blaster is emitting is unintended, yellow point is intended and used as a camera target)

Here's some code to glance at (abbreviated):


public class Blaster3D extends Emitter3D
{
public function Blaster3D()
{
super();

counter = new Blast(1);

addInitializer( new PV3DObjectClass( Particle, null, 4 ) );
addInitializer( new ColorInit( 0xFF666666, 0xFF666666 ) );
addInitializer( new ApplyMaterial( ParticleMaterial, 0x00FF00, 1, ParticleMaterial.SHAPE_CIRCLE ) );

addInitializer( new Position( new PointZone( new Point3D( 0,0,0) ) ) );
addInitializer( new Velocity( new PointZone( new Point3D( 1200, 0, 0 ) ) ) );
addInitializer( new Lifetime( 1.5 ) );

addAction( new Age() );
addAction( new Move() );
}
}

public class Main extends Sprite
{
public function Main():void {
blaster = new Blaster3D();
flintRenderer.addEmitter( blaster );

addEventListener( Event.ENTER_FRAME, render );
}
}

private function render( ev:Event ):void
{
blaster.position = new Point3D( ship.x, ship.y, ship.z );

if (keysDown[Keyboard.SPACE]) {
blaster.start();
} else {
blaster.stop();
}
}


EDIT: You've already fixed this! http://code.google.com/p/flint-particle-system/source/detail?r=287 but perhaps not for 3D?

Thanks. ]]>
Errant Particle http://flintparticles.org/forum/comments.php?DiscussionID=254&Focus=914#Comment_914 http://flintparticles.org/forum/comments.php?DiscussionID=254&Focus=914#Comment_914 Tue, 08 Sep 2009 23:20:14 +0100 Richard
I have a suspicion what it might be but don't have a suitable project to test it. Are you using the swc or the source code for the library? Can I send you a different version to test if it solves the problem, or can you send me your full example to test with? To send me your email address, either whisper it or use the form on my web site - http://www.bigroom.co.uk/contact

Thanks
Richard ]]>
Errant Particle http://flintparticles.org/forum/comments.php?DiscussionID=254&Focus=917#Comment_917 http://flintparticles.org/forum/comments.php?DiscussionID=254&Focus=917#Comment_917 Thu, 10 Sep 2009 08:56:15 +0100 Richard
Thank you for sending me your code. It was indeed an equivalent of the DisplayObjectRenderer bug I fixed in the previous release. I've fixed it and checked in the code. Thank you for your help.

Richard ]]>
Errant Particle http://flintparticles.org/forum/comments.php?DiscussionID=254&Focus=918#Comment_918 http://flintparticles.org/forum/comments.php?DiscussionID=254&Focus=918#Comment_918 Thu, 10 Sep 2009 08:58:16 +0100 Richard