@SamKM
Sorry for not responding, but I have a large school project and the problem is a bit strange so I can't explain it immediately.
First of all make sure you have the latest version (1.0.1).
If you do and it isn't working you can try these settings:
OC_DisableAutoBalance()
OC_SetRange(1000, 100000)
OC_SetObjectFade(4000)
If it still doesn't work make sure you are setting up the objects in the right order:
// 1. create object
// 2. postion, rotate, scale object
OC_AddObject(h)
OC_SetObjectStatic(h)
OC_SetObjectBounds(h, 0)
If the objects are instances make sure you use
OC_SetObjectSource and that you don't delete the source object.
If it still isn't working I will see what I can do to make it work.
Edit
I made a perfect blocky world here, so everything should work if you setup correct and have the latest update, here is an example:
#Include "Dark Occlusion/Dark_Occlusion/Dark_Occlusion.dba"
OC_Init()
OC_DisableAutoBalance()
Sync on
Sync rate 0
disable escapekey
make object cube 1, 25
make object cube 2, 20
hide object 1
hide object 2
// use this to turn wireframe on for all objects
`set object wireframe 1, 1
sync : cls : center text screen width()/2, screen height()/2, "Loading..." : sync
OC_BeginLoading()
open console
for x=1 to 50
for z=1 to 50
h = rnd(2)
for y=0 to h
obj = find free object()
instance object obj, 1
position object obj, (x-1)*25, y*25, (z-1)*25
OC_AddObject(obj)
OC_SetObjectSource(obj, 1)
OC_SetObjectStatic(obj)
OC_SetObjectBounds(obj, -2)
next y
next z
print console x : print console
next x
close console
OC_FinishLoading()
position camera 0, 2, 0
set camera range .1, 1000
null = mousemovex() : null = mousemovey()
Do
set cursor 0, 0
print "Fps: ", screen fps()
if escapekey() then OC_End()
if keystate(17)
move camera 1
endif
if keystate(31)
move camera -1
endif
rotate camera camera angle x() + mousemovey() * .2, camera angle y() + mousemovex() * .2, 0
OC_Update()
Sync
Loop
