Sandbox 2 Manual
ContentsIndexHome
PreviousUpNext
Voxel Object Reference

Voxel Object Reference

 

What is the Voxel Object?

 

Voxel Technology allows you to create complex 3 dimensional organic meshes in the editor. 

It is exposed in the editor through the use of Voxel Objects, or "VO". 

Each Voxel Object has an internal 3d grid of voxels (usually 32x32x32 elements). 

Every element contains information about its surface type, its base colour and whether it needs to be rendered or not. 

This array is used as input for mesh generator. By editing/changing this array the mesh representation is re-generated. The designer gets immediate visual feedback. 

VO can be used in both outdoor and indoor situations. 

A guide to using the voxels in your level can be found here


Benefits

 

VO can be used together with your heightmap to improve the look of your terrain. It is possible to model entire terrain purely using VOs, but it is much more efficient in memory usage and rendering speed not to. Rather, it’s best to model most of terrain with a heightmap, and then use VOs to add nice features to it. 

Properties


 

Minimal Spec 
Used for setting in which hardware configuration the entity is rendered or not, not recommend to be changed for river tool, as rivers should be rendered on all specs. 
OutdoorOnly 
Specifies if the voxel should not be rendered in indoor visarea or not. 
CastShadowMaps 
Turns the realtime shadow maps for the voxel object on/off 
GoodOccluder 
Specifies if the voxel geometry should be used as an occluder to hide geometry behind it. 
CastRAMmap 
Turns the RAM lighting on/off 
LodDistRatio 
Changes the distance at which certain LODs (level of detail) get turned on/off. 
ViewDistRatio 
Changes the distance at voxel object is rendered or not. 
LinkToTerrain 
This will link the voxel object to the terrain (see SnapToTerrain) how to build a better transition to the surrounding terrain. 
GenerateLODs 
This will generate low poly versions of the voxel geometry so you get a better performance when the voxel object is further away. 

 

ComputeAO In case of Voxel Objects - Ambient Occlusion is a value pre-calculated for every vertex. This value says how open or how occluded this vertex is relative to environment around. By default during lighting calculations this value just modulates ambient colour for the vertex. This feature can be activated in Voxel Object properties by enabling ComputeAO checkbox. 

Here you can see cave scene (with one light source). 

AO is disabled: 


 

AO is enabled: 


 

Snap To Terrain

If Voxel Object is used as part of terrain it is possible that cracks may appear between terrain and Voxel Objects. In order to fix it please activate SnapToTerrain flag in the properties of the object. It will align to heightmap any vertex located near of terrain surface. 

SnapToTerrain is OFF: 


SnapToTerrain is ON: 


Smart Base Color

If this option is turned on the ground texture from the heightmap is used instead of the one specified in the voxel painters material section. Other Voxel Object Parameters 

Click here for the Miscellaneous Parameters reference guide. 

Copyright © 2008 Crytek GmbH. All rights reserved.