Garry's Mod

Garry's Mod

Seamless Portals
ArrayOfHopeLive 2022 年 3 月 6 日 下午 1:45
For the Dev
here is something you might wanna add to this addons description...

when you place the portals and you can't really see through them (E.X: you can only see through them if you are very close to them) then type "r_novis 1" into the console. this makes it so you can clearly see through the portals, and makes it so you do not need to be right up against the portal in order to actually see through it. this also fixes any skybox flickering issues from looking through the portal


so yes, i tested this on gm_construct. i placed 1 portal in 1 spot, then placed another in a farther location and could only see through the portal if i was right up against it. but doing the "r_novis 1" fixed the issue and made it so i could once again see through the portal
< >
正在显示第 1 - 4 条,共 4 条留言
Wasabi_Thumbs 2022 年 3 月 6 日 下午 2:02 
So there IS a way to disable PVS! Can't believe I didn't find this sooner. The mod literally emulates a 2D skybox because the engine doesnt render any skyboxes when a camera is in a wall (i.e. the virtual camera for a portal). We could've totally just enabled r_novis for a brief period of time while portal views are being rendered. I actually prefer what WAS done, since r_novis inherently lowers performance, but still super neat. Definitely makes it more seamless. Nice find my guy!
ArrayOfHopeLive 2022 年 3 月 6 日 下午 2:08 
引用自 Wasabi_Thumbs
So there IS a way to disable PVS! Can't believe I didn't find this sooner. The mod literally emulates a 2D skybox because the engine doesnt render any skyboxes when a camera is in a wall (i.e. the virtual camera for a portal). We could've totally just enabled r_novis for a brief period of time while portal views are being rendered. I actually prefer what WAS done, since r_novis inherently lowers performance, but still super neat. Definitely makes it more seamless. Nice find my guy!
true, it does lower FPS. so the dev might need to put a disclaimer that says "if you enable r_novis 1" you may experience some FPS drops depending on your rig" but yeah, only reason i know about this is there is a heavily outdated portal gun mod on steam where the dev said to enable "r_novis" to fix any portal flickering/skybox rendering issues, heh
Meetric  [开发者] 2022 年 3 月 6 日 下午 2:59 
interesting
Wasabi_Thumbs 2022 年 3 月 7 日 上午 1:08 
The ultimate solution would be this[wiki.facepunch.com], but according to the Valve developer wiki, it's broken even in C++. The same page also mentions r_novis
最后由 Wasabi_Thumbs 编辑于; 2022 年 3 月 7 日 上午 2:02
< >
正在显示第 1 - 4 条,共 4 条留言
每页显示数: 1530 50