AVA2 client Windows parity passes (gr2 BitKnit2/64-bit, GamePhase handlers, python modules)
- gr2: BitKnit2 decompression, 64-bit LE files, compressed curves - net: remaining GamePhase handlers, generated GC packet table - python: event/chat/chr/minimap/guild/quest/messenger/shop-search and other native modules ported against the AVA2 Windows client - render: D3D8 fixed-function lighting in Gr2ModelRenderer, terrain without baked shade; cape/NPC equipment attachment - tests + audits updated; docs/PORT-PLAN.md and WINDOWS-PARITY.md Batch 4 (render pipeline: background.*, app.RenderGame/UpdateGame, camera bindings, main.cpp fake-content removal) is still in progress. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
9f748eb05a
commit
9077aa389a
@@ -102,9 +102,15 @@ void TestWindMotionSimulation() {
|
||||
float base_x1 = draws_t1[0].positions[0];
|
||||
assert(std::abs(base_x0 - base_x1) < 0.01f && "Tree trunk base must be firmly anchored at ground");
|
||||
|
||||
// Check top canopy vertex sways with wind
|
||||
float top_x0 = draws_t0[1].positions[0];
|
||||
float top_x1 = draws_t1[1].positions[0];
|
||||
// Check top canopy vertex sways with wind (flex grows with height², so pick the
|
||||
// highest canopy vertex; vertex 0 is the bottom edge of the lowest cluster).
|
||||
const auto& canopy0 = draws_t0[1].positions;
|
||||
size_t top = 0;
|
||||
for (size_t i = 0; i < canopy0.size() / 3; ++i) {
|
||||
if (canopy0[i * 3 + 1] > canopy0[top * 3 + 1]) top = i;
|
||||
}
|
||||
float top_x0 = canopy0[top * 3 + 0];
|
||||
float top_x1 = draws_t1[1].positions[top * 3 + 0];
|
||||
float delta_sway = std::abs(top_x0 - top_x1);
|
||||
assert(delta_sway > 0.5f && "Tree canopy must visibly sway with wind");
|
||||
std::cout << " -> Wind displacement at canopy tip: " << delta_sway << " units (sway verified!)" << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user