[IOH] Occulsion System (Instant Dynamic Occulsion Culling)

[IOH] Occlusion System

[IOH] Occlusion on Asset store

Version 1.3: Now on the asset store, it has some minor updates to improve performance, i also removed unneeded code, unneeded methods, and added a wayyy better dynamic system so that it works in tiers and so on. Basically makes the system work wayyy better.

Liscense: Use it on whatever you want, its 100% my code and 100% yours. Dont resell my code, you can use it in a game though.

Imagine a world where everything you see, is all that exists!

Well now you are able to do it with simple ease! All it takes is dragging a prefab into any scene and Violà Instant Occlusion Culling is ready to go! No need to pre bake or place your objects in a grid or have your objects pre-set to do the culling, and with the easy interface editor you can change all the correct data to your likings. And now its coming to the asset store for only $10!

WORKS ON ANY LICENCE AND ANY PLATFORM!!!

Contact me if you have any problems; I will fix it within 24 hours.

Current Features:

  • Instant Dynamic No Bake Occlusion Culling with EASE
  • Fixed as much as possible for flickering based on your input wanted through the super easy custom settings on it.

Future Updates:

  • Custom Dynamic LOD that works without any pre-set stuff and without baking of any sort
  • Always Strive to get it to preform better and with more ease

Revisions:

  • 1.0 - START, Initial release

Media:
I know, i spelt it wrong in the pic, my bad! -.-

Webplayer: WORKING WEBPLAYER
Webplayer: [Normal Map instead of 10k random objects generated.

](http://krypticstudios.com/IOH/NormalMap.html)

Notice: The lag in the web player near the beginning is because it is going through 10k objects and checking them for ability to be occled, that wont happen in nearly any other level made with it since I doubt you are going to have 10k objects in a small space all jumbled together. Also the flickering is not really flickering its just seeing the objects for the first time. The only time it flickers is when you move the screen around alot really fast and look off into the distance, we are currently working on a fix for that. The press P to pause only works in the editor and test scene from the asset store.

Warning: If you have crappy models and very few models in total like this

then this package is most likely not for you, but if you want to have lots of models like this

then this package will make your game run a hella lot smoother and faster.

The webplayer crashes chrome and firefox …

Other then that it seems promissing.

It does? :open_mouth:

It will lag for around 7 seconds when it is loading all the 10k objects up. other than that iut shouldnt crash it.

Works fine for me in chrome. Excellent work Laake :slight_smile:

Yep, completely crashed my Firefox too. It just hang there and plus Unity Error Console.

crash too

Edit: Got the webplayer working. It was the obfuscation technique i was using.

Does this work with unity basic(free ) and android basic?

look nice but objects popup/flicer frame after you should see it

serious amounts of popping and flicker going on there.

WOW! The previous web player crashed my mac. I had to restart. That’s pretty rare.

Lol the popping and flickering only happens when you have alot of objects far off in the distance and look around hella fast, in a normal game it wont do that.

Should i make a small city with buildings around as a scene of normal?

And yeah sorry the previous webplayer had some janked up obfuscation methods that unity couldnt understand sometimes.

Edit: Added another webplayer of a more normal map rather then 10k objects all jumbled together, and in the system you can change variables that will allow a little less fps but more calls to stop the little slight flicker every once in a while

Right. Much better now. The city map you posted has almost zero flickering. (And works much better then the other solution I saw in another thread).

Can you tell us what the overhead is?

Also it would be good to add an option to allow an x amount of time to pass until an object gets occluded. I believe that this would minimize the popping.

Overhead? what do you mean by that?

And in unity i have made the editor quite nice to customize the way it works to get the perfect workflow for your game, but as soon as im done with some networking stuff ill add a gui system to change the values, probably tomorow around 11am pst

I mean what is the cost in milliseconds for calculating the occlusion in realtime.

On my computer it usually takes about 7-8 miliseconds, but im currently working on the optimization to make it run faster and smoother with less of any little glitches.

It takes approximately 3 to 4 milliseconds on my computer, but I suppose the processor would determine the exact time. I have an AMD Turion Dual Core Processor.

I actually do have a project that has 10k object. Just to ask, does the occlusion support dynamic objects, eg, a door opening/closing. I suppose it would only work on solid walls, how about things like windows?

Yes it supports dynamic objects, and you have 10k highpoly objects that are jumbled in a little little little little little tiny area?

If you have objects that come into the scene at random times like say an object dropped it will work with that also.

Seem very interesting…could you add a fps counter and a pause system that works on webplayer to best try and compare the performance?