JOGL Model Issues

I'm making a 3D game with JOGL. However, there is a weird model issue. Pic 1 is a 5x5x5 cube of cubes. But, the last cube to be made is just a weird triangle (pic 2). In the current system, I am creating a new cube model for each entity. Pic 3 is what it looks like when re-using the same model. Here's a pastebin of the relative code: https://pastebin.com/vA6T1rFs
Pastebin
javahelp discord post code - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
No description
No description
No description
5 Replies
JavaBot
JavaBot10mo ago
This post has been reserved for your question.
Hey @The Typhothanian! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
The Typhothanian
The TyphothanianOP10mo ago
Also, the cube model uses GL_QUADS, but there is an option for GL_TRIANGLES
tjoener
tjoener10mo ago
"Error, this is a private paste or is pending moderation. If this paste belongs to you, please login to Pastebin to view it."
The Typhothanian
The TyphothanianOP10mo ago
Oh Okay, I fixed the pastebin And I figured out the issue: Needed to call Model.unbind after glDrawElements
JavaBot
JavaBot10mo ago
Post Closed
This post has been closed by <@801145088830210129>.
Want results from more Discord servers?
Add your server