Skip to content
RED+
Contents

Geometry

Rebuild Geometry

Rebuild Geometry turns the level's brushes into its compiled geometry: the faces that Calculate Lighting lights and that Classify Holes checks. RED+ runs RED's own compile and adds the settings and log lines on this page.

How to rebuild

Press Space. Keyboard shortcuts lists it as Build geometry.

Compile precision

RED+ runs the compile at the floating-point precision Red Faction's original editor uses. At a different precision RED's compile gives different geometry: it can report holes and leave out faces that the brushes should produce.

A level last rebuilt in a RED+ build before 43 can come out slightly different on its next rebuild. Check it with Classify Holes after that rebuild.

Hole lines on every rebuild

Every rebuild runs RED's own hole check. Level, Rebuild with hole lines is RED's switch that also draws the open edges it finds as lines in the views, the same lines as Level, Check for holes. Level, Remove hole check lines clears them.

RED+ can turn that switch on for you:

  1. Open Tools, Preferences... and choose the RED+ category.
  2. Tick Rebuild with hole lines on by default.

From then on, Rebuild with hole lines is on each time RED+ starts. Ticking or clearing the box also turns the switch on or off at once. The setting is saved in redplus.ini. See Preferences.

What the log records

The log is logs\RedPlusEditor.log in the RED+ folder. Each rebuild writes:

  • a line containing [RF+ Build] geometry compile at when it starts, naming the precision it compiles at
  • a line containing [RF+ Build] geometry built in when it finishes, with the time in milliseconds and the number of faces in the compiled level
  • a line containing [RF+ Build] geometry build cancelled after instead, if the rebuild was cancelled
  • a line containing [RF+ Build] lightmap fit searches:, with how many lightmap placements were searched for and how many were placed

The time covers only the rebuild it reports. A rebuild left unfinished when its level was closed is not added to the next one.

Emitting faces

Rebuild Geometry keeps the Bright and Depth of every emitting face as you set them in Face Properties. In a level with emitting faces, the log has a line containing [RF+ FaceFlags] before Rebuild Geometry and one containing [RF+ FaceFlags] after Rebuild Geometry, which say whether each face's compiled copy carries its Bright and Depth. See Emissive light.