{"author_name":"Nicholas Reda","cat":"LD #27","comments":[{"author_name":"kgb","time":"August 21, 2013 9:03 pm","epoch":1377136980,"text":"I have no idea really, I only did Opengl in school. But i remember a project I was working on where I needed to call glBindBuffer before i did something with VBOs, vague i know.. but I wish I could help more.","spam":"N"},{"author_name":"TammiLion","time":"August 21, 2013 11:10 pm","epoch":1377144600,"text":"Have you checked stackoverflow\/ stackexchange (you also have a gamedev variant) yet?","spam":"N"}],"epoch":1377131700,"likes":1,"metadata":{"p_key":"41671","p_author":"Nicholas Reda","p_authorkey":"505440","p_urlkey":"77294","p_title":"Help! (Code) [Urgent]","p_cat":"LD #27","p_event":"LD27","p_time":"1377131700","p_likes":"1","p_comments":"2","p_status":"UPD5","us_key":"505440","us_name":"Nicholas Reda","us_username":"Nicholas Reda","event_start":"1377216000","event_key":"18","event_name":"LD27"},"text":"<p>Hey Ludum Darers!<\/p>\n <p>I&#8217;ve been roaming in the wonderful world of OpenGL and I&#8217;m super close to making a really nice library that I&#8217;ll be able to use for the compo!<\/p>\n <p>However, I am in need of some help. If anyone has experience with LWJGL\/OpenGL and some free time, I&#8217;d really appreciate it.<\/p>\n <p>&nbsp;<\/p>\n <p>I&#8217;ve been having problems using Vertex Buffer Objects. because the system throws an exception saying &#8220;Cannot use offsets when array buffer object is disabled&#8221; whenever I try to call glPointer operations. \u00a0(See line ~845)<\/p>\n <p>I&#8217;m clueless as to what this means, being that there is no GL Enum called ARRAY_BUFFER_OBJECT. Any help on what it might mean or what I&#8217;ve coded wrong would be nice.<\/p>\n <p>&nbsp;<\/p>\n <p>Also, I&#8217;ve been having problems with FrameBuffer objects. They never seem to render to anything at all. The class is at line ~1355<\/p>\n <p>I&#8217;m pretty sure it&#8217;s within the Three.GL.FrameBuffer class, but I can&#8217;t seem to find the problem.<\/p>\n <p>&nbsp;<\/p>\n <p>Yes, the class is called &#8220;Three&#8221; until I can think of something better.<\/p>\n <p>To use the library, \u00a0just copy the class file into your game, create a class that implements Three.GameObject, then call create(params), defineGameObject(GameObject), and start() to begin.<\/p>\n <p>Three.GL houses all kinds of shortcuts for OpenGL, Three.AL does the same for OpenAL, and Three.Util is a little module I&#8217;ve created for containing anything that I might find useful.<\/p>\n <p>&nbsp;<\/p>\n <p>LINK: <a href=\"https:\/\/www.dropbox.com\/s\/pqqni9bjyup41sk\/Three.java\">https:\/\/www.dropbox.com\/s\/pqqni9bjyup41sk\/Three.java<\/a><\/p>\n <p>&nbsp;<\/p>\n <p>Please tell me any solutions in the comments. I&#8217;ll post a final edit of the class file either when it&#8217;s fixed or the day of the competition.<\/p>\n <p>Thank you and good luck!<\/p>\n <p>&nbsp;<\/p>\n <p>&nbsp;<\/p>","time":"August 21st, 2013 7:35 pm","title":"Help! (Code) [Urgent]"}