GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Align USD texture offset on even rows with s25client by morganchristiansson · Pull Request #48 · Return-To-The-Roots/s25edit

Conversation

@morganchristiansson

@morganchristiansson morganchristiansson commented Jun 22, 2026

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@morganchristiansson
morganchristiansson force-pushed the align-coords branch from 8501b0f to ecd7dc1 Compare June 26, 2026 01:25
@morganchristiansson

morganchristiansson commented Jun 26, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@morganchristiansson
morganchristiansson force-pushed the align-coords branch from 12dc570 to a325088 Compare June 26, 2026 02:56
@morganchristiansson morganchristiansson changed the title Align to s25client coordinate system Align USD texture offset on even rows with s25client Jun 26, 2026
@morganchristiansson
morganchristiansson force-pushed the align-coords branch from a325088 to 3784724 Compare June 26, 2026 03:14
@morganchristiansson
morganchristiansson marked this pull request as draft June 26, 2026 03:50
@morganchristiansson

morganchristiansson commented Jun 26, 2026

Copy link
Copy Markdown
Contributor Author

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@morganchristiansson morganchristiansson closed this Jun 26, 2026
morganchristiansson and others added 6 commits June 29, 2026 16:23
@morganchristiansson Morgan Christiansson
Align USD texture offset on even rows with s25client
822db7d
Morgan Christiansson
Update
c0484c4
Morgan Christiansson
Fix terrain triangles
492d3eb
Morgan Christiansson
Align USD texture and border reads with s25client I/O shift
b047f40
Morgan Christiansson
Fix resources & tools
30021b8
Morgan Christiansson
Fix vertical wrap triangle
7320c45
@morganchristiansson morganchristiansson reopened this Jun 29, 2026
@morganchristiansson
morganchristiansson force-pushed the align-coords branch from 3784724 to 7320c45 Compare June 29, 2026 16:28
@morganchristiansson

morganchristiansson commented Jun 29, 2026

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Jun 30, 2026
Use pos from GameDataLoader #55
Open
Fix ore placements #60
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@morganchristiansson
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.