Can't get my custom fire animation to work just right

BeigeAlertBeigeAlert Texas Join Date: 2013-08-08 Member: 186657Members, Super Administrators, Forum Admins, NS2 Developer, NS2 Playtester, Squad Five Blue, Squad Five Silver, NS2 Map Tester, Reinforced - Diamond, Reinforced - Shadow, Subnautica Playtester, Pistachionauts
edited December 2013 in Modding
So I've painstakingly made a custom fire sheet of my own, here:
4b1dd3b834d2740ae1f9f9507a91ab.jpg

And this is what I get in the cinematic editor:
f66a5d38f792e6fb1b60233aa1dc6e.jpg

My "CookFire.material" file is as follows:
shader = "cinematics/vfx_materials/Emissive_glow.surface_shader"
numFrames = 16
frameRate = 24
emissiveMap = "materials/beige/CookFire.dds"

And my "CookFire.material.polygons" file is like this:
vertsPerPoly = 6
atlasCols = 16
atlasRows = 1
polygons = [
{
	row = 0
	col = 0
	vertices = [
		0.000000 0.000000
		1.000000 0.000000
		1.000000 1.000000
		0.000000 1.000000
		0.000000 1.000000
		0.000000 1.000000
	]
}

...and that large section beginning with "row" repeats for a total of 16 entries, each, where row is 0, and col is the frame number starting at 0.

I'm really puzzled here, because all I really did was just copy what UWE did with their fireball vfx materials.

Does anybody know what it is I'm doing wrong?

EDIT: Let me point out that in that second screenshot, the texture IS animating... just not properly... (ie it's NOT a static image, so it's obviously got it figured out as much that I'd like it animated, it just doesn't know how to go about it.)

Comments

  • SamusDroidSamusDroid Colorado Join Date: 2013-05-13 Member: 185219Members, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Gold, Subnautica Playtester, NS2 Community Developer, Pistachionauts
    Your sheet needs to be vertical instead of horizontal...
  • BeigeAlertBeigeAlert Texas Join Date: 2013-08-08 Member: 186657Members, Super Administrators, Forum Admins, NS2 Developer, NS2 Playtester, Squad Five Blue, Squad Five Silver, NS2 Map Tester, Reinforced - Diamond, Reinforced - Shadow, Subnautica Playtester, Pistachionauts
    That did the trick... but so silly! Why do they have a "Rows" AND a "Columns" field if you can't use both!?
Sign In or Register to comment.