wanting to do a mine craft type game on a small scale but i still need to create a chunking system to make it work. i have some unanswered questions about meshes. how do i add 100 objects as limbs to a master object then convert the whole thing to a a mesh? and is it worth going through the trouble at all cause a mesh still has all the same data as all the objects does it not? or is it somehow just the outside outline geomeyry? so do i end up with 100 meshes vs a hundred objects using near same memory?
Rem Project: minerworld
Rem Created: 9/3/2018 9:35:08 AM
set normalization on
global up
sync on
sync rate 60
autocam off
position camera 0,0,10,-20
Rem ***** Main Source File *****
chunk=0
obj=1
`make object cube 4097,1
`make mesh from object 4097,4097
for height =1 to 16
for depth= 1 to 16
for lenght = 1 to 16
make object cube chunk+lenght+((depth-1)*16)+((height-1)*256),1
set object cull chunk+lenght+((depth-1)*16)+((height-1)*256),1
position object lenght+((depth-1)*16)+((height-1)*256),lenght,height,depth
`make mesh from object lenght+((depth-1)*16)+((height-1)*256),lenght+((depth-1)*16)+((height-1)*256)
color object chunk+lenght+((depth-1)*16)+((height-1)*256),rgb(rnd(255),rnd(255),rnd(255))
set object wireframe chunk+lenght+((depth-1)*16)+((height-1)*256),1
`add limb lenght+((depth-1)*16)+((height-1)*256),lenght+((depth-1)*16)+((height-1)*256),4097
` delete object lenght+((depth-1)*16)+((height-1)*256)
`link limb 4097,lenght+((depth-1)*16)+((height-1)*256)-1,chunk+lenght+((depth-1)*16)+((height-1)*256)
` color limb 4097,lenght+((depth-1)*16)+((height-1)*256),rgb(0,0,0)
next lenght
next depth
next height
set current bitmap 0
do
control camera using arrowkeys 0,1,1
sync
loop
A child's dream never dies.