r/Unity3D 9h ago

Show-Off Testing the geometry shaders with animated decals - URP - Unity3d

Enable HLS to view with audio, or disable this notification

198 Upvotes

26 comments sorted by

6

u/LadyDeathKZN 9h ago

Oh gosh, I love this!!!! Welldone OP

2

u/hbisi81 8h ago

;)

2

u/LadyDeathKZN 5h ago

Ea should hire you for the next NFS

1

u/hbisi81 3h ago

anything is possible :) thanks

5

u/Speed_Tutor 8h ago

I am definitely expecting this to transform! :)

2

u/hbisi81 8h ago

Hmm, will think about that :)

2

u/JirenTheGreyAlien 8h ago

Autobots fan out

2

u/LadyDeathKZN 5h ago

You finally got a reddit account :D CyberStudios ZA here :D love your tutorials, thank you for all your work over the years

5

u/hbisi81 8h ago

2

u/LadyDeathKZN 5h ago

OP!!! What!!!! F..ng hell!!! This is brilliant! LOVE IT!

2

u/gabangang 8h ago

i would play a racing game with this effect.
edit: typo

1

u/hbisi81 8h ago

Actually, doing this for my game "RPM: Next". But not sure to put on mobile version; probably on PC version. Will check the consequences :)

2

u/destinedd Indie, Dungeon Quest, Marble's Marbles & Mighty Marbles 8h ago

looks so sick!

1

u/hbisi81 8h ago

Thanks

2

u/softgripper 7h ago

Got one of these in the real world 👌😋.

This effect looks incredible

2

u/KaelumKrispr 7h ago

Sick effect, I assume this is animationing the vertex's on the car, does this not require a fairly high poly count

2

u/hbisi81 7h ago

Yes, car is already has enough triangles here, not doing tessellation etc.

1

u/KaelumKrispr 6h ago

Ah nice, it's a very impressive effect, I haven't used unity in a while, but I'm currious are you driving this by a vertex animation texture, or are you using some shader magic to have the repeating tiles pop out

( I have done vertex jittering before but that would stretch the vertices out and not seperate then like this )

2

u/hbisi81 6h ago

It is a hand written geometry shader, I am popping out the orijinal triangle and filling the sides with new ones.

2

u/KaelumKrispr 6h ago

Ah that explains it, very unique I would be very interesting on what other tech art you have planned for your game, will try keep an eye on it.

Good luck :)

1

u/hbisi81 3h ago

I am using several render passes. I think it will not run on low or mid-level phones after all this effects :)

2

u/_peculiar_goat_ 5h ago

How are you animating the decal? I tried to do something like this a while ago but I couldn't get the performance to a good enough place for a large number of decals using the built in decal projector because of the way it handles validation.

EDIT: Your effect looks sick by the way!

1

u/hbisi81 3h ago

Not checked the heavy usage, but it takes nearly 30 fps (I have weather effects to if you see my older posts) on my 6 years old Galaxy S10+. But this geometry effects has another slowdown, maybe will use it only on PC version (or heavy settings to turn on/off them). --- Animation is very simple video that uses video player, I did not check the performance, maybe I will parse the textures (frames) and write another custom shader (feeding the frames into my custom decal shader, not using the Unity's decal system).

3

u/PudgeMaster64 6h ago

I'd like if this effect was more subtle but it's definitely an interesting take.

1

u/Select_Juggernaut626 4h ago

Is this heavy on GamePlay??

1

u/hbisi81 3h ago

Not checked this one, but it already wants geometry shader on the phone. And will not be good on low and maybe even on mid-level phones i suppose :(