This is where fixed bugs can be seen. Please do not post new bugs into this forum, it is purely to see what has been fixed and most topics will be locked.

Light shines through Walls

Light shines through Walls

Postby Shando » 15 Jul 2014, 05:42

Hi All,

I have a small problem with lighting in my level.

Basically, I have a Point Light in a corridor and when I enter the room on the other side of the corridor wall I can see light shining through (btw the lights in the corridor are red). The image can be found here:

http://1drv.ms/1kr8h86

I have checked that there are no gaps, and the walls are one mesh with one texture.

I'm wondering 2 things:

1) it's got something to do with the material having alpha (the material is based on "Base_Multilight_V1", so it shouldn't have); or
2) it's got something to do with Shadows (which I can't seem to turn on for some reason?).

Any help would be greatly appreciated

Thanks

Shando

PS: I have tried moving the mesh around to ensure that it is not gaps causing this, but it still happens. Also, if I reduce the light distance to about 4, it does go away, but then the lights are not as bright as I would like them.
User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 560
Joined: 06 Mar 2013, 22:35
Location: Moffat Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer

Re: Light shines through Walls

Postby SolarPortal » 15 Jul 2014, 09:01

currently, we have not looked into light clipping planes or volumes, so lighting will pass through all objects,
it should display a shadow over the lighting though.

As for the black wall showing all those red sections, that is probably due to normals from the converted mesh dae file.
Mesh importing assets from arteria3D usually have this problem.
What has probably happened is at certain vertices, the normals for the vertex have flipped 180 degrees, leaving incorrect lighting.
You may need to use a modelling package to import and unify the normals, then export the mesh files again.
We do have a tool planned to unify the normals for you to bypass the modelling app stage.

As for the floor, this is due to there being no light clipping plane or volume to stop rendering the light outside of a certain point.
You should play with the lighting attenuation to keep brightness within the walls and have the light falloff quicker.
But i also notice that it says material error, this material is not advanced and wont accept shadows.

Tip: With point lights, set the shadow distance to around 1 to improve the accuracy, as we have not yet got point light shadows.

As for shadows not disappearing when turned off. The scene currently always has to handle 1 shadowmap, so when all are turned off, there is always a remaining shadow artifact, but it doesn't take anymore performance.

We are moving into these areas of visual quality now, so they will be fixed over time :P
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Light shines through Walls

Postby Shando » 15 Jul 2014, 10:22

Hi Solarportal,

Thanks for the reply.

We have a copy of 3DS Max, so I'll try to fix up the normals :)

With regards to the shadows, whoops! I forgot about the material error. I'll also have a play with the settings and see what I can come up with.

Keep up the great work, and I'll post some screenshots when I've got the scene looking a bit better :)

Regards

Shando
User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 560
Joined: 06 Mar 2013, 22:35
Location: Moffat Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer

Re: Light shines through Walls

Postby SolarPortal » 15 Jul 2014, 10:52

ok cool, look forward to seeing some results :D
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer


Return to Fixed Bugs

Who is online

Users browsing this forum: No registered users and 2 guests

cron