-
Disappearing sides
Recently finished making a cube rotate using functions I wrote myself to calculate MVP matrices and such.
The cube appears and rotates, but seems to be partially transparent despite me telling it not to be, and sides disappear as they come to the front.
I expect it to look like this.
Code: http://pastebin.com/AuDVuUy5 (in a paste bin for brevity)
Shader files: http://pastebin.com/WFKdQY2x
Really sorry for the enormous code dump, but I've absolutely no idea whereabouts this error is coming from
.
I can clarify on any of the allegro calls that aren't obvious.
-
Junior Member
Regular Contributor
Re: Disappearing sides
Not having looked at your code, but could it be that you hit the near cut-off of the frustum?
-
Re: Disappearing sides
Don't think so, firstly it's sides disappearing, not chunks of cube, secondly I've tried pushing the cube a long way back in the frustrum and the problem persists.
Thanks anyway
-
Re: Disappearing sides
Problem solved, complete brain failure, nothing to do with OpenGL. Had failed to tell Allegro that I wanted an OpenGL context with a depth buffer.
Thanks for the help anyway.
Angus
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules