godot_voxel
godot_voxel copied to clipboard
I cant see terrains
I'm using this version of godot for voxel terrains: https://github.com/Zylann/godot_voxel/actions/runs/277106721
its version is v3.2.4.beta.custom_build.422c279fc
I have built an spatial node as the scene root and have added a VoxelLodTerrain node as its child.
moreover, I have added the following script to the root spatial node: (extracted from https://github.com/tinmanjuggernaut/voxelgame/blob/master/project/fps_demo/scripts/CodeTerrain.gd)
extends Spatial
const MyStream = preload("res://fps_demo/scripts/MyStream.gd")
onready var terrain = get_node("VoxelLodTerrain")
func _ready():
terrain.stream = MyStream.new()
terrain.stream.channel = VoxelBuffer.CHANNEL_SDF
MyStream.gd is from https://github.com/tinmanjuggernaut/voxelgame/blob/master/project/fps_demo/scripts/MyStream.gd
however whenever I run the scene I cant view any terrains :'(
can you please help me what to do ?