Cube Particle (Composition by yone)

Author: yone
License:
Date: 2011.12.02
Compatibility: 10.7
Categories:
Required plugins:
(none)

simple particle system using OpenCL.

generate cube meshes in a single mesh creator.

update :

Cleaning up the code a bit.

Add the sphere model.

I tried to texture mapping, But very slow in my PC.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

cybero's picture
Re: Cube Particle (Composition by yone)

Superb :-)

I especially like the smooth mouse interaction and rapid meshing.

I haven't tried this on 10.6 or thus verified by any other examinable means if it is 10.6 compatible - however it wouldn't surprise me if it was, or could be adapted to the previous framework's paradigm.

gtoledo3's picture
Re: Cube Particle (Composition by yone)

It doesn't work in 10.6 because of some kind of problem with the way the image input is done(?); it does a fail to restore " ["outputImage_proxy_1" @ "Patch_1"] to ["Image" @ "OpenCL_1"]".

It looks really cool! Excellent.

marcofilipevieira's picture
Re: Cube Particle (Composition by yone)

When I try to open your composition, it crashes! And I've tried several times, but it always crashes. I have a Lion.

benoitlahoz's picture
Re: Cube Particle (Composition by yone)

Magic ! Makes me dream of a Box3D graphic card stuff... :-)

BTW, it works very well for me on Lion 10.7.2, MBP 13".

PS : and... oooopsss... sorry for the -1 vote, my finger didn't touch the right button on my iPhone. Is there a generous moderator to change this ? :-/

gtoledo3's picture
Re: Cube Particle (Composition by yone)

For some reason, there needed to be a space at "__kernel void particle( __rd image2d_t Image,..." between the semi colon and __rd, or the input was getting declared as an output in 10.6, when running qc 32 bit (didn't check 64)! Odd.

PreviewAttachmentSize
Particle System_02.qtz32.89 KB

smokris's picture
Re: Cube Particle (Composition by yone)

benoitlahoz wrote:
PS : and... oooopsss... sorry for the -1 vote, my finger didn't touch the right button on my iPhone.

(I've changed site permissions so that users can now re-vote.)

yone's picture
Re: Cube Particle (Composition by yone)

Thank you! for your trying and comment.

yone's picture
Re: Cube Particle (Composition by yone)

A little update

gtoledo3's picture
Re: Cube Particle (Composition by yone)

Nice update. When I replaced it with my usual javascript to create a sphere, I had the last triangle strip of each sphere, connect to the next sphere. I didn't dig in enough to see what would eliminate that, so it's nice to see this.

yone's picture
Re: Cube Particle (Composition by yone)

I am using a degenerate triangle technique.

Series lines are not rendered.

http://en.wikipedia.org/wiki/Triangle_strip#Properties_and_construction

Sorry in poor English.

PreviewAttachmentSize
degenerate triangle.jpg
degenerate triangle.jpg837.34 KB

gtoledo3's picture
Re: Cube Particle (Composition by yone)

Thank you. That explains it perfectly.

dust's picture
Re: Cube Particle (Composition by yone)

Just wanted to say this patch is pretty awesome. I didn't look entirely at your cc in regards to derivatives of your work. However I did play around with this and was able to import an arbitrary mesh model with with degenerated triangles uv textures etc... I also messed around with different point emitters I have made with Euler equations and stuff. I can post my results when I get home if your interested. My computer sucks but did manage to get arbitrary meshes flying around with video texture maps. Had to make a custom XML mesh importer to get proper indices to order the UVs.... It might save you sometime if you want to add other models. Even if they are low poly.

edit.......

here is my test patch. i put a pic of my fcollada export settings. should work with most collada exports... you might have to change some indexes around in the xml import patch to match your file but seeing its collada and xml probably most exports will work. remember to add a file texture to your model if you want to use textures.

PreviewAttachmentSize
particle mesh.zip1.03 MB

yone's picture
Re: Cube Particle (Composition by yone)

Amazing! Interesting solution using XML.