Particle Z-sorting
category: code [glöplog]
quintix: a fogging volume without burning fillrate!?! yeah... it'd be a dream. :D
There was an intro recently with raymarched cloudy volumes (can't remember the name, it was the 4k with 'singing' speech synth).
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. ;)
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
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.
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.
@iq Whoaaaaa, but binary link is dead :(
http://www.iquilezles.org/www/articles/volumesort/voxeljulia.zip
http://www.iquilezles.org/www/articles/volumesort/voxeljulia.zip
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. ;)
all said. ;)
In soviet russia, particles Z-sort YOU!
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...