• Increasing render distance of CalcView?
    6 replies, posted
Is there any way to increase the render distance of CalcView, or manually set it. Other than TP'ing the player close to the CalcViews location?
This would be really interesting, I have the same problem. I tried to add the position to the player's PVS, but it still was not rendering, without teleporting the player to the location.
zfar
[QUOTE=NeatNit;51272759]zfar[/QUOTE] Which value do I need to set? [editline]28th October 2016[/editline] The distance of the player towards the position that he is viewing?
math.huge :v: Just kidding, can you be more specific about what you need to accomplish? The default FarZ value is normally big enough for everything, so it's possible that something else is posing the problem. Screenshots or a video would be really helpful.
If a player is across the map and something is blocking the view of an object you want them to see you'll need to add the position of that item to the clients PVS, see [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Global/AddOriginToPVS]AddOriginToPVS[/url] and [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/SetupPlayerVisibility]GM:SetupPlayerVisibility[/url]
I'm manipulating the CalcView hook for a system to show some parts of the map in specific situations. When the player is in spectator mode everything works fine. [editline]28th October 2016[/editline] [CODE] hook.Add("SetupPlayerVisibility", "AddIntroPosToPVS", function(ply) if ply.IntroPlaying then local data = introData[ply.CurrentStage] AddOriginToPVS(data.startpos) AddOriginToPVS(data.endpos) end end) [/CODE] The AddOriginToPVS is called correctly, but doesn't work all the time, only sometimes.
Sorry, you need to Log In to post a reply to this thread.