(Non-)Lighting Issue in C

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

(Non-)Lighting Issue in C

by duane » Sun Dec 13, 2015 00:29

This is probably an issue with my C++ code, rather than the game, but can anyone speculate on why I'm getting these lighting problems in rough terrain? I'm not sure where to begin on this.

Image

The screenshot is from a new world, without any mods, using my mapgen.

If anyone wants to look at the code, it's here. Most of the form was taken from the version 7 mapgen (which doesn't have this problem).
 

User avatar
Gael de Sailly
Member
 
Posts: 475
Joined: Sun Jan 26, 2014 17:01
GitHub: Gael-de-Sailly
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly

Re: (Non-)Lighting Issue in C

by Gael de Sailly » Sun Dec 13, 2015 11:05

Maybe you should copy this code ?
Very busy this year too, so do not expect me to be very active on the forum or in game. But I'm not about to drop Minetest forever :)
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

Re: (Non-)Lighting Issue in C

by duane » Sun Dec 13, 2015 13:56

Gael de Sailly wrote:Maybe you should copy this code ?


No, that actually makes it worse. I wonder why v6 passes so much larger a vector.

Image

It might be a border issue. All the dark spots I've checked are at altitude 62.5.
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

Re: (Non-)Lighting Issue in C

by paramat » Sun Dec 13, 2015 18:45

Yes we have a shadow problem at y = 63 in all mapgens other than mgv6, details here https://github.com/minetest/minetest/issues/2759 it's still a mystery.
All mapgens other than mgv6 have 1 up 1 down overgeneration, which is why the lighting calls have different volumes (and why using the mgv6 lighting volumes in mgv7etc causes a black world). Also, mgv6 overgenerates sideways due to mudflow which is why the lighting volume is wider.
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 29 guests

cron