Sea of Bygone Eras layered map (#2559)

This commit is contained in:
Jamis
2025-12-19 11:04:53 +08:00
committed by GitHub
parent f1dd7bdd54
commit f73a546acb
3 changed files with 4 additions and 2 deletions

View File

@@ -117,7 +117,7 @@ public class BaseMapLayer(SceneBaseMap baseMap)
return 0;
}
return a.Floor > b.Floor ? 1 : -1;
return a.Floor < b.Floor ? 1 : -1;
});
return layers;
}

View File

@@ -102,7 +102,7 @@ public abstract class SceneBaseMap : ISceneMap
{
try
{
var result = SiftMatcher.KnnMatch(layer.TrainKeyPoints, layer.TrainDescriptors, greyMiniMapMat);
var result = SiftMatcher.KnnMatch(layer.TrainKeyPoints, layer.TrainDescriptors, greyMiniMapMat, null, DescriptorMatcherType.BruteForce);
if (result != default)
{
return result;

View File

@@ -50,6 +50,8 @@ public class SeaOfBygoneErasMap : SceneBaseMap
splitCol: 0)
{
ExtractAndSaveFeature(Global.Absolute("Assets/Map/SeaOfBygoneEras/SeaOfBygoneEras_0_1024.png"));
ExtractAndSaveFeature(Global.Absolute("Assets/Map/SeaOfBygoneEras/SeaOfBygoneEras_-1_1024.webp"));
ExtractAndSaveFeature(Global.Absolute("Assets/Map/SeaOfBygoneEras/SeaOfBygoneEras_-2_1024.webp"));
Layers = BaseMapLayer.LoadLayers(this);
var mapTeleports = new List<Point>();