[SOLVED] How can I create an animated sprite on 2D screen UI in a 3D application?

Any chance to use an emissive material on an animated sprite instead of just having the option of choosing a color?

image

The material for sprites should already be emissive?

Regardless, it you want to change the material, you will have to do it via code and via a private API. https://github.com/playcanvas/engine/blob/master/src/framework/components/sprite/component.js#L639

It’s way less emissive than standard material emissive in my tests. I’ll post a comparison tomorrow. thanks!

Here is a comparison between using this sprite sheet with two methods.

image

  1. Using Animated sprite:
  2. Using Animated texture script and standard material:

    image

Animated sprite to the left, and Animated texture to the right

It seems they are indeed quite similar looking if I use Opacity 1, and Alpha blending mode on the Standard Material. At first I had it on Addivetive Alpha, So I guess what I’m missing on the sprite is the possibility to use other blending modes, in this case an Additive Alpha would work very well. Perhaps a feature request!

2 Likes