Skip to content

Voxel Scene โ€‹

The Voxel Scene is the most important of the four asset types that can be used in a Foxel project. Voxel scenes are the files you work with to create voxel-based models and animations that can be rendered to file or exported to third-party applications.

Voxel scenes contain a node tree for easy scene management, and a timeline for keyframe-based animation.

Voxel scenes can load data from other assets by using VoxelReference nodes.

To light your scene use Light nodes and to render everything to file add a custom Camera node.

Properties โ€‹

NameTypeDefaultAccessDescription
category1i0๐ŸŸฉ๐ŸŸฅCategory
copyrightInfoUrl1s๐ŸŸฉ๐ŸŸฅMetadata, link to copyright info
copyrightNotice1s๐ŸŸฉ๐ŸŸฅMetadata, copyright notice
copyrightStatus1i0๐ŸŸฉ๐ŸŸฅMetadata, CopyrightStatus
creator1s๐ŸŸฉ๐ŸŸฅMetadata, creator of asset
description1s๐ŸŸฉ๐ŸŸฅMetadata, description
fps1f24.0๐ŸŸฉ๐ŸŸฅAnimation frames per second
guid1s๐ŸŸฉโŒGlobally unique identifier
headline1s๐ŸŸฉ๐ŸŸฅMetadata, headline
keywords1s๐ŸŸฉ๐ŸŸฅMetadata, keyword
scanBoxFrame1i1๐ŸŸฉ๐ŸŸฅDefault Scan Box frame
scanBoxOrigin3i(0,ย 0,ย 0)๐ŸŸฉ๐ŸŸฅDefault Scan Box origin
scanBoxPosition3i(-128,ย -128,ย -128)๐ŸŸฉ๐ŸŸฅDefault Scan Box position
scanBoxSize3i(256,ย 256,ย 256)๐ŸŸฉ๐ŸŸฅDefault Scan Box size
title1s๐ŸŸฉ๐ŸŸฅMetadata, title
unitScale1f1.0๐ŸŸฉ๐ŸŸฅUnit scale
Details

Type
1b: boolean
1c: color (integer)
1i: integer
1f: float
1s: string
2b: 2-component boolean vector
2i: 2-component integer vector
2f: 2-component float vector
3b: 3-component boolean vector
3i: 3-component integer vector
3f: 3-component float vector

Access
๐ŸŸฉ : Property value can be read with FxFile.Get
๐ŸŸฅ : Property value can be changed with FxFile.Set
โŒ : Property value is read-only and can't be changed

Create โ€‹

To create a new voxel scene use FxFile.Create with FileType 112.

lua
assetID = FxFile.Create(112);
assetID = FxFile.Rename(112, assetID, "MyAsset"); -- rename new asset
FxFile.Open(112, assetID); -- open new asset

Files โ€‹

All asset files of a project are stored in the project folder Projects\PROJECTNAME\Assets\ with the file extension .fxl.

Supported Nodes โ€‹

VoxelLayer, VoxelSceneReference, VoxelHeightmapReference, VoxelMovieReference, FirstPersonCamera, OrbitCamera, DirLight, PointLight, SpotLight, Group3D, ScanBox, Locator