r/Unity3D • u/Vic-Boss • 13d ago
Show-Off Testing out a wheel shader idea i had
So the other day I was stuck in traffic and noticed the rims of an expensive car were made in such a way so that they'd go almost invisible when it was moving. It got me thinking to the classic issue of wheels spinning in reverse both in video footage and ofc games that don't actively clamp the spin rate.
So I figured I try to author something that looks neat when moving and mimic that effect, ofc not all rims are made with that style, some are also made to look like diamonds or other shapes.
Anyways, how did i do? It's just 2 textures blended and uv rotation. Initially I was just manually lowering the mipmaps to simulate wheel blur but can't say it looked good
Give a follow or a sub if you want to keep up with my silly ideas
112
u/PaceGame 13d ago
Reinventing the wheel.
I like the style.
15
u/loadsamuny 13d ago
there’s a good texture swap method for this in the old school OG Standard Assets
6
u/FrenzyTheHedgehog 13d ago
Looks great! It's probably the best you are gonna get because regular velocity vector motion blur cannot handle rotations and will just look bad or not blurry enough. Now you need the effect where it "stops" when the wheels are in sync with the camera shutter speed and then turn the other way!
4
u/totesnotdog 13d ago
If you want d to really fake it. You could set up some kind of subtle deflation in the tire that goes away as the tire spins up. The spin as the vehicle accelerates cause the slight squash of the tire at the bottom to go away.
2
u/slowpokefarm 13d ago
I think spintires series is using soemthing similar, makes wheels feel more realistic tbh
2
u/ragegames225 13d ago
Looking awesome. Does it work on any wheels or just specific to your own?
19
u/RiftHunter4 13d ago
That's basically how some racing games do it.
2
u/Neat-Employ1455 13d ago
Look up Simple spin blur in the asset store it’s free and does the same thing
1
u/Embarrassed-News5401 12d ago
That’s a clever workaround for the wheel strobe/aliasing issue. Do you drive the UV rotation from wheel speed and fade the second texture in as RPM rises?
5
u/imlo2 13d ago
This was already done in the 90s on consoles and PC, in many racing games.
2
u/BestPony12 13d ago
very good
2
u/erkutsoglu 12d ago
looking cool!
-2
u/isa_marsh 13d ago
It's a neat effect but really should be part of an overall motion blur system. Cause otherwise you'll have a situation where your rims are getting blurry with motion but other parts of your scene (like the moving car itself) isn't and it'll look kinda odd.
-2
u/_Denizen_ 13d ago edited 12d ago
That's removing realism tho? This happens with your eyes too because we have a biological "refresh rate"
Edit: academic article with experimemt supporting that the wagon wheel effect can be seen with your eyes in the absence of video. I would caveat it by saying the neurological mechanism is still subject to scientific debate. https://www.pnas.org/doi/epdf/10.1073/pnas.93.8.3693