Skip to content

v0.27.96-alpha — PBR Materials on Second Life, Outfit Merge (+25 % fps, opt-in), Worn Alpha Order & Add-on Shapes

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 25 Oct 23:38
· 185 commits to main since this release

Since v0.27.71-alpha this release renders Second Life's PBR materials, fixes how worn alpha layers and add-ons are drawn, and adds an outfit merge that makes crowded regions about a quarter faster. It also stops the texture cache from forgetting the last region you visited.

Rendering

  • PBR materials on Second Life (BUG-RENDER-49). SLNG never read the per-face material ids that Second Life sends with each object, so every PBR face fell back to its old texture: a worn pet rendered plain white, PBR clothing and hair looked wrong.
    • The ids are now read, survive a relog with the object cache, and the material assets are fetched the way the reference viewer fetches them.
    • Worn meshes, animesh and HUDs get base colour, normal, metallic-roughness and emissive maps; world objects take colour and texture placement from the material.
    • glTF colour factors are no longer converted to linear twice (PBR tints were too dark), and PBR surfaces get the 4 % dielectric highlight of the reference viewer.
    • Hidden style variants of PBR hair stay hidden while a material is still loading.
  • Worn alpha in the reference viewer's order (BUG-RENDER-50). Semi-transparent worn items are now sorted by attachment point and write depth, as in the reference viewer. A rear add-on no longer paints over the clothing in front of it. A worn face's legacy material alpha mode (none, mask, blend) is honoured.
  • Pose animations move every joint (BUG-ANIM-07). Position keys in an animation were applied to the pelvis only. Add-on HUDs shape their meshes with such keys on the Bento groin and hind-limb bones, so add-ons showed the wrong shape or hung away from the body. Every joint now follows its position keys, and a running animation overrides a mesh's joint positions, as in the reference viewer.

Performance

  • Outfit merge (FEAT-PERF-23), opt-in. Other avatars' worn rigged meshes are merged per worn object onto one skin per avatar, on a worker thread.
    • Measured in a crowded region: about 2,900 → 700 drawn avatar meshes, render-thread time −30 %, 31–40 → 44–46 fps.
    • Switchable at runtime: Preferences → Graphics → Hardware → Outfit merge, or start with -OutfitMerge.
    • Off by default for now.
  • Texture cache keeps more regions (BUG-PERF-20). The decoded-texture cache was full at 4 GB, so returning to a region decoded almost every texture again and the scene stayed white for a long time. The default is now 16 GB.
  • Avatars that lose their full-render slot while loading no longer draw their outfit over the stand-in.

Avatars

  • Stand-ins are neutral grey (BUG-AVATAR-13). Avatars beyond the full-render cap are drawn in the reference viewer's grey instead of a per-avatar colour.

Diagnostics (-Diag)

  • [PbrFace] shows each PBR face's material, override and resulting alpha mode.
  • [WornFaces] and [BomAlpha] list a worn item's faces and how much of a Bakes-on-Mesh face its bake cuts away. Numbers only; nothing is written to disk.
  • A texture the server refuses logs the server's reason once.

Still missing

  • Outfit merge on by default and for your own avatar.
  • Login start location (last location, home, a favourite) is specified (FEAT-UI-72) but not built yet.
  • A rare Vertex amount (145) engine error with one particular worn eye mesh.

Verification

  • Both projects build in Debug and Release.
  • 3,592 tests green (up from 3,481 in v0.27.71).
  • Self-test green.
  • dotnet format clean.

Install

Download PurisViewer_Setup_v0.27.96-alpha.exe below and run it. It updates an existing installation in place.