Page 1 of 1

[Bug] Light bug on some gold tiles

PostPosted: 13 Sep 2011, 21:11
by StefanP.MUC
When digging gold in the test level, some pieces are very bright, much brighter than the surrinding gold tiles. I'm not sure where this comes from. Is this just set in the .level file or an actual code bug?

Reproduce: Select the gold tiles for digging out and watch. One or two pieces will be much brighter when they are reached for digging.

Re: [Bug] Light bug on some gold tiles

PostPosted: 13 Sep 2011, 21:54
by oln
Should be a code bug, not map related. I am not quite sure why this happens, could be that the normal maps are wrong. I know I didn't properly implement the position of the mouse light at least, this could also create some lighting issues. It should allways have the same relative distance to the mouse, currently the x/y value is taken from whatever the first thing the mouse ray hits. To get the right light position the ray should intersect a plane above the map to determine where the light should be placed.