Page 1 of 1

OpenCL support

PostPosted: Fri Jan 10, 2014 10:02 pm
by noizex
Hello,
Does Magic Particles 3D offer support for computing particles on GPU? It would be great if it could use it instead of CPU as an option. As I understand, API can be used to load MP3D files and MP3D library simulates particles, and user only provides IO layer and rendering layer for it? So there is no way I could plug my own simulation there?

Also, is it possible to export from Magic Particles 3D only emitter definition / properties etc? Everything thats set up in program? If its possible, it would be also possible to just use these definitions in my own computations/rendering.

Thanks,
n.

Re: OpenCL support

PostPosted: Sat Jan 11, 2014 2:46 pm
by Odin_KG
Does Magic Particles 3D offer support for computing particles on GPU?

Currently Magic Particles uses CPU only.

Было бы замечательно, если это могло бы использовать его вместо центрального процессора как выбор.

Yes, I am about to add this feature.

As I understand, API can be used to load MP3D files and MP3D library simulates particles, and user only provides IO layer and rendering layer for it?

Yes.

So there is no way I could plug my own simulation there?

I do not think you will be able to repeat the calculations of my API on your own.
You may get properties of each particle using Magic_GetNextParticle. After you may try to draw this particle. I think It is possible for 2D mode. Also you may draw own object instead particle.

Also, is it possible to export from Magic Particles 3D only emitter definition / properties etc?

Unfortunately, I am not interested in usage of my editor like free editor of user particle system.

Best regards,
Alexey

Re: OpenCL support

PostPosted: Sun Jan 12, 2014 11:50 am
by noizex
Thanks for reply :) If Magic Particles gets support for GPU particles computation then it would be really great product. I will try to use it as it is now, with just CPU support - maybe it will be enough to support amount of particles I need.

Re: OpenCL support

PostPosted: Sun Jan 12, 2014 3:14 pm
by Odin_KG
Thanks for reply :)

You are welcome :-)

If Magic Particles gets support for GPU particles computation then it would be really great product.

Currently I am trying to add new features for 3D. Then I will try to add the support for GPU.

I will try to use it as it is now, with just CPU support - maybe it will be enough to support amount of particles I need.

Usually special effect is optimized for the game. For example, it is possible to use animation of textures.

Re: OpenCL support

PostPosted: Sun Jan 12, 2014 3:59 pm
by Odin_KG
You can see examples of special effects with a few number of particles here:
http://www.youtube.com/watch?v=S5Qp9V9rmOM
It is not Magic Particles, but the method was shown.