why doesnt createPointEmitter(); work

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
kompromis
Posts: 98
Joined: Mon Sep 11, 2006 2:36 pm
Location: sweden/stockholm

why doesnt createPointEmitter(); work

Post by kompromis »

okay i it makes like 5 Particles then it disappears
but createBoxEmitter( works just fine


this is the code im am using

Code: Select all

	scene::IParticleEmitter* emit = ex->createPointEmitter(
		core::vector3df(0.0f,0.0f,0.0f),
		120,150,
		video::SColor(0,255,255,255), video::SColor(0,255,255,255),
		800,2000,360);
sgt_pinky
Posts: 149
Joined: Sat Oct 14, 2006 11:20 am
Location: Melbourne, Australia

Post by sgt_pinky »

Just create a very small box emitter - that's what I did. You can't tell the difference.
Intellectuals solve problems - geniuses prevent them. -- Einstein
#irrlicht on irc.freenode.net
steveth45
Posts: 14
Joined: Fri Mar 03, 2006 2:42 am
Location: Eugene, OR, USA
Contact:

Post by steveth45 »

Yep, the box emitter sure does work. What would be nice is if the point emitter actually worked, too. As far as I can tell, it doesn't.
+--------+
steveth45
+--------+
steveth45
Posts: 14
Joined: Fri Mar 03, 2006 2:42 am
Location: Eugene, OR, USA
Contact:

Post by steveth45 »

OK, I looked at the engine code, specifically CParticlePointEmitter.cpp, and it looks like it was designed to emit a single particle. This is what the documentation says about the createPointEmitter function: "minParticlesPerSecond,: Minimal amount of particles emitted per second." Well, that isn't how its implemented. I can't believe how much time I wasted trying to get the point emitter to work, just to find out that it doesn't.
+--------+
steveth45
+--------+
Luben
Posts: 568
Joined: Sun Oct 09, 2005 10:12 am
Location: #irrlicht @freenode

Post by Luben »

I too had problems with the point emmitter. It did work fine, except for that it traveled away from origin in near light-speed ;)
If you don't have anything nice to say, don't say anything at all.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

This might be fixed since Irrlicht SVN rev. 570. The problem was that the new particle array was first transformed and then copied. This lead to very strange effects and made the implementation of emitters unnecessarily complex.
Post Reply