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.
5 Replies
⌛
This post has been reserved for your question.
Hey @The Typhothanian! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose 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.
Also, the cube model uses GL_QUADS, but there is an option for GL_TRIANGLES
"Error, this is a private paste or is pending moderation. If this paste belongs to you, please login to Pastebin to view it."
Oh
Okay, I fixed the pastebin
And I figured out the issue: Needed to call Model.unbind after glDrawElements
Post Closed
This post has been closed by <@801145088830210129>.