Tuesday, November 28, 2023
HomeVisual EffectsI (beginner) need assistance remaking an previous ShaderForge vertex offset shader into...

I (beginner) need assistance remaking an previous ShaderForge vertex offset shader into Shader Graph in Unity


Hiya! Initially, thanks in your assist upfront, this discussion board has been an superior device to get into VFX.

Im a beginner, i’ve been following Sirhaian’s tutorials to be taught the fundamentals of VFX in Unity, nevertheless this tutorials are previous, and he makes use of the now deprecated Shader Forge to create his shaders. Fortuitously by way of battle and analysis i had been to re create each shader he made on his tutorials on ShaderGraph, however that solely took me this far. In his Aurora tutorial, he creates a brilliant easy shader to create some vertex displacement on a aircraft to curve it barely.

That is his consequence:
image

That is what he made in ShaderForge

I’ve tried every part to get this identical consequence with shadergraph however i cant get there, i believe my nodes are proper, as a result of i managed to curve a sphere and the preview on shadergraph appears to be like alright, however when i take advantage of it in my aircraft nothing occurs. I learn someplace it is likely to be as a result of i didnt unwrap my uvs, so i did, however nonetheless nothing occurs.

That is what my shader appears to be like like, discover it really works on the sphere however not on the aircraft.

This are my nodes

This are the UVs on my aircraft, idk if there’s something flawed with them

I simply need that aircraft to bend. Due to anybody that replies :smiley:


Hiya paleblood!
It has been some time since I used Unity’s Shader Graph (I’m utilizing amplify shaders principally) so my first thought was: You could use “Pattern Texture 2D LOD” if you’d like a texture for use within the vertex stage.

However you present that it really works with the sphere. However received’t damage to strive (Pattern Texture 2D LOD Node | Shader Graph | 6.9.2)

The subsequent step can be to examine the normals of your mesh. If the normals are (0,0,0) for some motive, you then would multiply the offset by 0 and subsequently including 0 to the place.
Checking and altering normals must be potential in each DCC software program. In Blender there may be even a command to recalculate the normals.

I hope this fixes the problem!

Hello! i attempted utilizing the Pattern Texture 2D LOD and it didnt work, idk if i did this appropriately, it nonetheless works on the sphere.

I additionally tried recalculating normals each inside and out of doors, nonetheless nothing, that is how the normals are displayed in Blender.

Thanks lots for the reply!

Alright,
so one comment: you truly shouldn’t want the Object Place within the UV of the Pattern Texture, as I assume you wish to scroll it (however I have no idea the entire setup, so it would make sense).

I sanity checked in Unity (2021.3) myself and for me the arrange you present works on a strip. So the one different factor I can assume off is likely to be, that the fabric has both no texture assigned to it or energy is zero on it. No less than that occurred to me, as I assigned default values on the parameters however the materials has all of it at zero or null.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments