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

Map Indices not loading? #9

Open
recore67 opened this issue Sep 3, 2024 · 2 comments
Open

Map Indices not loading? #9

recore67 opened this issue Sep 3, 2024 · 2 comments

Comments

@recore67
Copy link

recore67 commented Sep 3, 2024

This is more of a personal issue rather than a bug, I'm working on a quake1 map renderer with my bsp file map setup and i've been able to create a mesh from the vertices collected in BSP.Vertices but as i want to collect the Indices from BSP.Indices I get an error saying the collection is null and BSP.IndicesLoaded returns false. Am i doing something wrong? is there like a switch or something to load Indices??

what's even weirder is think Faces aren't even loaded aswell, i'm not able to retrieve any vertex from Face[0].Vertices or Face[0].Indices

@wfowler1
Copy link
Owner

wfowler1 commented Sep 3, 2024

Quake 1 uses edges instead. The Face struct has a FirstEdgeIndexIndex and NumEdgeIndices. These give a list of ints from lump 13, and those ints reference the edges in lump 12. A negative index means the two vertices are used in reverse.

@recore67
Copy link
Author

recore67 commented Sep 24, 2024

Sorry that this is a bit too late but i still haven't gotten the idea properly, can you give a brief on would I'd be able to retrieve them both?

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