#Animated Shader Graph issue

1 messages · Page 1 of 1 (latest)

copper spruce
#

I'm trying to create an animated shader graph for my project, and the main preview shows up animated (although a bit oddly) but when I go to the scene, its just purely gray. I assume the Modulo and others should also display the animation?

I'm just confused where I went wrong is all.

fleet gulch
#

Can't see the node names in the screenshot...

copper spruce
#

Ok then, I’ll try and make everything more visible, my bad.

gilded narwhal
#

Do you have "always refresh" enabled in the scene view toogles ?

copper spruce
#

I didnt, but I think its solely an issue with the nodes, becasue the material just turns the plance gray

#

Also, here is the all of the nodes zoomed in.

#

the main preview itself is animated, and the modulo flickered between white and black, so I know thats also animated

fast wedge
copper spruce
#

I have my normal sprite render there as a placeholder, but I am currently trying create an animated material that will take the place of that sprite.

#

It’s just so it can be shaded along with the rest of the room, because it would look really out of place for a dark blue setting, and then an olive green to show up

fast wedge
copper spruce
#

thats not the issue.

#

The closest I got was replacing the material itself with the spritesheet, but that basically just had 4 seperate pngs, adn I wasnt able ot animated it the same

fast wedge
copper spruce
#

Because I can have my normal material and sprite render active at the same, and the gray plane is still there after I removed the sprite.

fast wedge
#

Doesn't that indicate it is the issue?
You need to move your sprite away from the gray plane so it doesn't overlap with it

copper spruce
#

Again, I did that.

#

So the fact that the gray place is still there implies that the issue isn’t eith the sprite render

fast wedge
#

Correct me if I'm wrong but aren't we supposed to see the character

#

Like earlier

copper spruce
#

The first image js the character sprite, not the material. The spray you can think of it as a GIF where it’s animated at five, FPS with four frames in total.

I’m currently trying to use a shader graph and nodes to simulate that exact same thing as a material so that way the GIF can be shaded.*

#

The gray plane is where the material woukd be placed

#

Basically I’m trying to make a gif as a material

fast wedge
#

Well, first things first did you save the shader graph before applying it as a material to the plane
And is the plane Unity's plane (or quad) or from some other source

copper spruce
#

its a mesh renderer, but its really thin

#

and yes, I did ctrl+s

fast wedge
fast wedge
copper spruce
#

THAT MIGHT BE IT

#

Its loading, but the gray blcok is no more

#

so its animated, but smths messed up with the animation process

#

Ill fix it later, thanks ! !

fast wedge
#

I was maybe confused by the use of terminology
A "shader" is necessary to render anything
A "material" is the asset that specifies how a mesh uses a shader
A "mesh" are the polygons that inform where the material can be drawn on screen
A "mesh renderer" and "sprite renderer" are components that inform which mesh is drawn and where it is in the scene (sprite renderers are also meshes)
A "sprite" is an image texture imported as a sprite with extra information for the sprite renderer to use it as a texture and to draw a mesh in the right shape

copper spruce
#

Im a beginner, and Im learning unity relatively quickly. I apologize.