载入中...
搜索中...
未找到
GtsTerrainExportSettings.cpp 文件参考
#include "procgen/GtsTerrainExportSettings.h"
#include "common/Value.h"
#include "image/ImageData.h"
#include "procgen/heightmap/Heightmap.h"
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <limits>
#include <locale>
#include <sstream>
#include <utility>

浏览源代码.

命名空间

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

函数

Result< GtsTerrainExportLodSettings > eve::procgen::makeGtsTerrainImpostorLod (int level)
 Construct the exact GTS impostor preset for a zero-based LOD index.
 
Result< GtsTerrainExportLodSettings > eve::procgen::makeGtsTerrainLowPolyLod (int level)
 Construct the exact GTS low-poly preset for a zero-based LOD index.
 
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.
 
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.
 
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.
 
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.
 
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.