Vice City: Multiplayer

VC:MP Discussion => Support => Topic started by: Sebastian on May 23, 2016, 12:43 AM

Title: Hiding big objects is a problem ?!
Post by: Sebastian on May 23, 2016, 12:43 AM
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.
Title: Re: Hiding big objects is a problem ?!
Post by: vito on May 23, 2016, 06:51 AM
It's normal, game's optimization. The game "think" objects is still here and hiding everything over this object. You can't chage it.
Title: Re: Hiding big objects is a problem ?!
Post by: vito on May 23, 2016, 09:42 AM
Actually possible you can fix it :)
You need to hide everything at backround and re-add it with a bit anothers coords.
Title: Re: Hiding big objects is a problem ?!
Post by: Sebastian on May 23, 2016, 02:11 PM
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. :)
Title: Re: Hiding big objects is a problem ?!
Post by: maxorator on May 23, 2016, 03:45 PM
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.
Title: Re: Hiding big objects is a problem ?!
Post by: Sebastian on May 23, 2016, 10:08 PM
Oh, right. Totally forgot about them.
For the one who has no idea about how occlusion boxes look like:
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2Fb5uQhv0.png&hash=73bed6ebad4b77d123c9ace858fb225c3f557d32)

Too bad interior switching won't work anymore...
Title: Re: Hiding big objects is a problem ?!
Post by: Sebastian on May 26, 2016, 04:35 PM
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 ?