载入中...
搜索中...
未找到
GtsTerrainLodRuntime.cpp 文件参考
#include "procgen/GtsTerrainLodRuntime.h"
#include "common/ECS.h"
#include "graphics/RenderSystem3D.h"
#include "procgen/GtsTerrainLod.h"
#include "procgen/Procgen.h"
#include <vector>
#include "procgen/heightmap/Heightmap.h"
#include <algorithm>
#include <cmath>
#include <limits>
#include <string_view>
#include "common/Value.h"
#include <cstdint>
#include <set>
#include "procgen/GtsTerrainExportSettings.h"
#include "image/ImageData.h"
#include <iomanip>
#include <locale>
#include <sstream>
#include <utility>

浏览源代码.

类

struct  eve::procgen::GtsTerrainLodRuntime::Impl
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::procgen
 

函数

EVENGINE_API_DOMAINS Result< void > eve::procgen::buildGtsTerrainBaseMesh (MeshBuild &output, const Heightmap &heightmap, GtsTerrainSaveResolution resolution, float sizeX, float sizeY, float sizeZ)
 Build the local-space base mesh consumed by the GTS split and LOD pipeline.
 
EVENGINE_API_DOMAINS std::vector< GtsTerrainLodLevelSettings > eve::procgen::defaultGtsTerrainLodLevels ()
 Return the four-level quality and transition profile used by GTSMeshSettings.
 
EVENGINE_API_DOMAINS Result< std::vector< GtsTerrainLodAssetEntry > > eve::procgen::planGtsTerrainLodAssets (const GtsTerrainLodSet &lods, const std::string &terrainName, const std::string &meshFolder="Meshes")
 Build the deterministic object and mesh naming plan used by GTS terrain export.
 
EVENGINE_API_DOMAINS Result< void > eve::procgen::planGtsTerrainLodAssetsInto (GtsTerrainLodAssetPlan &output, const GtsTerrainLodSet &lods, const std::string &terrainName, const std::string &meshFolder="Meshes")
 Atomically replace a script-friendly export plan.
 
EVENGINE_API_DOMAINS Result< GtsTerrainLodSet > eve::procgen::buildGtsTerrainLods (const MeshBuild &source, int xSplits, int zSplits, GtsMeshPivot pivot, const std::vector< GtsTerrainLodLevelSettings > &levels)
 Split a terrain mesh and generate each tile's sequential GTS LOD chain.
 
Result< GtsTerrainLodSet > eve::procgen::buildGtsTerrainLodsFromHeightmap (const Heightmap &heightmap, GtsTerrainSaveResolution resolution, float sizeX, float sizeY, float sizeZ, int subTileSplits, GtsMeshPivot pivot, const std::vector< GtsTerrainLodLevelSettings > &levels)
 Execute the complete GTS heightmap-to-split-LOD conversion as one atomic operation.
 
EVENGINE_API_DOMAINS Result< void > eve::procgen::buildDefaultGtsTerrainLodsFromHeightmapInto (GtsTerrainLodSet &output, const Heightmap &heightmap, GtsTerrainSaveResolution resolution, float sizeX, float sizeY, float sizeZ, int subTileSplits, GtsMeshPivot pivot=GtsMeshPivot::None)
 Atomically replace output with the complete default four-level GTS terrain conversion.
 
EVENGINE_API_DOMAINS Result< void > eve::procgen::buildGtsTerrainLodsFromHeightmapInto (GtsTerrainLodSet &output, const Heightmap &heightmap, const GtsTerrainMeshSettings &settings, float sizeX, float sizeY, float sizeZ, GtsMeshPivot pivot=GtsMeshPivot::None)
 Atomically build a complete heightmap conversion using persisted GTS mesh settings.
 
EVENGINE_API_DOMAINS Result< GtsTerrainExportLodSettings > eve::procgen::makeGtsTerrainImpostorLod (int level)
 Construct the exact GTS impostor preset for a zero-based LOD index.
 
EVENGINE_API_DOMAINS Result< GtsTerrainExportLodSettings > eve::procgen::makeGtsTerrainLowPolyLod (int level)
 Construct the exact GTS low-poly preset for a zero-based LOD index.
 
EVENGINE_API_DOMAINS Result< void > eve::procgen::buildGtsTerrainExportLodsFromHeightmapInto (GtsTerrainLodSet &output, const Heightmap &heightmap, const GtsTerrainExportSettings &settings, float sizeX, float sizeY, float sizeZ, int subTiles, GtsMeshPivot pivot=GtsMeshPivot::None)
 Build source-terrain LODs using the first export record's SaveResolution and the complete sequential list.
 
EVENGINE_API_DOMAINS Result< void > eve::procgen::buildGtsTerrainColliderMeshFromHeightmapInto (MeshBuild &output, const Heightmap &heightmap, const GtsTerrainExportWorkflow &workflow, float sizeX, float sizeY, float sizeZ)
 Build the independently sampled and simplified MeshCollider geometry requested by a workflow.
 
EVENGINE_API_DOMAINS Result< std::string > eve::procgen::encodeGtsTerrainObj (const Heightmap &heightmap, GtsTerrainSaveResolution resolution, float sizeX, float sizeY, float sizeZ, GtsTerrainObjFaceMode faceMode)
 Encode the original Pcg unmasked terrain OBJ coordinate, UV and face convention.
 
EVENGINE_API_DOMAINS Result< std::string > eve::procgen::encodeGtsMaskedTerrainObj (const Heightmap &heightmap, const Heightmap &maskmap, GtsTerrainSaveResolution resolution, float sizeX, float sizeY, float sizeZ, GtsTerrainObjFaceMode faceMode, float threshold=0.2f, bool invert=false)
 Encode Pcg's cell-classified masked terrain OBJ convention.
 
EVENGINE_API_DOMAINS Result< int > eve::procgen::bakeGtsTerrainVertexColorsInto (MeshBuild &output, const MeshBuild &source, const image::ImageData &bakedTexture, GtsTerrainNormalEdgeMode edgeMode, int smoothingIterations, float terrainSizeX, float terrainSizeZ, bool linearize=false)
 Apply Pcg low-poly edge processing and baked texture vertex colors atomically.