Skip to content

Conversation

@alt-romes
Copy link
Owner

Screenshot 2025-11-24 at 00 15 34

@walseb here's some progress :)

One slight thing I'm concerned about is that I needed to set cull mode = Front for this to work. But I thought that .obj used counter clockwise faces and that the engine was using the same type, so it should match by default. Something slightly odd but I'll take a closer look later.

The vectors we read from can be Storable or not. It doesn't matter when
reading so no point in forcing a conversion just to do the lookups. Now
the function returns normal Vectors, which can be converted by the user
with V.convert after the fact.
I mistakenly thought this for a GHC bug (#26605) because I wasn't using
checked bounds.
Needs cull-mode = None, or Front for good results

Does that mean we're doing triangle order wrong?! Try more meshes...
@alt-romes alt-romes merged commit 8b9ec62 into master Nov 24, 2025
1 check passed
@walseb
Copy link
Contributor

walseb commented Nov 25, 2025

Excellent work!

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.

3 participants