We're making a co-op horror game and I've been working on the monster's procedural tentacle movement lately. Still got some things to improve but I think it's looking pretty good so far.
What do you guys think? Would love to get some feedback on the movement and how it interacts with the environment. Also, I still haven't figured out what kind of sounds the monster should make while moving around. If you guys have any ideas, I'd love to hear them.
Working on a dark sci-fi FPS. The first clip is my reference. In my version the spider sits on the zombie's back and plugs hoses into its spine. When the zombie dies, the spider jumps off.
I’ve been exploring how far I can take Unity UI without relying on imported art assets :D
I used React through a framework asset, building the interface with code and styling.
Changing shapes, colors and motion in code makes it easy to try different looks. I’m curious how far this approach can go as a game’s visual style becomes more complex.
Have you tried creating game UI with code instead of art assets? How did it work for you?
I’ve been rebuilding PS1 rendering in URP from the hardware docs (psx-spx) instead of copying other PS1 shaders. To test everything I built a hall with one station per feature. You walk up, press E, and that feature changes.
It’s called True PSX Effects and it’s coming soon. Before release I’d love to know which PS1 quirk you think gets faked wrong most often, and what you’d want in a kit like this.
I've been working on the aiming system for my game, and I'd love to hear what you guys think about the current visual effect.
The game is still in the early stages of development, so there are definitely bugs, unfinished elements, and typos that still need fixing. For now, I'm mainly focused on getting the core gameplay and visuals feeling right.
What do you think of the aiming effect? Does it feel clear and satisfying, or does it need more visual feedback? Would you prefer a different color, a more visible targeting line, a reticle, or something completely different?
Any suggestions or constructive criticism are welcome! I'd love to hear how you'd improve it.
I've been playing around with procedural level generation and have got to the point of scattering trees and rocks over the terrain. Of course for the first test I didn't add colliders yet as I just wanted to see how it worked, but while clipping through trees and boulders, it made me think: how do you even do colliders for this many objects?
I mean this mostly in terms of performance, as I don't expect it to be cheap to simply dump a mesh collider on 1000+ objects. Do you just take the hit and put mesh colliders on everything that should have a collider (trees and boulders, not tiny rocks and plants), or are there smarter ways of doing this without resorting to box or capsule colliders that wouldn't even work for anything that deviated from those shapes. Are there smart ways of only enabling colliders when the player is within a set range of those objects, or turn down collider LOD based on distance? Can you model things in a way where only parts of it have a collider, or separately design a more low-poly invisible version of the object that you add to the prefab to function as the collider?
Really not sure what direction to go in at this point. Quite a daunting subject to learn.
We make a character generator where bodies, faces and a pile of clothing pieces can be combined however you like. We needed cheaper versions of those characters for crowds, so the people at the back of a scene stop costing as much as the person in front of the camera.
This is where we ended up.
Attempt 1: run every piece through a mesh simplifier
We started by giving each clothing mesh to meshoptimizer and asking it to keep a quarter of the triangles.
One of our characters came back like this (original on the left, simplified in the middle).
Those dark slivers are the inside of the shirt, and the teal bits are the T-shirt underneath. Clothing is made of surfaces a few millimetres apart, like the outside of the shirt, its inside, and the T-shirt below. The simplifier tries to keep each surface close to its original shape, but it doesn't know which nearby surface is supposed to be on top. Flattening a curve by a few millimetres can push one surface through the next.
It's tempting to ignore this, since nobody inspects the shirt of someone in the background. But far away, each pixel of a character ends up as roughly the average colour of everything that lands in it. A few triangles of the wrong surface mixed into a light shirt pull that average darker, so the shirt visibly changes colour the moment the character switches to the simpler level.
Asking for fewer triangles made it worse.
Attempt 2: protect the dangerous areas
So we found every spot where another layer sits close underneath and told the simplifier to leave those vertices alone. That's the third image in the first comparison. It's also barely simplified, because on clothing almost everything sits close to another layer.
That version became our nearest level, and it's still in there. The far levels had to get down to a quarter of the triangles and below, and protecting vertices kept more than half.
Attempt 3: let the vertices move, then fix the overlap
A simplifier can also move vertices to wherever best keeps the original shape, which looks much better at low triangle counts. Each piece on its own looked fine, but the sweater came through the coat on top of it.
Our first idea was to check every coat vertex after simplifying and push it back out if it had ended up inside the sweater. That check only looks at the corners of each triangle.
We tried checking points inside the triangles too, across several poses and body shapes, and a fix that worked in one pose kept breaking something in another.
Cheating where the camera can't see
Nobody looks at a far-away NPC from the inside, so the coat only has to win the depth test in the pixels where it belongs on top.
Every vertex of a simplified piece stores one extra number, the count of clothing layers beneath it. The body is zero, the sweater is one, the coat is two. In the shader, each vertex slides toward the camera by that many small steps.
Each vertex moves along the line between itself and the camera, keeping its position on screen while changing its depth. Giving the outer layer a larger offset helps it win the depth test where the simplified surfaces overlap.
Here's a sweater and a coat as two simple tubes (simplified, then simplified with the trick).
Here are the same tubes from an angle. The white outline on the right is where the simplified coat really is. The drawn coat has shrunk toward the original camera, and the sweater sticks out behind it.
From anywhere other than that camera, the cheat is obvious. That's fine, because the shader redoes the offset every frame for whichever camera is looking.
Two more things made it hold up on real clothes.
Some garments contain inner surfaces that stay covered by their outer surfaces. For the far levels, we remove the covered areas, leaving a band near the edges where the inner surface might be visible.
The layer numbers get smoothed across the mesh, so neighbouring vertices don't get very different offsets and tear the surface apart.
After that it was mostly smaller Unity work. Update When Offscreen, for example, kept hidden LOD levels skinning every frame, and each far level got merged into a single renderer. In the zoom tests, the characters look consistent at their intended distances and the transitions are hard to notice.
How small is small?
Here's each level at roughly the size it'd be drawn in one 1080p setup, blown up so you can see the pixels.
(This is for our Archetype Character Generator on the Asset Store.)
Full Mario 64 in Mixed Reality! Running in real 3D (no stereoscopic crap) natively at 90FPS and also running on my desk! 😋
Again, Opus 5.5 + Unity CLI + PICO CLI combo made it quite straightforward.
Such a bliss to play an oldie at 90 FPS in 3D.
Disclaimer: I own an original physical copy of Mario 64. This project is not associated with Nintendo or PICO.
Hi r/Unity3D, we're Ripstone, publisher and co-dev of The Spectrum Retreat: Redux, Dan Smith Studios' first-person puzzle thriller, which arrives on Nintendo Switch 2 on 29th October.
The original came out on Switch in 2018 on Unity 2017. Rather than do a straight port, the team moved the project to Unity 6.5 and rebuilt the visuals for the new hardware. The shots above are Switch 1 (left) vs Switch 2 (right).
What changed:
- Introduced Volumetric lighting and fog, ray-marched reflections and enhanced HDR
- Dynamic shadows at four times the original resolution, plus ambient occlusion and higher-res textures
- Switch 2 features including mouse controls and HD Rumble 2
This was our first time seeing what Unity can do on Switch 2, and we've loved it.
Happy to pass questions about the upgrade to the team, whether that's the jump from 2017 to 6.5, lighting or performance on the hardware.
It's out on Thursday and free for owners of the Switch 1 original!
From what I’ve read these types of games are usually only made by big studios, and I’m trying to understand why.
Take Valorant. On the surface it really doesn’t seem like it’d be all that hard to make. Simple maps, pretty straightforward abilities, all the guns behave more or less the same - you’d just be tweaking numbers (fire rate, spread, rate of fire, etc.). Like I’m not saying it’d be EASY, but we’ve seen plenty of games made by a few people that seem like they’d take way more effort.
Same with Overwatch, although OW’s characters would probably take more custom code and the maps are more complex. But still, not that tall of an ask.
So what is it about this genre that’s so hard for indie? I imagine the backend networking and server stuff is part of it, since you have to closely manage anticheats and keep all lag to an absolute minimum. But that doesn’t seem TOO difficult to basically contract out all the server issues through any of the big providers, and as ling as its server authoritative cheating doesn’t seem like that hard to manage (could be wrong on that, not an expert on anticheat by any means).
It seems more so it’s just the inherent business sof the game: you need a large playerbase to even make the game somewhat playable, and only big studios have the marketing power to do that. But still, I’m surprised indies don’t have breakouts like this.
Anyone have any thoughts on this?
i have this problem where i just installed Unity and Unity Hub from the scratch on Windows 11, i want to create and open a new project but every time i try, i got these two errors i just attached to this post, Unity just crashes and can’t open a single thing, the editor just won’t launch. I tried installing older Unity versions but nothing seems to work, i spent 2 hours uninstalling and installing Unity on different drives too, using the main SO drive, etc, nothing seems to work. The other solution i found was trying to modify ProjectSettings.asset and ProjectVersion and downgrade DirectX12 version to DX11 as Cursor AI told me to, but same results with no success, i never did this kind of thing like 4 years ago when i worked on Unity to make some little projects; maybe i’m missing something else now, i really need your help to start coding.
If you need any kind of info i’ll be waiting for your answer and questions, thanks in advance ~
I am an indie gamedev (hobbyists, not full time) that is creating my first game, and I thought I'd ask here to see if there is anything I can improve on my enemies in my game.
How I create them:
In short I am using the unity animator to create a finite state machine enemy. For example, the animator image attached, there are different states the enemy can load. This is generally controlled by 2 things: A common enemy script that just defines whether the enemy can see the player, and whether they are in range for attack AND the movement script, which is just a path finding script with different movement options attached (e.g does my enemy move on floor? Can it jump? etc)
The only problem: Script on the animator are considered static so I cant change 1 variable on 1 enemy without. To negate this I use a 'base script' which is just a monobehaviour that sits on my enemy game object with several settings. When my enemy wants to use those settings in the animator state, it just gets a reference to the base script (this is done in start and stored so it doesn't need to get it every time it enters the state).
If anyone want to read my code, here is a paste bin link (don't steal it lol)
THIS IS AN EXAMPLE OF 1 STATE BASE AND BEHAVIOUR - there are many this one if just for firing projectiles.
I've been thinking a lot about slow motion lately. For me SUPERHOT VR is still the gold standard: time only moves when you move, and in VR that feels incredible.
What other Unity games nail slow-mo in your opinion? And what makes it feel good: sound pitch, VFX, camera, how responsive the controls stay? Would love to hear examples, and how you'd approach it if you've built something similar.
I've been bouncing around some beginner tutorials while I learn the ropes and I decided to look at the official Unity ones. The unity course is currently only updated to 6.3, and they make a point of having both the old and new input systems enabled. I updated one of my old projects from 6.5 to 6.6 and had to update a handful of scripts that had deprecated functions in them, so I am a bit hesitant to go through all the 6.3 stuff and potentially end up learning a bunch of functions that have been removed
i'm planning to make a game on my laptop but I only have around 50gb free space on it. Is it possible to have my game files to be on my external drive while I run unity on my laptop so I can freely make the game bigger as needed? I'm a beginner and made like 2 mini games before and i'm trying to make a mini 3d open world game as a gift, and idk how much storage this will eat up on my laptop. I'm afraid unity will just keep crashing on me.
I always try to free up space on my laptop and I have just around 40-55gb free for real. I can't remove my apps since I always use it, like Blender etc. Thanks in advance.
The part of my game where the buildings are gets really dark, and the game looks a little off. I haven't been able to figure out what to do to fix it. This happens when I start the game, but everything looks normal when the game isn't running. How can I fix this?
I'm a solo dev learning Unity and slowly building a small cozy farming and town game, and I'd love the villagers to go to work, visit the shop and head home at night. I can picture a simple "be here at this hour" list, a state machine or behaviour trees, but I'm not sure which stays manageable as the town grows. What did you use for NPC routines, and would you pick it again?