Occlusion System is working now.

Blitz3D Forums/Blitz3D Programming/Occlusion System is working now.

Finally got it working.

It's here:
http://www.blitzbasic.com/codearcs/codearcs.php?code=1228

Regards,

Rogue Vector

Congrats - what was the problem?

It was just down to the initial min/max values for the bounding boxes.

They were originally set to zero.

I just changed them to this:

zone\max_X = -1000000.0
zone\max_Y = -1000000.0
zone\max_Z = -1000000.0
zone\min_X = 1000000.0
zone\min_Y = 1000000.0
zone\min_Z = 1000000.0

They needed to be set to very large numbers - i.e. outside the dimensions of the level map.

Zero coordinates fall inside the level map, so it was getting screwed up.

Regards,

Rogue Vector

I'll have to try this out. Cool stuff!

So i was right then :) .anyway. btw thanks again for the mp5 mesh, it's still in use.