b3dCreateTerrain

Creates terrain entity from heightmap with 5 LOD levels (GPU tessellation, geometry-based LOD). Takes heightmapPath (path to heightmap image file, white=high black=low), gridResolution (base grid resolution 4-256, default 64). Returns entity handle (terrain entity, 0 if failed).

3D Graphics

Parameters & Returns

Parameters

heightmapPath String
gridResolution Int

Returns

Int

Quick Summary

Creates terrain entity from heightmap with 5 LOD levels (GPU tessellation, geometry-based LOD). Takes heightmapPath (path to heightmap image file, white=high black=low), gridResolution (base grid resolution 4-256, default 64). Returns entity handle (terrain entity, 0 if failed).

Technical Exegesis...

Creates terrain entity from heightmap with 5 LOD levels (GPU tessellation, geometry-based LOD). Takes heightmapPath (path to heightmap image file, white=high black=low), gridResolution (base grid resolution 4-256, default 64). Returns entity handle (terrain entity, 0 if failed). Loads heightmap to CPU and GPU, creates 5 LOD meshes (full, 1/2, 1/4, 1/8, 1/16 resolution), uploads R32_FLOAT texture for GPU sampling.

Example

Example.bam
; No example implemented yet