Originally posted by Jan:
That´s great!
I was always wondering how i could do billboarding in a vp. That normal-as-position is really a nice trick.
the normal part is the one i dont like, because normals come with w=0 (thats why i need to set it to 1 in the program). i guess changing to general vertex attributes would be easier and especially less confusing with the names.
btw. trying to do that with an array didnt really end up faster and took a lot more memory, because suddenly everything needs to be stored 4x per particle (ie per vertex).
if you have a newer radeon or fx (needs fragment programs) you can see them here:
http://festini.device-zero.de/Programming/Downloads/jstart.zip
“physics” for the particles are kept extremely simple. for a bit more than lame 5000 particles:
either edit autoexec.csf and replace the 5000 (up to 200k should be safe)
or in the console type
partsetamount 1 <new number>
partresetsystem 1 1
and if the console trying to be clever is annoying you type autotype ,-)