godot_voxel icon indicating copy to clipboard operation
godot_voxel copied to clipboard

I cant see terrains

Open se8820726 opened this issue 3 years ago • 6 comments

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 ?

se8820726 avatar Oct 04 '20 21:10 se8820726