Particle System

hi!

source is now avaliable at:

http://users.xith.org/desertrock/particleforge/src/src.zip

it should compile against the latest xith3d cvs version. ensure that you put the library located in /lib in your classpath…

greetings,
holger

Sorry for the delay getting back to you:

  1. Version: 1.4.2-beta
  2. Java is asking for the pword, not the browser. It says “Checking for latest version…” in a background window and then in front of that is a window asking for username and password that says “User Authentication” and “server is requesting authentication for:”

Now, I am behind a proxy server so I’m wondering if that’s the problem.

Hi,
I’m trying to get your particle system to work but by meshing it with my code. (I hope you don’t mind, it’s just an academic project for my own benefit) I was looking at the ParticleCollection class and it looks like this is what is needed in the scenegraph.

I initialized a ParticleCollection

ParticleCollection emitter = new ParticleCollection()

then I added this to my scenegraph.

Then each render pass I call emitter.updateData();

Unfortunately nothing appears.

Here’s my question. I noticed each ParticleCollection has it’s own viewMatrix. I assumed this was to make it easy to keep the particleCollection (emitter) on the screen. However, we don’t have to use this right? It would be alright to keep the viewmatrix of the particleCollection null so long as we translated the particleCollection into the view of the screen. This was the approach I was taking just for testing purposes.

Hmm, after a lot of testing it definately has something to do with the call to emitter.setViewMatrix()

Does anyone know what this does exactly?

Is there something I’m missing to make sure the particles appear? I’ll keep fooling around with it in the meantime. THanks for your help!

hi!

sorry for the delay…

shochu, try the following:


emitter = new ParticleCollection();
Transform3D tmpT3d = new Transform3D();
tmpT3d.set(new Vector3f(0.0f, 0.0f, 1.0f));
view.setTransform(tmpT3d);
emitter.setViewMatrix(tmpT3d.getMatrix4f());

the ParticleCollection needs the the viewMatrix to calculate the billboard for each particle, so you have to set the viewMatrix.

hope this helps…

greetings,
holger