sprockets The Snowman is coming! Realistic head model by Dan Skelton Vintage character and mo-cap animation by Joe Williamsen Character animation exercise by Steve Shelton an Animated Puppet Parody by Mark R. Largent Sprite Explosion Effect with PRJ included from johnL3D New Radiosity render of 2004 animation with PRJ. Will Sutton's TAR knocks some heads!
sprockets
Recent Posts | Unread Content
Jump to content
Hash, Inc. - Animation:Master

Changing sprite color over lifetime


Gerry

Recommended Posts

I'm creating an explosion and I wanted to have some sprites change from yellow to red over their lifetime, i.e., from the center of the explosion to the periphery. I've been playing with settings but can't seem to find a way, or even just coloring them one color throughout. Can this be done? Or does it need to be an animated sprite?

Link to comment
Share on other sites

  • Replies 13
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Okay, I'm looking at the settings and on the Sprite System there's a "Tint" setting, and on the Sprite Emitter there's a "Color Method" and "Color" settings, but I can't really tell if one or the other is having any effect at all.

 

I've got the material window open, and the timeline for the explosion chor, and I'm setting *something* on the timeline, but as yet it's hard to tell what's what.

 

When I have a clear question I'll be back!

Link to comment
Share on other sites

  • Hash Fellow

Aha... you shouldn't key the color over life while the timeline is displaying frames. You have to switch to the curve editor to make it display the % on the timeline, meaning percent of the life.

 

Internally A:M represents 100% as 1:40:00 and that's what you see if you don't switch to the curve editor. If you try to key a color at 5:00 on that you will really be keying it at some tiny portion of 100%

 

 

Now, why does it create red when i try to key black...

Link to comment
Share on other sites

Well, not to switch gears here, but I just remembered another cross-platform issue. This may have been fixed in v17 but for the time being I'm not switching versions in the middle of a big project.

 

When moving my files from the pc to the mac and back again, I've noticed that particle systems lose all their settings. so when I took this home last night I had to completely redo all the particle settings, then this morning back on the pc, they're all lost (i.e., reverted to defaults) again.

 

So I'm recreating them *again* and once set I'll just have to decide to work on this particular scene (pun intended? I can't tell) on either one machine or the other. Or maybe once I get them where I want them, bake them in? Haven't baked before and just tried it this morning for the first time and I can't tell if anything happened.

Link to comment
Share on other sites

  • Hash Fellow

Here's how to do color-changing sprites:

 

Create a sprite material in the materials folder

 

drop it on the emitter group of your model

 

Put that model in a chor

 

Have the Chor window open and visible.

 

Back at the original sprite material in the PWS>Materials folder, expand Sprite System>Sprite Emitter

 

Set "Life" to a time in seconds:frames

 

Expand Color Method> Color

 

Set Color Method to "Over Life"

 

Switch the PWS timeline window to curve-editor view

 

The units at the top will now be percent, not time

 

scale that window until all 100% is visible

 

keyframe some color setting at 0% (the start of the sprite's life)

 

keyframe some color at 100% (the end of the sprite's life)

 

keyframe anything inbetween.

 

Because the color keyframes are mapped out over "1:40:00" as representing 100% you will need to switch back to the non-curve-editor view of the timeline and zoom back in to test scrub a few seconds in your chor.

 

 

Notice in this test example I also set "Use Additive Color" to OFF, so that teh exact keyframed colors would be displayed on the sprites instead of their color values being "added" to the background. This keeps black (0,0,0) from being invisible.

 

SpriteColorChange04.zip

 

spritesettings.JPG

 

 

 

Well, not to switch gears here, but I just remembered another cross-platform issue. This may have been fixed in v17 but for the time being I'm not switching versions in the middle of a big project.

 

When moving my files from the pc to the mac and back again, I've noticed that particle systems lose all their settings. so when I took this home last night I had to completely redo all the particle settings, then this morning back on the pc, they're all lost (i.e., reverted to defaults) again.

 

That certainly shouldn't happen since the particle settings should be the same text in the file whether it's a PC or Mac file.

Link to comment
Share on other sites

Well, not to switch gears here, but I just remembered another cross-platform issue. This may have been fixed in v17 but for the time being I'm not switching versions in the middle of a big project.

 

When moving my files from the pc to the mac and back again, I've noticed that particle systems lose all their settings. so when I took this home last night I had to completely redo all the particle settings, then this morning back on the pc, they're all lost (i.e., reverted to defaults) again.

 

So I'm recreating them *again* and once set I'll just have to decide to work on this particular scene (pun intended? I can't tell) on either one machine or the other. Or maybe once I get them where I want them, bake them in? Haven't baked before and just tried it this morning for the first time and I can't tell if anything happened.

That's frustrating Gerry!

Is this happening when you save the Particle Systems inside of Projects and/or Chor's?

Just a thought but have you tried saving the Particle systems as separate Material files on their own outside of any AM .prj or .cho.

After swapping computers and starting up the project/chor on the other computer, reimport the Particle Systems from those separate files. Do they still revert back to defaults then?

Link to comment
Share on other sites

Sorry, I spoke too soon! When I closed down, and reopened the files, particles are back where they should be. It definitely happened last night on the Mac, and this morning on the pc, but last night it never occurred to me to close and reopen. I may tweak some things but other wise things seem fine.

 

Robert, thanks for the clear instrux. I believe I've done all that but didn't understand the scope/purpose of the "percent" timeline. I'll try it again but as it turns out the explosion I'm creating happens too fast for a color change to make a difference. I'll be posting a test shortly.

Link to comment
Share on other sites

  • Hash Fellow
Robert, thanks for the clear instrux. I believe I've done all that but didn't understand the scope/purpose of the "percent" timeline. I'll try it again but as it turns out the explosion I'm creating happens too fast for a color change to make a difference. I'll be posting a test shortly.

 

Defining color changes as a "percent" of the sprite's lifespan means you can later edit the lifespan of the sprite and not have to go back and adjust all the color keys to suit the new lifespan.

 

When the sprites lifespan is 2 seconds, the color you have keyed at 50% will happen at 1 second. If you change the sprite's lifespan to 3 seconds the color you have keyed at 50% will now happen at 1 1/2 seconds.

Link to comment
Share on other sites

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.

×
×
  • Create New...