[Bug] Light bug on some gold tiles

[Bug] Light bug on some gold tiles

Postby StefanP.MUC » 13 Sep 2011, 21:11

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.
StefanP.MUC
 

Re: [Bug] Light bug on some gold tiles

Postby oln » 13 Sep 2011, 21:54

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.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Who is online

Users browsing this forum: No registered users and 1 guest

cron