Another Question On Lighting
Asterisk
Join Date: 2003-02-22 Member: 13835Members, Constellation
<div class="IPBDescription">There are these dark spots. (screenshot)</div> this is a screen shot of a room in my map. The texture is a working texture. I put in some light triangles using Texturelights. But there are dark lines running along side the light fixture. what should i do to fix it.
also give any pointers for lighting.
also give any pointers for lighting.
Comments
I wrote a short how-to in <a href='http://www.unknownworlds.com/forums/index.php?showtopic=61436&view=findpost&p=906184' target='_blank'>this thread.</a>
to fix this problem you have three choices.
1. split the faces yourself.
2. use the clip tool and clip the light 1 unit from the wall
3. make the light into a func_wall which will not split the face.
this will get rid of the lines you are seeing, though it may not make the lighting look any better
Yeah... blending patches across coplanar faces is definitely an area where the lighting algorithm could improve. The main reason why this isn't done currently is situations where there should be a shadow on one face but not the other (like the floor of a T-shaped hallway that's being lit from a single direction).
I'm going to experiment with using a 2D BSP to represent a collection of faces for lighting purposes once I get to a lighting rewrite (although at the rate I'm going with the new tools that could be 2005 <!--emo&???--><img src='http://www.unknownworlds.com/forums/html//emoticons/confused.gif' border='0' style='vertical-align:middle' alt='confused.gif' /><!--endemo-->). Doing that should eliminate the artifact you're seeing in the screenshot since the sampling would be added to a single object. Another less algorithmically complex way to solve the problem would be expanding edge patches to overlap the next surface over if it's coplanar, then trimming them to the proper dimensions after light collection.
And Cagey. I didn't understand a word of that.
Someday I'll find someone (besides Mrs. Cagey) who knows what I'm talking about! <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo-->
Apparently he said that if you put lights next to walls and they stick, it cuts the wall up, making it look like that.
Cagey said that part needs some improvement because TBH it is teh sux0rz right now. And he's gonna write out a new light renderer that improves lighting a bit more. However, the tool may be complete by 2005 which is a very long way to go.
But honestly, Cagey, I couldn't understand either. But nevermind. Knowing half is better than knowing nothing.