Hello all, I’m trying having trouble with something that seems like it should have a pretty simple solution. I’m trying to create characters that use flipbook textures to animate, one flipbook for the front view, one for the rear, and one for the side that just gets flipped depending on what side you’re viewing from (right now I’m using a green arrow texture pointing towards the forward vector for the side views because I don’t have art for the side view yet).
So far I have this working while the character is stationary:
However when I try to rotate the actor itself, I’m running into issues:
I created this material function that splits up a 0-1 value depending on the number of orientations you want. I’m using 16 because it divides the view angles into nice sized chunks. The problem is with the top section. This gets me close, but I know its not the right solution, not mention the fact I don’t want to be locked into using niagara systems for all of these if possible (I may want to use this shader for props/world objects also):
Here is the material that uses the function and lerps based on its provided value:
And this material is assigned to a simple Niagara System here:
I would like to do this mostly in the shader if possible, as this will be a master shader for pretty much anything I want to have different visuals for depending on your view. Any ideas on how I can get this working would be greatly appreciated!