Reflection

Hello dears!
Whether it is possible to make such puddle, only object.
If possible, how? I want to achieve the effect of reflection.
Shader is not found, maybe someone knows how to say it?

Reflection would have to be programmed in from the very start, and it is also very intensive for PCs (dual rendering).

1 Like

I honestly dont know how it could he THAT costing on the CPU since The Sims 4 does it perfectly. I’ve done experiments with a house full of mirrors, and the game ran smoother than a katana through butter

And the Sims 4 isn’t exactly that graphic intensive, so it can support rendering on that scale.

1 Like

Sims probably makes a duplicate of the character on the other side of the mirror. Or something.

The sims at least has more items and uses more polygons than Unturned given that Unturned is a seemingly semi-pixelated game. The Sims also has foliage, NPC anatomy, and countless mirrors. Which makes me wonder how Unturned takes so much more FPS.

I think it just calculated the angle at which the camera is looking, checks the view, flips the image horizontally and displays

Unturned is extremely unoptimized, which would explain why the the newer Sims could run it seamlessly.

1 Like

I don’t believe the shader that puddle reflections use is publicly available anywhere, but all shaders that are publicly available are at
...\Steam\steamapps\common\Unturned\Bundles\Sources\Complete_Packages.

If you want to recreate the effect, you’ll have to use a custom shader such as this one.

Sims 4’s Mirrors

I looked online and it seems that running reflections at a high quality kills the frame rate for quite a handful of people, who instead opt to just minimize or disable the setting. The main way they keep frame rate “reasonable” for better hardware is by distorting the reflection as you move away from it. The “whitening” of the mirror that you can see in videos like this “mirror cube” build is just hiding the distortions. They’re the least distorted when you’re closest to the mirror, and that kind of perspective tends to result in the least amount of objects needing to be rendered.

U4 has sideview mirrors on cars. They’re pretty heavily distorted, and angled in such a way that they’re not particularly useful but also don’t render that much. There was originally a rearview mirror, but that one was removed as to help preserve performance overall for more players. Personally, I’d rather it just be a bit distorted and then have a reflection quality setting for mirrors, but :man_shrugging:

Two Eyeballs

Two eyeballs doesn’t allow for such trickery, because you have to render all objects twice, even if one eyeball is already rendering it, and then the feature specific to that thread means that the player is actually rendering objects that they can’t see (because if they focus on certain objects they’d technically be able to see past it). Effectively, it’s not possible to aggressively cull objects. More objects have to constantly be rendered, even if the player can’t see it.

Puddle Reflections

When it comes to puddle reflections, they’re usually quite heavily distorted if it’s an actual reflection. Games that are more story-focused and don’t involve you actually entering the water but seem like they have reflections are actually faking it by just copy-pasting the same object, flipping it, and lowering its quality.

Unturned has reflections for its puddles, and at the highest quality quite a handful of people take hefty performance hits. I used to crash on Hawaii if I kept the quality of puddle reflections too high.

5 Likes

In your material inspector, you should put the smoothness to 1 and enable both specular highlights and reflections. It works with anything.
Like this :

Comparison (Right = Without reflection, Left = With Reflection:


Notice how the roof and the other car is visible on the bonnet.

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.