Hiding big objects is a problem ?!

Started by Sebastian, May 23, 2016, 12:43 AM

Previous topic - Next topic

Sebastian

I hided some big hotels + LODs + fences. All that was part of it.
Unfortunately, the game now goes crazy in that area ...

https://youtu.be/7lhFcj3NIX4

How can I avoid this ? Tried to hide the objects via both ways (xml and function) but the same thing happened.

vito

It's normal, game's optimization. The game "think" objects is still here and hiding everything over this object. You can't chage it.

vito

#2
Actually possible you can fix it :)
You need to hide everything at backround and re-add it with a bit anothers coords.

Sebastian

I was also thinking about removing the whole map (via hidevicecity.txt), and re-adding it. In this way I can hide what object I want.
(also, such weird things should not happen anymore)
But I'm wondering if the interior switching will still work...

I guess I will try it out, and come with an edit. :)

maxorator

It's caused by occlusion boxes, which were designed to optimize rendering by immediately excluding buildings from rendering when there was some big building blocking the view.

Hiding the entire map does disable occlusions, but it also disables interior switching.

Sebastian

Oh, right. Totally forgot about them.
For the one who has no idea about how occlusion boxes look like:


Too bad interior switching won't work anymore...

Sebastian

I just did hidevicecity.txt and re-added everything back.
After a few fixes (of interiors), map is 99% like before.

But I discovered something interesting: traffic lamps doesn't get the "live" shadow anymore.
This means it is not attached to the object.

Can you give more details, @maxorator ?