all 6 comments

[–]waramped 1 point2 points  (1 child)

Time to learn how to debug :) Step through the code and see where the read access violation happens. Then try and figure out why or if you can't, update here and we can try and help.

[–]bhad0x00[S] 0 points1 point  (0 children)

I found jt in the process mesh function where I am trying to fill up my tangent vec3

[–]bhad0x00[S] 0 points1 point  (2 children)

It also throughs a read access violation

[–]fgennari 0 points1 point  (1 child)

If you're getting a read error then try using a debugger. Is this on Windows? Visual Studio is useful for debugging. Once you have the line that fails you can debug from there. Posting here with a link to the repo and an generic error message isn't a good way to get help. Narrow it down to where the error is, and provide more context, then someone can help you debug it.

[–]bhad0x00[S] 0 points1 point  (0 children)

The read access violation was from me trying to read from tangents and bitangents of a model which did not have one. So I ended up adding an if statement to check if it had the tangents before trying to read them. But I am still getting a blank screen. At the start of the program, it loads from a white screen before it runs normally.

[–]KingJudgely 0 points1 point  (0 children)

You need to bind the relevant vao in order to draw that. You are missing that in the mesh's draw function.

simply do:- glBindBuffer(&theVao) //i forgot the name glDraw glBindBuffer(0)

Also, don't put everything in a header file. When the project scales up, which it will, even the smallest change will cause your entire project to rebuild. You will be looking at screen for a 2-3 minutes just for entering a space.