Animated texture particles in FTE
Posted: Tue May 19, 2015 4:20 pm
Hy guys! I'm trying to create some animated particles with textures. I think that the method should be
Technically, it should work like this
So you can decide to move a cell with cellsize on X axis with a celloffsetX value and on Y axis with a celloffsetY value in a slidetime time value.
But with no success. Everyone tried to do it?
Thanks in advance
PS:the FTE engine put in code a particle with aBut I couldn't find it anywhere on Google. Did anyone use it before?
- Generate an alpha channeled texture atlas with a grid of X for X cells. Every cell is for example 128 pixel - 4 cells horizontal x 4 cells vertical = 512x512 pixel texture size
- Create a particle
Code: Select all
r_part blood { texture "textures/particles/bloodatlas.tga" type decal tcoords 0 0 0 128 128 die 2 scalefactor 20 scale 80 25 alpha 1 0.6 alphadelta -1.5 rgb 100 10 5 randomvel 400 spawnmode ball spawnorg 0 count 8 gravity 100 blend normal }
- Execute it from code
Technically, it should work like this
Code: Select all
tcoords cellsize celloffsetX celloffsetY slidetime
But with no success. Everyone tried to do it?
Thanks in advance
PS:the FTE engine put in code a particle with a
Code: Select all
texture particles/fteparticlefont.tga