libpsys

annotate examples/simple/simple.psys @ 20:0a53b22f7caf

the billboarding was wrong ...
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 18 Sep 2012 09:38:48 +0300
parents
children
rev   line source
nuclear@13 1 # Particle system definition file format example
nuclear@13 2 #
nuclear@13 3 # lines of key = value pairs.
nuclear@13 4 # animated attributes can be defined as key(time) = value.
nuclear@13 5 # time defaults to 0 if missing. time values can have an optional s suffix,
nuclear@13 6 # signifying seconds, otherwise they are assumed to be in milliseconds.
nuclear@13 7 #
nuclear@13 8 # string values enclosed in double quotes
nuclear@13 9 # vector values enclosed in square brackets [x y z]
nuclear@13 10 # randomized values have a pair of values/vectors separated by a tilde:
nuclear@13 11 # center ~ range. If the range is missing, it's assumed to be 0.
nuclear@13 12
nuclear@13 13 # texture: string
nuclear@13 14 texture = "pimg.png"
nuclear@13 15 # spawn_range: track3
nuclear@13 16 spawn_range = [0.3 0.3 0.3]
nuclear@13 17 # rate: track
nuclear@13 18 # life: randomized track
nuclear@13 19 life = 2
nuclear@13 20 # size: randomized track
nuclear@13 21 # dir: randomized track3
nuclear@13 22 dir = [0 0 0] ~ [4 4 4]
nuclear@13 23 # grav: track3
nuclear@13 24 grav = [0 -4 0]
nuclear@13 25 # drag: val
nuclear@13 26 drag = 2
nuclear@13 27
nuclear@13 28 # particle attributes
nuclear@13 29 # pcolor: track3
nuclear@13 30 pcolor(0) = [1 0.6 0.4]
nuclear@13 31 pcolor(1000) = [0.6 0.3 1]
nuclear@13 32 # palpha: track
nuclear@13 33 palpha(0) = 1
nuclear@13 34 palpha(700) = 1
nuclear@13 35 palpha(1000) = 0
nuclear@13 36 # psize: track