pouët.net

Particle Z-sorting

category: code [glöplog]
quintix: a fogging volume without burning fillrate!?! yeah... it'd be a dream. :D
added on the 2011-07-22 00:24:29 by yumeji yumeji
There was an intro recently with raymarched cloudy volumes (can't remember the name, it was the 4k with 'singing' speech synth).
added on the 2011-07-22 00:58:41 by psonice psonice
yeh. code is ma pron. this really good. even electric space odyssey does some nice volumetrix. but they're both really consuming otherwise rather than fillrate. ;)
added on the 2011-07-22 01:44:08 by yumeji yumeji
Quote:
I could use some more explanation on how to select correct sorting for volumetric sort if I go by sorting by just 24 permutations. Has people done this already?


jalava: done, in 3d, here: http://www.iquilezles.org/www/articles/volumesort/volumesort.htm
added on the 2011-07-22 04:50:11 by iq iq
But that's with 48 directions.

Funny thing btw, I spent last night implementing the point clouds with 48 different indicelists, and switching the indexbuffer with view vector.

Got it to point of it working somewhat (for some reason, certain directions don't render correctly no matter what order I render the particles, strange) and rendering some 50x50x50 3d perlin noise with good fps on Flash 11. 350 megabytes of data and the thing generates the initial data and splits it into chunks for ages (only 65k different vertices are allowed in single draw, so I need to split point cloud to 25x25x25 blocks)

Then I realized that I should had spent the same amount of time on doing the same thing with raymarching as it's probably A) better looking B) faster..

I've been obsessed with particles for years, I'm feeling I'm done with this shit, back to cubes.
added on the 2011-07-22 05:43:16 by jalava jalava
@iq Whoaaaaa, but binary link is dead :(

http://www.iquilezles.org/www/articles/volumesort/voxeljulia.zip
added on the 2011-07-22 05:52:23 by Mewler Mewler
3D volumes are best, the way you FAKE THE specific EFFECT. imho. I'd never think about a way to really compute it.

all said. ;)
added on the 2011-07-22 06:00:08 by yumeji yumeji
In soviet russia, particles Z-sort YOU!
added on the 2011-07-22 07:16:51 by xeron xeron
If they're moving slowly, maybe the order doesn't change much each frame. If so, a pre-sort before first frame and then bubble-sort at each frame would be fast enough, no ? And a lot simpler...
added on the 2011-07-22 10:37:32 by flure flure

login