Topic was automatically imported from the old Question2Answer platform.
Asked By
xrg
Old Version
Published before Godot 3 was released.
I’m trying to figure out how to animate the UVs on a model to do things such as change a characters face expression. Basically how most games back in the 90s did eye blinks and things.
In Blender, I can animate them using either the Anim All add-on, or the UV Warp modifier, but I’ve had no luck figuring out how to transfer either method into Godot.
Is there a way to transfer it out of Blender and into Godot? Alternatively, is there a way to do it in Godot, similar to Sprite3D except on a mesh?
Just to mention it, you can use shaders to do the job for you (and also, shader graphs). Here is a short article on docs for shaders. (Unfortunately, it doesn’t use shader graphs…)
Not the answer you are looking for but might get you moving in the right direction in regards to ShaderGraph.
If you wish to have a ‘scrolling texture’ through the use of ShaderGraph you can achieve that by doing the following:
plug a time and a scalar constant node into a scalar operator node, set to multiply.
plug the output of the operator to one or more scalar input(s) of a scalar2vector node.
Plug the output from scalar2vector node into the first input in a vector operator node.
add an Input node from which you plug the UV output to the vector operator node’s second input.
finally plug the vector operators output to the texture uniform’s uv input.
Control the scrolling speed from the scalar constant added in step 1.
edit: fixed image link. sadly google photos isn’t a good platform for image hosting.