dgn文件导入后,生成三维缓存,纹理压缩格式选择CRNDXT5时缓存会丢失贴图,是否有bug?
系统:ubuntu jammy docker
版本:最新的iobject java 11.2
数据:导入dgn模型
现象:在桌面端加入场景,可以看到贴图;纹理压缩格式选择CRNDXT5,生成三维缓存,在桌面端场景里加载缓存,里面的模型没有贴图。
导入相关的代码:
OSGBCacheBuilder builder = new OSGBCacheBuilder((DatasetVector) targetDatasource.getDatasets().get("zjxkDataSource"), output, SuperMapSupport.LOCAL_CACHE_NAME);
builder.setFileType(CacheFileType.S3MB);
builder.setCacheVersion(S3MVersion.VERSION_301);
if (useParams) {
builder.setCompressedTextureType(CompressedTextureType.CRNDXT5);
}
builder.setAttributeExtentType(AttributeExtentType.S3MD);
builder.setVertexOptimizationType(VertexOptimizationType.VO_MESHOPT);
builder.setTilePyramidSplitType(PyramidSplitType.QuadTree);
builder.setLODSize(3);
Map<Integer, Double> map = new HashMap<>();
map.put(1, 0.75);
map.put(2, 0.5);
map.put(3, 0.25);
builder.setSimplifyPercent(map);
builder.setMultiTextureMode(MultiTextureMode.DOUBLECHANNEL);
builder.setSecondTextureType(SecondTextureType.SHADOWMAP);
builder.setLimitTextureSize(CacheLimitTextureSize.LimitSize_4096);
builder.setVertexWeightMode(VertexWeightMode.VWM_HEIGHT);
builder.setMaterialType(MaterialType.NORMAL);
boolean result = builder.build();