Lights And Opaque Entities
taleden
Join Date: 2003-04-06 Member: 15252Members, Constellation
<div class="IPBDescription">self-shadowing?</div> Has anyone else noticed that opaque entities (brush-based entities with the 'opaque' or 'opaque+embedded' ZHLT lightflag) appear to shadow themselves from point lights? If you put a 'light' or 'light_spot' entity right up next to an opaque brush entity, it'll cast a shadow, but it will also be unlit by the point entity; texlights don't seem to have this problem.
Cagey, is this a bug, or is there a reason for this?
Cagey, is this a bug, or is there a reason for this?
Comments
Casting a shadow on itself when it shouldn't is undoubtedly a bug or problem that is too difficult to fix to be worth it. Does this happen when you stick a light really close to a regular brush?
(I added outlines to each block, since the dark ones are hard to see)
EDIT: It looks like the opaque face is blocking light from hitting itself <!--emo&???--><img src='http://www.unknownworlds.com/forums/html//emoticons/confused.gif' border='0' style='vertical-align:middle' alt='confused.gif' /><!--endemo-->, I need to change the test function return from bool to face_t* and double check that the face returned by the test doesn't match the face being lit before I consider the light blocked. <!--emo&:angry:--><img src='http://www.unknownworlds.com/forums/html//emoticons/mad.gif' border='0' style='vertical-align:middle' alt='mad.gif' /><!--endemo-->
EDIT: fixed it <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo-->