Modern open-source C# .NET 10 Asheron's Call client. Faithful port of retail client behaviour to Silk.NET with a plugin API.
Replaces the per-entity glUniform uModel path with a shared instance VBO and DrawElementsInstanced. All instance model matrices are uploaded to GPU once per frame; the VAO's per-instance attribute pointers (locations 3–6, divisor=1) are updated with a byte-offset re-point per group so a single VBO serves all groups without requiring DrawElementsInstancedBaseInstance (not in Silk.NET 2.23). Changes: - InstancedMeshRenderer: add _instanceVbo, _instanceBuffer scratch; EnsureUploaded sets up mat4 instance attrs (locs 3–6) from the shared VBO; Draw builds the flat float[] of all instance matrices once then calls DrawElementsInstanced per sub-mesh. Drops the unused uint TerrainLayer attribute (loc 3 from vertex VBO) — mesh shaders never used it. Adds InstanceGroup helper to track per-group buffer offsets. - mesh_instanced.frag: replace sampler2DArray+uTextureLayer with sampler2D uDiffuse, matching the existing TextureCache / individual-texture pipeline. - mesh_instanced.vert+frag: track as committed files (were untracked). - Shader.cs: add SetVec3 helper needed for uLightDirection uniform. - GameWindow.cs: switch mesh shader load from mesh.vert/.frag to mesh_instanced.vert/.frag. Visual output is identical: same entities, same textures, same lighting constants (SUN_DIR=(0.5,0.4,0.6), AMBIENT=0.25, DIFFUSE=0.75 — moved from frag to vert). Build: clean. Tests: 431/431 green. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| docs | ||
| src | ||
| tests | ||
| tools | ||
| .gitignore | ||
| AcDream.slnx | ||
| CLAUDE.md | ||
| README.md | ||
acdream
Experimental modern open-source Asheron's Call client in C# / .NET 10.
Status: pre-alpha, not playable. Phase 0 only — dat file asset inventory.
Stack: .NET 10, Chorizite.DatReaderWriter for dat parsing. Silk.NET + Avalonia planned for rendering/UI (not yet wired up).
Requires: A retail Asheron's Call install (Turbine/Microsoft property — supply your own). Set ACDREAM_DAT_DIR environment variable to the directory containing client_portal.dat, client_cell_1.dat, client_highres.dat, and client_local_English.dat, or pass it as the first CLI argument.
Layout
src/AcDream.Cli/— console app that dumps asset counts from a dat directoryreferences/— local read-only reference material (ACE, ACViewer, WorldBuilder, DatReaderWriter, holtburger, retail AC install). Gitignored.
Run
dotnet run --project src/AcDream.Cli -- "C:\path\to\Asheron's Call"
Or set ACDREAM_DAT_DIR and run without args.