Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SH2 map file, meaning of invertReading field in MeshPart #12

Open
alanm20 opened this issue Jan 7, 2025 · 2 comments
Open

SH2 map file, meaning of invertReading field in MeshPart #12

alanm20 opened this issue Jan 7, 2025 · 2 comments

Comments

@alanm20
Copy link

alanm20 commented Jan 7, 2025

In https://github.com/Polymega/SilentHillDatabase/blob/master/SH2/Files/map.md

I don't quite get the meaning of invertReading field in the MeshPart structure. when invertReading is 0 the indices work as triangle strip. I think invertReading 1 means the indices are used as triangle list. I made a Noesis plug for SH2 PC map file to test it and that seems to verify that. https://github.com/alanm20/SH2_map

Thank you for putting silent hill file format researches in this github archive.

@iOrange
Copy link
Collaborator

iOrange commented Jan 8, 2025

I'm not sure what invertReading means here, in my code I ignore it completely, but what they call stripCount - I call it primitiveType.

primitiveType == 1 -> Triangle Strip
primitiveType == 2 -> Triangle Fan (unused in the game)
primitiveType == 3 -> Triangle List

@alanm20
Copy link
Author

alanm20 commented Jan 8, 2025

@iOrange. Ah. PrimitiveType make sense. I should change my code to reflect that. thank you.

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

No branches or pull requests

2 participants