Render: intro pose, preview hair, tree LOD and terrain seams

- chrRender collects intro draws with hardware skinning off (CPU scene path
  ignores GPU palettes, so the select-screen character stayed in T-pose).
- Preview player hair: warrior/hair/hair_1_1.gr2 (old path did not exist).
- SpeedTree: always draw full geometry like CSpeedTreeWrapper::Advance
  (SetLodLevel(1.0f)); resolve SPT texture names as GetPath+NoExtension+.dds.
- Terrain patches get edge skirts to hide step-1/step-2 T-junction cracks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shenlei
2026-10-13 12:19:44 +09:00
co-authored by Claude Opus 5.5
parent e0b97c2099
commit 29f33b289a
7 changed files with 77 additions and 37 deletions
+27
View File
@@ -1647,3 +1647,30 @@ Outstanding:
hidden; SDL shows it again without restarting text input.
- Verified on the device (login board): Back hides the keyboard; tapping ID or Password
brings it back; tapping the background does not. Desktop ctest 59/59.
### 2026-10-13 Render: intro pose, preview hair, tree LOD, terrain seams
All four issues reproduced on desktop too (`--phone ... --phase select|game --preview-data`).
- Select screen T-pose: `chrRender` draws intro characters through the CPU scene renderer,
which ignores GPU skinning palettes, so with hardware skinning on they stayed in bind pose.
It now turns hardware skinning off while it collects those draws. The intro character plays
`intro/wait` again.
- Missing head on the preview player: its hair path
(`plechito/summer2020_costume/hair/warrior_m.gr2`) does not exist, and the body models carry no
head. It now uses `ymir work/pc/warrior/hair/hair_1_1.gr2` (warrior_m.msm HairData00).
Network actors already went through the original `SetHair` logic.
- Trees: `CSpeedTreeWrapper::Advance` calls `ComputeLodLevel()` and then always
`SetLodLevel(1.0f)`, so the original draws full geometry at alpha ref 84 and never shows the
billboards. Our integration compared the camera distance with the raw .spt lod_near/far
(100/1100), so nearby trees dropped to their billboards (dark composite silhouettes, pine
needle quads). `SpeedTreeRT.cpp` now always builds trunk, leaf and frond geometry. Texture
names resolve like `LoadTree`: GetPath(spt) + NoExtension(name) + ".dds"
(`CompositeMap`, `plant_grass` had no extension and stayed untextured).
Leaf density and branch shape come from the SDK generator, which is still being worked on.
- Terrain white seams/blocks: far patches (step 2) next to near ones (step 1) left T-junction
cracks that showed the cleared background. Each patch now hangs a vertical skirt
(2 cells deep) below its edges. Forcing step 1 everywhere removed the seam the same way.
- Desktop ctest 59/59. Device (OnePlus PJZ110): select screen shows the warrior and ninja in
their intro idle with heads; the game preview shows full-geometry trees and no terrain seam.
The preview player stands inside a pine, so its head was not visible in the game shot.