benilla-re systems structs docs

CM2Model::SetGeosetRange

function · models · host

Address
0x7110d0 · 352 bytes, up to 0x71122f
Meaning
Shows or hides the submeshes whose geoset ids lie in a range, freeing the own batches on a change
Confidence
verified, proof one
Finding
models/model#geoset-visibility

Finding: Geoset visibility in models: the instance

An instance holds one visibility word per submesh of the selected view at +0x98 and, when the selected view is not view 0, one per submesh of view 0 at +0x9c; initialization fills both with 1, or copies the copy source's words. SetGeosetRange(min, max, visible) stores visible in each word whose submesh id, the unsigned 32-bit +0x0, lies in [min, max] and whose zero-ness differs; a change to +0x98 frees the own batches. A batch is drawn only when the word at its texture unit's submesh index +0x4 is nonzero. Besides its own deferred replay, SetGeosetRange is called only from the character component code, so any other model keeps every word at 1 and draws every submesh.

The derivation is in the doc.

Callers 5

Callees 3

Calls and jumps by a bare address, from tables/calls.tsv.