Found some interesting settings that might help solve or reduce culling in Half Life Alyx without needing PP

Yes it work great, still have some issue with volumetric fog and shadows but it’s not bad to play (I’ll keep this configuration)

3 Likes

There’s volumetric fog settings I’ve seen in one of the files, it can be reduced or eliminated. As for shadows, yeah I’ll have to look into that. I can’t believe no one figured out this console command before me lol.

2 Likes

Amazing! So does it work on the StarVR One as well? I am out of the office now (damn, I should never leave that place for cases like this!) so I cannot try… :slight_smile:

2 Likes

I haven’t tried it yet on the StarVR. I’ll give it a shot later today!

2 Likes

@mixedrealityTV Okay, so I tested it out using the launch options. It works but with some glitches/tradeoffs.

When I set the value to 25, the culling is reduced on my right peripheral. When I increased it to 40, the main menu at the start of Half Life Alyx is not there. You have to move your head forward toward the menu. Then when you select a menu option, you have to again tilt your head forward until the new menu appears. At 40 value, once in game, objects were being culled right in front of me in both eyes, so I knew it was too much.

Next I tried value of 30 and this seems be a sweet spot. I still have to lean in closer to menus for them to show up, but the culling in the right peripheral is much further out of the peripheral. So it did improve it a lot! Some other downsides though are when I open the weapon menu, the weapon icons are shown but not the weapon ammo values, for that you have to move your head around a bit to make them show up. I also noticed from a far distance the bottles at the bar only appeared once I got to a certain distance. So it appears this frustum culling settings does not just affect the peripheral but also objects far in the front.

Personally I think I like Alyx better at the 30 value. But I think some other settings need to be changed to fix these minor problems. I’m going to experiment with other console commands and file settings.

3 Likes

Okay so I’ve found the best configuration is the following launch options:

-console -vconsole +vr_expand_cull_frustum 30 +vr_enable_volume_fog 0 +vr_main_menu_to_player_distance -40

First command will reduce object pop-ins on the right peripheral vision, however some objects from a far distance like bottles and cups on a table may not load right away until you get closer to them. This doesn’t happen that often so overall I’m very happy to have reduced on my right peripheral

Second command disables volumetric fog. In wide fov headsets like the StarVR One the fog seems too strong. Once I disabled it, the picture quality in HL: Alyx looks SO much better on this headset and the blacks look like they’re supposed to in this OLED headset.

Third command brings the main menu much closer to the player. When the game first loads, the menu will not be visible. You’ll need to stand at the feet mark and lean your head forward towards the menu for it to pop up. If you find your scrolling or selection doesn’t animate, you need to lean in again. When you select something from the menu, just lean in a bit for it to display too. This is the unfortunate tradeoff of doing the expanded frustum culling. Main benefit to this command, is that when I open the menu while in a game, it works perfectly fine without needing to lean in to it. So that’s why I offset the distance.

Let me know guys what these settings look like for you on Pimax or StarVR One. I have also tried 35 but that one made objects from a distance cull too close for my tastes. So 30 seems to be a balance. I’m currently trying to figure out how to fix the culling distance while leaving the first command enabled.

4 Likes

Good news, @VR-TECH @vrftw @crispybuttphd I found a built in command in Half Life Alyx for Mura correction. Just add

+vr_mura_correction 1

to the launch options from my post above. I think it looks better with mura correction and volumetric fog enabled. I wonder what you guys will think of the difference.

3 Likes

Iirc, that was controlled in HL2 by a different setting. It has nothing specifically to do with VR. I think it might be controlled by r_staticprop_lod.

2 Likes

I’ll look into that. So far I’ve tried

+r_occlusion_culling 0

Which disables distance culling altogether and it seems to have helped with most objects. I’ll have to do more testing. There is a slight performance loss with it disabled though. Like 75 to 90fps with slight jitters.

I suspect the reason why the more you expand the frustum culling FOV, the shorter the distance that objects get culled is, that the camera is looking through a triangle view. When you bendout that triangle, the FOV gets wider but the end of the triangle gets shorter. So that’s why I’m hoping another command or settings would disable distance culling outside of the camera’s view to some extent.

LOD stands for level of detail. Iirc it’s an integer additive offset, which controls the complexity of the model displayed for a given distance. That setting or a related one sets the distance at which a model is drawn (or not). Basically, it controls the complexity of the scene and allows distant objects to be drawn with less detail or hidden from view, until they get close enough to matter.

1 Like

So Sebastian, is the StarVR a loaner or a keeper?

Nice work man!! Currently My StarVR or Pimax give me error 108 with Steam VR. I’m prepping for my project. Hope I can sort out this out over the weekend

2 Likes

+vr_mura_correction 1

Really curious about that one. I’ll be trying tomorrow. Does it really reduce the mura on SVR1?

1 Like

Oh my god you guys! I’ve found the secret command that disables culling once and for all!

Use this in launch options:

-console -vconsole +sc_no_cull 1 +vr_enable_volume_fog 0

The last command is optional depending on if you like fog or not. After adding sc_no_cull, there is now absolutely no culling at all on my right peripheral vision! I have the full field of view and it’s incredible! The only problem left is the ocassional black smearing occuring on the right eye and that’s no big deal. Wow. I also did not notice any reduction in performance at all by turning off the culling.

@mixedrealityTV @VR-TECH @vrftw @crispybuttphd

12 Likes

You the man!!! That’s truly incredible, thanks for digging into this!

4 Likes

Do you think other games have this kind of launch options? It would be so cool if you could just change it like that!

@VR-TECH Nope, it’s still a loaner, but StarVR didn’t get back to me for a while, so I still have the device.

3 Likes

I take that you are also adding the Mura command?

1 Like

When I added the mura command, I don’t really notice a difference except maybe less clarity from a far distance. Maybe it’s just because I’m not sensitive to it like you and vrftw. So I’d like to know when you try it.

Many (most?) games have launch options, but it varies by game. Some only have minimal options, while others have extensive options.

3 Likes

I’m really wondering how different our units are… Maybe it’s because I also have a Pimax. I see mura on my 8k+ but 99% less.

1 Like