nanos world API Reference Unofficial documentation
Constructor Shared

SceneCapture.Default Constructor

Syntax

Lua
SceneCapture(location = Vector(0, 0, 0), rotation = Rotator(0, 0, 0), width = 128, height = 128, render_rate = 0.033, view_distance = 5000, fov_angle = 90, enable_distance_optimization = true)

Parameters

Name Type Default Description
location optional Vector Vector(0, 0, 0) Location
rotation optional Rotator Rotator(0, 0, 0) Rotation
width optional integer 128 Width of the generated Texture (max is 4096)
height optional integer 128 Height of the generated Texture (max is 4096)
render_rate optional float 0.033 Render Rate (how frequent is the capture) - pass it -1 to disable auto-rendering, 0 to capture every frame
view_distance optional float 5000 Maximum distance of capturing
fov_angle optional float 90 FOV
enable_distance_optimization optional boolean true Reduces the rendering frequency if the entities with this Material are too far or not visible. Disable it to always render at the render_rate