Occlusion System is working now.

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

Rogue Vector(Posted 2004) [#1]
Finally got it working.

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

Regards,

Rogue Vector


jfk EO-11110(Posted 2004) [#2]
Congrats - what was the problem?


Rogue Vector(Posted 2004) [#3]
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


jhocking(Posted 2004) [#4]
I'll have to try this out. Cool stuff!


jfk EO-11110(Posted 2004) [#5]
So i was right then :) .anyway. btw thanks again for the mp5 mesh, it's still in use.