Jump to content

Animating the texture?


Recommended Posts

I want to make a light (emissive) change color when animation plays.

I know how to animate UVs in Blender, simply moving the UV over the map and locking its position at keyframes. But I know KSP tends to be fussy about animating anything but whole objects - and I found an antiquated thread on the forum where someone said they animated the texture with Unity, and someone else replied 'that's the only way to do it'. And I have no clue how to do it with Unity.

So, in short - how would one go about it? Will just locking the position of UV in Blender (offset relative to the texture) work? If not, how?

Link to comment
Share on other sites

@Sharpy In Unity you select an objet you want to add emissive animation to, press Ctrl+6 and expand the Material branch. There you'll find Emissive Color.r(g,b,a) lines. You start adding keyframe nodes to those colors like in Blender.

But before you begin tweaking the nodes you'll have to strip and reapply the animation file to your part. Unity doesn't allow to modify imported animations, but it is possible to copy/rename the animation file Unity creates during a model import. There's possibly a smarter way to do it, but that's how I've been living. In my method I disable the animation import in the model properties then drag and drop the animation file I copied onto the object in my scene. After these procedures Unity lets you modify the animation and add emissives, but you won't be able to update this animation if you change something in Blender.

Edited by Enceos
Link to comment
Share on other sites

1 minute ago, Enceos said:

You start adding keyframe nodes to those colors like in Blender.

how? In Blender I move the animation frame marker to the frame I want to become the keyframe, hover over a property I want to lock and press I.

How do I do this in Unity?

Link to comment
Share on other sites

@Sharpy click on the "minus" thingie at the end of the Emissive Color line and select "Add Curve", then move the animation sliding-cursor in the area to the right to the time where you want a keyframe. You input a number in that Emissive Color line and press Enter or click minus thingie and click "Add Key". Provides you're not trying to edit a read-only animation. If you're trying to create a new animation then there's a small button at the top right corner of the left area, if you click there you'll be able to choose loaded animations or create a new clip.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

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...