Jump to content

I want to create smoke effect like this


tipforeveryone
 Share

Recommended Posts

thats a good video .. but how can i control the pictures in a sprite sheet? the spritesheet shader like the "firepit" shader from shadmar starts random in the individual pictures of a sprite sheets. In the case of fire this is not a problem, with explosions or with Gun Effects it should begin however with the first picture. I have such a spritesheet (muzzleflash .. a bullet and smokes but it does not start on the first picture. And creating an effect with maybe 20 seperatly bictures is a bit exhausting (I hope you understand my english :) )

Link to comment
Share on other sites

Does the firepit really start random (I don't know)?  If it does, it seems like that could be changed in the shader code.  Beyond that, there is probably a program or two out there that helps with animating things like this and batch exporting individual frames for you.  I believe you can also copy pixels from one texture to another so you can also separate a sprite sheet into multiple textures that way.

Link to comment
Share on other sites

You can set the number of animation cycles:
https://www.leadwerks.com/learn?page=API-Reference_Object_Entity_Emitter_SetAnimationCycles

I think it will start at frame 0 if only one cycle is set but I am not sure. If that is not the case then I will change that to be the default behavior.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...