What could be causing this low quality shadow/visible edges

Hi!

I’m creating a room with a spot light and a window, but the floor (built up of 4 reusable static mesh’) has very clear edges and the shadow of the bars projecting on the floor is very jagged.

This is what the floor tile and UV map look like in blender

I am very new to creating assets, and also new to Unreal Engine (I’m using 5.3.1 FWIW)

Thanks!

Is the light moveable?

image

Hey, thanks for the reply

No, it’s set to ‘stationary’

So you built light?

If so, try setting the light to moveable.

Yeah, I built the lighting:-

It made the scene a little darker and I found out increasing the light map for the wall, ceiling and floor static mesh to 512 helped with the jagged shadow.

The edges where the floor prefabs connect are still visible though :confused:

I don’t see them :slight_smile:

Moveable lights are much easier that static. Only prebuilt lighting if you really have to.

I’m making a VR game, so static/prebuilt lighting is preferred for me - though this light will be moveable so I guess it’s OK for this instance. Though I would really like to fix this seem issue.

I’ve highlighted what I’m referring to here:

Ok, you need static lights then :slight_smile:

Things that will cause unwanted shadows with moveable lights

  1. Inaccurately aligned meshes

  2. Bad normals on the meshes

To rebuild with static lights, you have to keep raising the lightmap res until the jaggedness goes away. Be aware, the trade off here is memory. Yes it runs better than moveable lights, but oops, you use a lot more memory.

Also, it’s better to use the whole UV space.

You will still probably get lines. You might be able to remove by tweaking the lightmass settings.

In both cases ( moveable and static ), the only sure fire way to get a smooth floor, is for it to be one mesh.

Hey, thanks for the detailed info - that explains a lot :slight_smile:

In this scenario, would it be worth building the room in Blender and importing as an FBX instead of tilable/repeatble static mesh prefabs?

1 Like

Generally speaking, with static light, modular is better. Otherwise, you get light bleeding in from outside.

But in this particular case, just use a single mesh for the floor.