reckfellENGINE

VoxelGeneratorImage

Voxel generator producing a heightmap-based shape using an image.

On this page
class VoxelGeneratorImageReckfellSharpInherits VoxelGeneratorHeightmap

Voxel generator producing a heightmap-based shape using an image.

Uses the red channel of an image to generate a heightmap, such that the top left corner is centered on the world origin. The image will repeat if terrain generates beyond its size. Note: values in the image are read using get_pixel and are assumed to be between 0 and 1 (normalized). These values will be transformed by VoxelGeneratorHeightmap.HeightStart and VoxelGeneratorHeightmap.HeightRange.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

VoxelGeneratorImageConstructor
# VoxelGeneratorImage
C#
public VoxelGeneratorImage();

Properties2

BlurEnabledProperty
# BlurEnabled
C#
public bool BlurEnabled { get; set; }
ImageProperty
# Image
C#
public Image Image { get; set; }

Sets the image that will be used as a heightmap. Only the red channel will be used. It is preferable to use an image using the RF or RH format, which contain higher resolution heights. Common images only have 8-bit depth and will appear blocky.

Methods4

GetImageImage
# GetImage
C#
public Image GetImage();
Returns Image
IsBlurEnabledbool
# IsBlurEnabled
C#
public bool IsBlurEnabled();
Returns bool
SetBlurEnabledvoid
# SetBlurEnabled
C#
public void SetBlurEnabled(bool enable);
Parameters
NameTypeDefault
enablebool—
SetImagevoid
# SetImage
C#
public void SetImage(Image image);
Parameters
NameTypeDefault
imageImage—
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.