Model Viewer viewport fails to refresh on model switch + "hide LOD copies" hides packs.rpf ped/clothing models #9

Closed
opened 2026-11-26 20:02:53 +00:00 by github-bot · 2 comments
Owner

@⁠Alex4afk on GitHub · 2026-11-22 10:30 UTC · original

Environment

  • OS: Windows 11
  • App: SixNG Extractor (Desktop)

Bug 1: Model viewer viewport stays stuck on the previous mesh until Materials is toggled

Description:
When switching between certain packs.rpf models in the Model viewer, the top Model: bar, status line, and right-hand sidebar update to the newly selected model, but the 3D viewport continues rendering the previously loaded mesh.

Steps to reproduce:

  1. Open packs.rpf@4fc6c010 (costumetail_mr1_000_compression_ws00_full) in the Model viewer.
  2. Select or open packs.rpf@bb4d2010 (masksnovelty_fr1_055_hc_un_full).
  3. Observe that the UI updates to masksnovelty_fr1_055_hc_un_full, while the 3D viewport still displays the previous costumetail mesh.

Workaround:
Unchecking and re-checking the Materials checkbox in the right-hand panel forces the viewport to flush and render the new model properly.


Bug 2: hide LOD copies filters out all packs.rpf clothing/ped models

Description:
In both the Model viewer sidebar and the Library grid, enabling hide LOD copies hides packs.rpf character/clothing entries completely instead of deduplicating them down to a single LOD.

Steps to reproduce:

  1. Open the Library tab (or Model viewer sidebar).
  2. Search for masksnovelty or costumeanimal with hide LOD copies unchecked (returns 153 models for masksnovelty).
  3. Check hide LOD copies.

Expected behavior:
One LOD copy per unique model name remains visible.

Actual behavior:
All matching packs.rpf entries disappear (0 models shown for masksnovelty; only levels.rpf hits remain when searching costu).

**@⁠Alex4afk** on GitHub · 2026-11-22 10:30 UTC · [original](https://github.com/holdmysocks/SixNG/issues/9) ### Environment - **OS:** Windows 11 - **App:** SixNG Extractor (Desktop) --- ### Bug 1: Model viewer viewport stays stuck on the previous mesh until Materials is toggled **Description:** When switching between certain `packs.rpf` models in the **Model viewer**, the top `Model:` bar, status line, and right-hand sidebar update to the newly selected model, but the 3D viewport continues rendering the previously loaded mesh. **Steps to reproduce:** 1. Open `packs.rpf@4fc6c010` (`costumetail_mr1_000_compression_ws00_full`) in the Model viewer. 2. Select or open `packs.rpf@bb4d2010` (`masksnovelty_fr1_055_hc_un_full`). 3. Observe that the UI updates to `masksnovelty_fr1_055_hc_un_full`, while the 3D viewport still displays the previous `costumetail` mesh. **Workaround:** Unchecking and re-checking the **Materials** checkbox in the right-hand panel forces the viewport to flush and render the new model properly. --- ### Bug 2: `hide LOD copies` filters out all `packs.rpf` clothing/ped models **Description:** In both the **Model viewer** sidebar and the **Library** grid, enabling `hide LOD copies` hides `packs.rpf` character/clothing entries completely instead of deduplicating them down to a single LOD. **Steps to reproduce:** 1. Open the **Library** tab (or **Model viewer** sidebar). 2. Search for `masksnovelty` or `costumeanimal` with `hide LOD copies` **unchecked** (returns 153 models for `masksnovelty`). 3. Check `hide LOD copies`. **Expected behavior:** One LOD copy per unique model name remains visible. **Actual behavior:** All matching `packs.rpf` entries disappear (`0 models` shown for `masksnovelty`; only `levels.rpf` hits remain when searching `costu`).
github-bot 2026-11-26 20:02:53 +00:00
  • closed this issue
  • added the
    bug
    label
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:02:53 +00:00
Author
Owner

@⁠holdmysocks on GitHub · 2026-11-22 22:04 UTC · original

Thanks for the detailed report.

Bug 2 (hide LOD copies hiding packs.rpf clothing) was fixed in 5a5a976 and is in v0.5.0: generic pieces such as masks and costumes stay listed, one per name.

Bug 1 (viewport keeps the previous mesh): I couldn't reproduce it by switching from packs.rpf@4fc6c010 to packs.rpf@bb4d2010, on either v0.5.0 or current master; the new mesh showed every time. The model viewer did have a few ways to end up showing one model under another's name, and 3d510aa (on master) closes them:

  • loads are now numbered, and one that finishes after a newer model was picked is dropped, so a slow earlier load can no longer replace the model you just picked;
  • picking a model in the list while another is still loading now opens your newest pick instead of ignoring the click;
  • a load that fails clears the viewport and shows the error instead of leaving the previous model on screen.

This will be in the next release. If you still see the stale mesh after that, please let me know whether you switched with the list, the arrow keys or the Library, and whether the previous model was still loading at the time.

**@⁠holdmysocks** on GitHub · 2026-11-22 22:04 UTC · [original](https://github.com/holdmysocks/SixNG/issues/9#issuecomment-7086528929) Thanks for the detailed report. **Bug 2** (`hide LOD copies` hiding packs.rpf clothing) was fixed in 5a5a976 and is in v0.5.0: generic pieces such as masks and costumes stay listed, one per name. **Bug 1** (viewport keeps the previous mesh): I couldn't reproduce it by switching from `packs.rpf@4fc6c010` to `packs.rpf@bb4d2010`, on either v0.5.0 or current master; the new mesh showed every time. The model viewer did have a few ways to end up showing one model under another's name, and 3d510aa (on master) closes them: - loads are now numbered, and one that finishes after a newer model was picked is dropped, so a slow earlier load can no longer replace the model you just picked; - picking a model in the list while another is still loading now opens your newest pick instead of ignoring the click; - a load that fails clears the viewport and shows the error instead of leaving the previous model on screen. This will be in the next release. If you still see the stale mesh after that, please let me know whether you switched with the list, the arrow keys or the Library, and whether the previous model was still loading at the time.
Author
Owner

@⁠holdmysocks on GitHub · 2026-11-23 04:37 UTC · original

Closing. Bug 2 (hide LOD copies hiding packs.rpf clothing) was fixed in v0.5.0. I couldn't reproduce bug 1 (the viewport keeping the previous mesh), and the model viewer's loading has changed a lot since, up to v0.7.0. If it still happens on v0.7.0, please reopen with the two model ids and I'll look again.

**@⁠holdmysocks** on GitHub · 2026-11-23 04:37 UTC · [original](https://github.com/holdmysocks/SixNG/issues/9#issuecomment-7091739018) Closing. Bug 2 (`hide LOD copies` hiding packs.rpf clothing) was fixed in v0.5.0. I couldn't reproduce bug 1 (the viewport keeping the previous mesh), and the model viewer's loading has changed a lot since, up to [v0.7.0](https://github.com/holdmysocks/SixNG/releases/tag/v0.7.0). If it still happens on v0.7.0, please reopen with the two model ids and I'll look again.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/holdmysocks--SixNG#9
No description provided.