Skip to content

Align USD texture offset on even rows with s25client#48

Draft
morganchristiansson wants to merge 6 commits into
Return-To-The-Roots:masterfrom
morganchristiansson:align-coords
Draft

Align USD texture offset on even rows with s25client#48
morganchristiansson wants to merge 6 commits into
Return-To-The-Roots:masterfrom
morganchristiansson:align-coords

Conversation

@morganchristiansson

Copy link
Copy Markdown
Contributor

s25edit uses different coordinate offsets forUSD triangles than s25client for no good reason.

Switch to s25client coordinate system.

Adds Geometry.h with clientUsdX() noop wrapper to mark converted. Will affect other PRs&branches using coordinates.

Includes #40 as base branch, when that is merged it will disappear from this diff.

@morganchristiansson

morganchristiansson commented Jun 26, 2026

Copy link
Copy Markdown
Contributor Author

SIMPLE EXPLANATION:
for even rows (y % 2 == 0), the texture that was at x-1 is now at x.

Bruh this hex coordinate system and AI trying to explain it and reason about it is doing my noggin.

Having different coordinate systems and trying to share and reuse code between them is insanity.

@morganchristiansson morganchristiansson changed the title Align to s25client coordinate system Align USD texture offset on even rows with s25client Jun 26, 2026
@morganchristiansson morganchristiansson marked this pull request as draft June 26, 2026 03:50
@morganchristiansson

Copy link
Copy Markdown
Contributor Author

I've lost the thread on this PR. Will close it for now.

@morganchristiansson

Copy link
Copy Markdown
Contributor Author

I managed to wrap my head around this again and narrow in on the actual code differences.
It is indeed USD textures on even rows.
Have tested all rendering and tools/brushes and seems correct, but changes are maybe a bit cursed.
I will review my changes further and mark ready for review when I'm happy with it.
Comments are of course welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant