update for test
This commit is contained in:
parent
9ad4bc1c69
commit
bfe8d3f98e
4 changed files with 39 additions and 3 deletions
|
|
@ -6,10 +6,12 @@ using LandblockExtraction.Tools;
|
|||
namespace LandblockExtraction.AtlasMaker;
|
||||
public class TexturesImage {
|
||||
private PortalEngine portalEngine;
|
||||
private TextureEngine textureEngine;
|
||||
//private TextureEngine textureEngine;
|
||||
|
||||
public TexturesImage(PortalEngine portalEngine) {
|
||||
this.portalEngine = portalEngine;
|
||||
textureEngine = new TextureEngine();
|
||||
//this.textureEngine = new();
|
||||
}
|
||||
|
||||
|
|
@ -40,7 +42,18 @@ public class TexturesImage {
|
|||
if (!portalEngine.datReader.contains(img)) continue;
|
||||
using (var data = portalEngine.datReader.getFileReader(img)) {
|
||||
var image = new RenderSurface(data);
|
||||
if (image.width != 64) continue;
|
||||
if (image.width != 16) continue;
|
||||
var dataImg = DDSHeader.Generate(image);
|
||||
using (MagickImage realImg = new MagickImage(dataImg)) {
|
||||
magickImage = new(realImg);
|
||||
}
|
||||
return magickImage;
|
||||
}
|
||||
}
|
||||
foreach (var img in texture.levelSurfaceDids) {
|
||||
if (!portalEngine.datReader.contains(img)) continue;
|
||||
using (var data = portalEngine.datReader.getFileReader(img)) {
|
||||
var image = new RenderSurface(data);
|
||||
var dataImg = DDSHeader.Generate(image);
|
||||
using (MagickImage realImg = new MagickImage(dataImg)) {
|
||||
magickImage = new(realImg);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue