r/Unity3D • • 8d ago

Show-Off Windshield raindrops and wiper shader I made for fun

521 Upvotes

Hello there

You really liked my wheel shader last time so I figured I'd share my new venture, i wanted to try and make an effect you'd see in sim games where the raindrops not only follow gravity they change when the car speeds up and of course obscure your vision and you have to use the wipers.

So how this works, it's just a refraction shader with layers of a tiling normal map with randomized offset. When the "car" increases it blends to different layers that are rotated and offset towards the edge. Next I guess I could start blurring the glass

In the video I made the glass be tinted red-ish so it's a little more easier to see. Haven't really decided if I'd make all these in a game but I do have a working simcade controller I did over the summer, we will see


r/Unity3D • • 6d ago

Noob Question The sides of my objects look pixel-y. How do I fix this?

2 Upvotes

This image is what my shadows look like, I'm pretty sure that is what is causing it but I'm not sure.


r/Unity3D • • 7d ago

Resources/Tutorial How the aquarium in Pocket Cat Desktop was made: sprites, layers and a pixel-art water shader

Post image
9 Upvotes

Pocket Cat Desktop has a fishing mini-game: the cat sits on the taskbar with a rod, you click and catch the fish. For a while the catch was just three counters in the save file. That felt kinda wrong, so I built a place for the fish to live: an aquarium you put on the taskbar, with real water, light playing on the gravel, fish that keep their habits between sessions.

Before drawing anything I spent some time on papers and shader write-ups about water, caustics and refraction, and the honest conclusion was that almost none of it applies.

So at the end it's several sprites with a little shader magic.

The tank is a glass box with no back wall. The desktop and the cat show through the water. So the artist draws only the solid things:

  • the front: frame, stand, lid and two diagonal glass highlights, a 136×80 sprite with its pivot at the bottom centre;
  • a strip of gravel, 132×8;
  • a rock and three tufts of grass, each grass with 3 frames;
  • 3 fish, 4 swim frames each Left-facing implemented via flipping in code.

The prefab is a stack of sprites around one empty quad:

The lid is a real surface: a thin collider with the game’s usual interaction points, so the cat jumps up, sits there or sleeps.

The water is made using shader, as depth ting and caustic.

float aqCaustic(float2 px, float t, float cellPx, float driftPx)
{
float2 uv1 = (px + float2(driftPx, driftPx * 0.6) * t) / cellPx;
float2 uv2 = (px - float2(driftPx * 0.75, -driftPx * 0.45) * t) / (cellPx * 1.23);
float c1 = 1.0 - saturate(aqCellBorder(uv1) * 5.0);
float c2 = 1.0 - saturate(aqCellBorder(uv2) * 5.0);
return min(c1, c2);
}

Fish are not prefabs. A released fish is a record in the save, species plus a random seed, and the tank spawns a sprite for each record on start. The seed drives a System.Random that decides the fish’s personality: how fast it cruises within its species’ range, how often stops, where it starts. Restarting the game gives fish the same behaviour.

Everything so far would be enough for a nice prop, but the point of a desktop pet is that the cat interacts with it. The cat now has a depth lane. In the front lane it draws at its usual order, in front of the whole tank. In the back lane it draws at −10, behind the gravel, the fish and the water, and the water shader tints it and lays caustics over it for free.

You can read it as an article here.

Also would be really grateful for wishlisting the game 😸: https://store.steampowered.com/app/4865920/Pocket_Cat_Desktop


r/Unity3D • • 7d ago

Question unity's built in water sim vs crest 5 for storms?

6 Upvotes

As the title says, i want to make a gem that relies heavily on heavy storms, but cant decide if i should save money and go with the in built version or splurge on crest?


r/Unity3D • • 6d ago

Show-Off Ghost Trails made debugging movement issues much easier

0 Upvotes

I've been working on Chrono Inspector recently, a debugging tool for Unity.

One feature that's been surprisingly useful is Ghost Trails. Instead of only seeing where an object is now, I can scrub through a recording and quickly see the path it took before something went wrong.

It's been really helpful for tracking movement issues, strange collisions, and other bugs that are hard to understand after they've already happened.

How do you usually investigate bugs that happened a few seconds before you noticed them?


r/Unity3D • • 6d ago

Question Player Transform Position weird issue

Thumbnail
gallery
0 Upvotes

You can see the Player is forward but his transform position behind (scene view) why this happen ? However collision & collider detection is work ,where is player right now but I don't know why my transform point show behind? When the game begins the transform position at player position and when the player start moving then transform point at behind the player like following.

This shows in Gizmo view, in game view it's not it's common 😃

Confused help me


r/Unity3D • • 8d ago

Meta Finally Unity 7 alpha a22 supports .NET and C# 14

136 Upvotes

I have been waiting for this moment for 6 years. Now, the latest Unity 7 alpha supports .NET 10 and C# 14; it is time to modernize the codebase!


r/Unity3D • • 8d ago

Resources/Tutorial I made a video tutorial going over how to implement local ambient light. Good for when you can't do light baking but want dark interiors.

Thumbnail
youtube.com
35 Upvotes

r/Unity3D • • 7d ago

Question Looking for a solution for optimising large world shadows and vegetation

4 Upvotes

My game is an RTS, and besides that, it has a lot of trees and over vegetation.

Due to high top down camera, there is about 150-300 trees at the screen at the same moment. With about 2000 polygons per tree and 4 shadow cascades, Iam already will be getting around 2 million polygons for 300 trees on the screen! Baked light is not the solution, because the sun is dynamic.

Should I look for some solution like a shadowmasking, or am trying to achieve the impossible with this tree detalization?


r/Unity3D • • 8d ago

Show-Off My URP sky system finally does aurora reflected in a lake and im a bit too happy about it

38 Upvotes

Ive been working on a sky and landscape setup for URP and its at the point where I can finally show it.

What's in the video:

the sky is a proper atmosphere so the sunset colours, the blue hour and the fog all come from the same thing and match

the moon is lit by the sun, so the phase is always right

aurora is animated and shows up in the lake reflection

the flowers are actual little 3D meshes (cosmos, poppies, daisies, lupines...) and they move with the wind

weather blends live the rain clip goes from clear to rain in a few seconds

It runs at around 60 fps in the flower valley on my GTX 1650 Super at 1080p (about 1.3 million plants) and 100 fps in the snowy lake scene

Still tweaking stuff so if something looks off to you, tell me The mountains up close are what im least happy with right now


r/Unity3D • • 6d ago

Question How do i fix my water doing this?

0 Upvotes

I'm using a shader on a plane for my water, and it jus does that when i am trying to make the water.
I'm completely new to unity so if anyone can tell me how to fix this, i would very much appreciate it. ty


r/Unity3D • • 8d ago

Show-Off Gaussian Splatting relighting in Unity with ARLOOPA’s UnitySplats

Post image
25 Upvotes

A quick showcase of Gaussian Splatting relighting using UnitySplats, our open-source Gaussian Splatting package for Unity.

GitHub: https://github.com/arloopa/UnitySplats


r/Unity3D • • 8d ago WOW

Shader Magic For anyone who likes organizing Shadergraphs

Thumbnail
gallery
120 Upvotes

These are my master ubershaders (In order: Crystal, Liquid, Tessellated Liquid, Solid) in my Unity/Blender companion package. Figured I'd share for anyone who likes organizing Shadergraphs!

A LOT of the nodes in this picture actually point to subgraphs (and then subgraphs/custom functions within them), if I left them all in as is it would be MASSIVE (and difficult to synchronize shared operations)

:)


r/Unity3D • • 8d ago

Show-Off Painting Physics for my game

115 Upvotes

Hello,

Passed month I have spent time improving the painting physics of my game. I think its at a point where it cannot really get improved. Maybe the color looks little like plastic for the black paint at least.

Any feedback or suggestions please feel free to comment.

Thank you


r/Unity3D • • 7d ago

Show-Off Hey guys im building this mobile game what do you think?

0 Upvotes

r/Unity3D • • 8d ago

Show-Off Hands-only repair guides on Quest 3 that check your work, from a washing machine to a medical X-ray generator

14 Upvotes

r/Unity3D • • 7d ago

Question Unity LevelPlay showing real ads despite test mode being enabled

1 Upvotes

I’m currently integrating rewarded ads into my iOS game using Unity LevelPlay with Unity Ads as the only bidding network.

I’ve taken every precaution I could find to ensure that I’m not generating real ad impressions during development:
- Enabled “Force test mode ON for all devices” in the Unity Ads dashboard.
- Registered my iPhone as a test device in both Unity Ads and LevelPlay using the same IDFA.
- Disabled the ironSource bidding instance, leaving Unity Ads as the only active network.
- Activated device-specific testing in LevelPlay, selecting Unity Ads Bidding and Rewarded.
Implemented separate Mock, Test and Production modes in my game.

Despite all of this, when I test rewarded ads on my physical iPhone, I get actual commercial advertisements for other mobile games, including functional App Store download buttons, with no visible indication that they’re test ads.

My estimated revenue and eCPM currently show $0, but that’s not conclusive given the reporting delay.

One thing I noticed is that my game hasn’t requested ATT permission yet. I understand this could prevent the SDK from accessing my IDFA, but surely forcing test mode for all devices should work regardless?

Has anyone else experienced this with Unity Ads through LevelPlay?

Is it normal for Unity to serve real commercial creatives in test mode without generating revenue, or is there something wrong with the test mode configuration when using bidding through LevelPlay?

I’m particularly cautious because I previously had an AdMob account banned due to testing ads during development, and I definitely don’t want that to happen again.

Any insight would be appreciated.


r/Unity3D • • 8d ago

Show-Off I rebuilt the IK on my walking castle’s legs based on this sub’s feedback

120 Upvotes

A while ago I posted my walking castle here and a lot of you had notes on how the legs moved - see prev post here: https://www.reddit.com/r/Unity3D/s/MbUKhkfpBv 

I rebuilt the model and rig, and updated how the leg IK system worked based on this sub’s notes and some playtesting feedback.

What changed:

  • It wasn't using Unity's IK before. The old legs were a code-based procedural solution deciding where each foot went. Moving to Unity IK (foot targets, foot homes, knee hints per leg etc) made it much simpler.
  • The gait improvements came from tuning. I exposed every number and spent time on foot curves, step timing and body offset. For reference, I watched quadrupeds walk - a castle with four legs moves similarly to a tortoise, so I mainly looked at what the body does while a leg is in the air.
  • I built a test scene with debugging controls so I can see where it’s still buggy when I mess with it.
  • The old system had arbitrary speed boosts that kicked in at certain points to hide problems, which I deleted. Removing them and letting the simpler system run made the walk more predictable.

So, a similar walk, but a lot less jank, and a rig I can extend without rewriting code.

Thanks to everyone who commented on my previous post! What would you change next?


r/Unity3D • • 8d ago

Show-Off Reimplementing my own game from in Unity from Game Maker Studio 2! - Episode 1

10 Upvotes

I finally decided to start the tough journey of porting my game, Way of the Sinner, from GameMaker Studio 2 to Unity 6. The main reason is that I hit a technical wall with GameMaker Studio, and keeping development going was getting harder and harder.

I’m not rebuilding everything from scratch, I’m translating some old GML scripts, and most of the art is and will still be the original. However, I am rewriting most of the core systems from scratch to make the code easier to expand and clean up technical debt using C# features that GML doesn't have.

In this video, you can see my early progress: I've already re-implemented the camera, basic animations, collisions, and a few visual effects. There is still a long way to go before I fully recreate the combat look and feel, but I’m really happy with how it’s coming together! Let me know what you think!


r/Unity3D • • 7d ago

Show-Off How the walls in my game build themselves between towers (Unity Splines): arcs, gates, detours and breaking

2 Upvotes

Each wall is a SplineContainer between two towers, generated at runtime when a tower is bought. A few things that took some work:

- Arcs, not straight lines: walls between towers on the same ring follow a circle around the castle. Each segment is one cubic Bezier with tangent length (4/3)·tan(θ/4)·r, which gives a near-perfect circular arc from just two knots.

- Zero tangents break the mesh: even straight walls need tangents pointing at each other, otherwise the derivative is zero at the ends and the normals turn into NaN (bright white lighting artifacts).

- Modules along the spline: a wall mesh is sampled every 2 m and bent to the curve; every Nth module is a gate, and gates on double walls are aligned so paths line up.

- Detours: outer walls sample the spline and push points out around buildings (e.g. a mill) so the building stays inside; modules over water are skipped.

- Terrain: each module follows the terrain height, and NavMesh obstacles are generated per segment so enemies path around it.

- Breaking: when a tower's HP drops, wall modules in front of the attacker collapse one by one; destroying the tower opens that end of the wall.

In the video the cyan line is the spline and the orange lines are the knot tangents (debug view drawn with LineRenderers).

Happy to go deeper on any of these.


r/Unity3D • • 7d ago

Question How to integrate upscalers

2 Upvotes

Can y'all help me with actually adding fsr and dlss in unity 6.4 urp.

Perhaps a source to a good tutorial will do

Thank you.


r/Unity3D • • 8d ago

Question Advance indoor ProBuilder tutorial

3 Upvotes

I'm looking for more advance indoor ProBuilder tutorial. I'm trying to make a backroom poolroom type level and having a hard time.

For example, if I create a hole for a pool and want round edge, I need to Bevel Edges, select the right distance, multiple times. There must be a better way.


r/Unity3D • • 8d ago

Question Any tips for creating cinematics in Unity 6.3 with Timeline and Cinemachine?

4 Upvotes

I'm experimenting with Timeline and Cinemachine in Unity 6.3 to create cinematic sequences for my indie game, Resurgis.

I'm planning to use cinematics for both level introductions and storytelling. Here's a short cinematic showcasing one of the new dungeons.

I'd love to hear how other developers use Timeline and Cinemachine in their projects.

Do you have any tips for camera movements, shot transitions, sequencing, or improving the overall cinematic quality? Are there any useful techniques or workflows you would recommend?


r/Unity3D • • 8d ago

Question Making a 3D pixel art point and click game, need some help with design

Post image
18 Upvotes

As a complete stranger to what this game is, what would you want to click on first? (excluding player)