Visibility culling via 3ds Max's user interface

Written by Jesper Tingvall, Product Expert, Simplygon

Disclaimer: The code in this post is written using version 9.1.36100 of Simplygon and 3ds Max 2021. If you encounter this post at a later stage, some of the API calls might have changed. However, the core concepts should still remain valid.

Introduction

In many games the players movement is restricted to a certain volume, that means some object will only be visible from certain angles. That is where optimization through visibility culling comes in. In this post we'll show how to use it in 3ds Max.

Prerequisites

This example will use the Simplygon integration in 3ds Max, but the same concepts can be applied to all other integrations of the Simplygon API.

Problem to solve

We have a model which we know will only be visible from certain angles, thus we can optimize it by removing geometry that will never be seen. It could be geometry facing away from the camera, or geometry occluded by other geometry.

Tall tower asset

Asset we will only see from below and certain angles.

Solution

Visiblity culling is not its own processor but rather settings on a processor. Thus there is no pure visibility culling template we can add in the user interface. Instead we are going to add a reduction template and perform visibility culling inside it.

Reduction template

Start by adding an advanced reduction pipeline in the Simplygon UI by clicking Add LOD Component and pick Template → Advanced → Reduction. To make the pipeline not reduce anything expand ReductionSettings and set ReductionTargetTriangleRatio to 1.00.

Reduction settings with ReductionTargetTriangleRatio to 1.00

Camera set

We need to add a set of cameras indicating what angles the player can see the object from. Add some cameras to the scene from 3ds Max's menu Create → Cameras.

3 cameras at ground level looking at the asset

Select all of the cameras, then create a selection set by typing a name in the selection set menu field.

Camera set with name CameraSet

Visibility culling

Expand VisibilitySettings in the created pipeline, enable CullOccludedGeometry and set CameraSelectionSetName to the camera set we created above.

Visibility settings with CullOccludedGeometry true and CameraSelectionSetName set to CameraSet

When that is done we can process the asset by selecting it and clicking on the Simplygon button.

Result

After processing the geometry not visible from any camera in the set is removed resulting in a more lightweight mesh.

Asset with backside removed

Nobody will suspect that the asset is hollow.

Front of asset looking as original

⇐ Back to all posts

Request 30-days free evaluation license

*
*
*
*
Industry
*

Request 30-days free evaluation license

*
*
*
*
Industry
*