logoalt Hacker News

Modern Rendering Culling Techniques

77 pointsby krupitskaslast Sunday at 7:54 AM16 commentsview on HN

Comments

Animatsyesterday at 11:47 PM

Occlusion culling is really tough in systems where users can add content to the world. Especially if there's translucency. As with windows (not Windows), or layered clothing.

You're in a room without windows. Everything outside the room is culled. Frame rate is very high. Then you open the door and go outside into a large city. Some buildings have big windows showing the interior, so you can't cull the building interior. You're on a long street and can look off into the distance. Now keep the frame rate from dropping while not losing distant objects.

Games with fixed objects can design the world to avoid these situations. Few games have many windows you can look into. Long sightlines are often avoided in level design. If you don't have those options, you have to accept that distant objects will be displayed, and level of detail handling becomes more important than occlusion. Impostors. Lots of impostors.

Occlusion culling itself has a compute cost. I've seen the cost of culling big scenes exceed the cost of drawing the culled content.

This is one of those hard problems metaverses have, and which, despite the amount of money thrown at the problem, were not solved during the metaverse boom. Meta does not seem to have contributed much to graphics technology.

This is much of why Second Life is slow.

show 1 reply
greggman65today at 12:51 AM

> Quake made PVS famous. It’s still useful in some indoor games where the scene geometry is static and bake time is acceptable.

It was used extensively in outdoor games like Jak and Daxter.

nickandbroyesterday at 8:22 PM

Love this, I will now use backface culling for my game:

https://slitherworld.com

show 1 reply
LarsDu88yesterday at 7:37 PM

PVS isn't that expensive to compute. Especially nowadays. I assume this is actually referring to the binary space partitioning techniques used in DOOM and improved in Quake, Half-Life, etc in the late 90s, early 2000s.

The BSP tree was also extremely useful for optimizing netcode for games like Quake 3 Arena and games within that family and time period I believe.

yardsyesterday at 9:13 PM

I always wonder about this IRL...I'm at work rn, is my apartment still rendered?

show 2 replies
igraubezruklast Sunday at 9:17 AM

Very good read and visualizations, thank you for writing it

yopstodaylast Sunday at 1:19 PM

Dooope!