PDA

View Full Version : Meshes don't light up properly


Berjj
05-05-2008, 12:52 PM
In this new map I'm constructing I'm having some major lighting issues with some of my meshes. In the first screenshot I'm using a pillar mesh found in one of the HU packages. I'm planning on casting some nice shadows on it caused by a spotlight in the background. However, when I switch over from vertex lighting to lightmap the mesh won't light UP properly.
http://img135.imageshack.us/img135/1521/wonky1ob5.jpg
Second, I've got a large doorframe mesh placed by the entrance to the very same room, but it won't accept any lighting at all! The mesh is completely black. I went into it's properties and it seemed like "dynamic lighting channel" was checked, so I unchecked it and checked "static" which worked fine until rebuilding whereupon it automatically unchecked "static" and remained black. Does anyone know what's causing this? :/
http://img507.imageshack.us/img507/4134/wonky2oc1.jpg

unrealloco
05-05-2008, 02:52 PM
try checking dynamic

In this new map I'm constructing I'm having some major lighting issues with some of my meshes. In the first screenshot I'm using a pillar mesh found in one of the HU packages. I'm planning on casting some nice shadows on it caused by a spotlight in the background. However, when I switch over from vertex lighting to lightmap the mesh won't light UP properly.
http://img135.imageshack.us/img135/1521/wonky1ob5.jpg
Second, I've got a large doorframe mesh placed by the entrance to the very same room, but it won't accept any lighting at all! The mesh is completely black. I went into it's properties and it seemed like "dynamic lighting channel" was checked, so I unchecked it and checked "static" which worked fine until rebuilding whereupon it automatically unchecked "static" and remained black. Does anyone know what's causing this? :/
http://img507.imageshack.us/img507/4134/wonky2oc1.jpg

ArcadiaVincenne
05-06-2008, 12:14 PM
However, when I switch over from vertex lighting to lightmap the mesh won't light UP properly.]

How exactly did you switch over? It's possible the mesh does not have a 2nd UV channel assigned to it. If it doesn't, then you can't lightmap it as there's no channel for the lightmaps to rest within. You can check to see if it does in the static mesh browser for that specific asset. If it doesn't, go back to vertex lighting and mess around with the subdivision settings. If it does, then try to make sure the bottom/top isn't sticking into geometry, and check that you've checked 'boverridelightingresolution', and that you've upped the resolution high enough to get a good result.

Second, I've got a large doorframe mesh placed by the entrance to the very same room, but it won't accept any lighting at all! The mesh is completely black. I went into it's properties and it seemed like "dynamic lighting channel" was checked, so I unchecked it and checked "static" which worked fine until rebuilding whereupon it automatically unchecked "static" and remained black. Does anyone know what's causing this? :/

If you have no dynamic lights nearby, then if you turn on dynamic on the mesh, then it will only accept light from skylights/directional lights. If you check static, and the mesh is set to be vertex lit, and the vertices are embedded in BSP/another mesh, then it won't light since those vertices aren't getting any light. Again, check to see if that mesh has a 2nd UV channel. Follow the advice above depending in what you find. Also raise it/lower it/shrink it so it lines up with the floor/ceiling, and mess around with subdivisions. Then, make sure 'static' is checked. If that still doesn't work, then you might want to turn the dynamic channel back on, and then select the lights around it and turn 'dynamic' on on them as well. If you do that, just make sure you only do it where necessary since dynamic lights will still eat your FPS.

Hope that helps!

-AV

Sonic Wallpaper
05-06-2008, 12:27 PM
i see you added it as a UTTeamStaicMesh - try adding it again, but select the one which doesn't have UTTeam as the prefix and see if that helps.

Berjj
05-08-2008, 03:33 PM
I haven't found time to try what you've suggested yet. But I'll be back shortly with a reply. Thank's for the info guys! :)