Skip to content

Enhancement: Unlimit overlay render priorities and remove max overlay count per-face #1700

@pivotman319-owo

Description

@pivotman319-owo

What would this enhancement be for?

Rendering

Describe your enhancement suggestion in more detail

This enhancement will require a BSP v25 struct version change.

Currently, info_overlay render orders for both wall/ground and water surfaces only support up to 4 maximum rendering orders due to the imposition of two separate 2-bit masks in the BSP structure. Setting a render order past these bits causes VBSP to exit immediately during compile.

Ideally, these bitmasks (OVERLAY_RENDER_ORDER_NUM_BITS and WATEROVERLAY_RENDER_ORDER_NUM_BITS) should both be eliminated from the engine to allow for virtually unlimited overlay render priorities. Variables OVERLAY_BSP_FACE_COUNT (the maximum per-face overlay count) and WATEROVERLAY_BSP_FACE_COUNT (the maximum per-face overlay count for water surfaces) should also probably be removed from the engine to allow for an unlimited number of overlays.

Metadata

Metadata

Assignees

Labels

Focus: Engine UpgradesTechnical improvementsPriority 3: MediumSomething that should be attempted/looked at for the next release, and done if possible.Size 4: SmallSomething that will take up to a day to do.Type: EnhancementThis is something that improves upon an already existing thing.What: EngineEngine related issuesWhat: ToolsEngine tool-related issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions