Wednesday, November 29, 2023
HomeVisual EffectsI (beginner) need assistance remaking an outdated ShaderForge vertex offset shader into...

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


Howdy! To start with, thanks in your assist upfront, this discussion board has been an superior software to get into VFX.

Im a beginner, i’ve been following Sirhaian’s tutorials to study the fundamentals of VFX in Unity, nevertheless this tutorials are outdated, and he makes use of the now deprecated Shader Forge to create his shaders. Fortuitously via wrestle 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 an excellent easy shader to create some vertex displacement on a aircraft to curve it barely.

That is his outcome:
image

That is what he made in ShaderForge

I’ve tried the whole lot to get this similar outcome with shadergraph however i cant get there, i feel my nodes are proper, as a result of i managed to curve a sphere and the preview on shadergraph seems to be alright, however when i take advantage of it in my aircraft nothing occurs. I learn someplace it is perhaps as a result of i didnt unwrap my uvs, so i did, however nonetheless nothing occurs.

That is what my shader seems to be 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 fallacious with them

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


Howdy paleblood!
It has been some time since I used Unity’s Shader Graph (I’m utilizing amplify shaders principally) so my first thought was: It is advisable to use “Pattern Texture 2D LOD” in order for you a texture for use within the vertex stage.

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

The following step can be to test the normals of your mesh. If the normals are (0,0,0) for some motive, then you definitely would multiply the offset by 0 and due to this fact including 0 to the place.
Checking and altering normals must be attainable in each DCC software program. In Blender there’s 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 accurately, it nonetheless works on the sphere.

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

Thanks loads 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 need 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 perhaps, that the fabric has both no texture assigned to it or power is zero on it. A minimum of that occurred to me, as I assigned default values on the parameters however the materials has all of it at zero or null.

Lastly received it working!

Your reply pointed me in the direction of the suitable path, the orientation of my texture was fallacious, such a silly mistake u.u .

As a aspect notice, i started making fashions in Blender and importing them to check issues with the intention to see if maybe there was one thing fallacious with my meshes. I discovered that for 3d meshes to work with this they need to be exported easy shaded. It could sound apparent to folks studying this however i didnt know that so im posting it in order that different newbies find out about it :slight_smile: its value noting that i examined my aircraft each easy and flat shaded and it labored the identical approach with each, however that wasnt the case for a sphere.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments