Home | Rules and Guide | Sign In/Create Account | Write a Post | Reddit | #LD48 | #ludumdare on irc.afternet.org (Info)

Ludum Dare 30 — August 22nd-25th 2014 — Theme: ??? (Suggest a Theme)
  • Ludum Dare 30 Begins: in 20 days, 16 hours, 22 minutes, 6 seconds
  • [ Real World Gatherings | Ludum Deals | MiniLD #53 ]


    2D Game in LWJGL with modern OpenGL, Has anyone done it?

    Posted by
    November 20th, 2013 2:40 am

    Hi,

    I was planning to create a 2D game with LWJGL for LD. I know my way around OpenGL and everything but I haven’t been able to create a tile system with VBO’s, has anyone done it and / or could you give me any tips for doing it. ? Thanks for any answers.

    With modern OpenGL I mean not using glBegin(), glEnd(), glTranslatef();

    In other news here’s a link to a forum post about faster rendering in OpenGL with VBO’s, something you should really look in to. Here’s the link : http://www.java-gaming.org/index.php?topic=28209.0

     

    Tags: , ,

    One Response to “2D Game in LWJGL with modern OpenGL, Has anyone done it?”

    1. whizzter says:

      If you’re doing a “simple” 2d game you’re probably better off with “just” using client side arrays, firstly because they will be simpler to update per-frame (no need to upload data separately from rendering, just update and render) and secondly because you won’t need the extra performance. I did a demo with voxel rendering and if i remember correctly i didn’t see any need for actual buffer objects until i was in the 100k’s of polys. In reality you will probably be fine with “classic” GL in regards to performance on the desktop but the code won’t easily port to mobile.

    Leave a Reply

    You must be logged in to post a comment.


    All posts, images, and comments are owned by their creators.

    [cache: storing page]