Results 1 to 10 of 121

Thread: G.T.A.2 Map Editor

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    PGD Staff / News Reporter phibermon's Avatar
    Join Date
    Sep 2009
    Location
    England
    Posts
    524
    well filtering a texture atlas is always going to give you issues like you describe, keeping a transparent border around sub-textures is the usual generic solution, GL_CLAMP_TO_EDGE won't help you as you're not necessarily addressing the texture up to it's edge for all sub-images.

    Caveats you must accept for the performance gains of a texture atlas.

    I'm working in OpenGL 4.x currently and I don't support anything less than 3. I did that specifically because I didn't have to jump through all the hoops. I'm guaranteed to have NPOT support, guaranteed to have uniform buffers, tessellation stages on 4.x hardware blah blah blah

    it's so much less of a headache than GL1.x GL2.x, GLES etc

    And it's only a matter of time before GL2.x is about as common as Glide (3DFX) plus the next itteration of GLES will be in the GL3.x/4.x style.

    If you're working on projects with epic timescales, you've got to plan 3/4 years ahead. If you don't then you end up like GLScene with almost no ability to switch to the current versions (GL3 is old now) except a significant re-write of many parts.

    I mean look at all those epic game titles from the 90s, games coming out in 1997/98 that ran in DOS!

    You've got to think ahead, I'd advise anybody to throw GL1.x and 2.X out of the window immediately (pun intended) and work in a GL3 core profile at the very least. Doesn't matter if your card doesn't support it, that's what Mesa is for. And if you miss immediate mode functions for debugging purpouses, use a delphi/lazarus form with your window to display stuff or just re-implement immediate mode functionality on top of VBOs and shaders, I did that and never looked back.
    Last edited by phibermon; 31-03-2013 at 06:52 PM.
    When the moon hits your eye like a big pizza pie - that's an extinction level impact event.

  2. #2
    Quote Originally Posted by phibermon View Post
    I'm working in OpenGL 4.x currently and I don't support anything less than 3. I did that specifically because I didn't have to jump through all the hoops. I'm guaranteed to have NPOT support, guaranteed to have uniform buffers, tessellation stages on 4.x hardware blah blah blah

    it's so much less of a headache than GL1.x GL2.x, GLES etc...
    I have plans for that, it's just lots of work... I already rewrote the shader classes 2 weeks ago so the "concrete basing" is already set tight Building the renderer and all the shaders won't be easy though. Basically the 2D drawing code from programmers part will hardly change at all. Instead of nx.DrawRotate(), you'll just propably get nx.renderer.DrawRotate() with same parameters. The plan is to have polygon queue which adds and adds stuff, and then draw all of them at once. On change of texture, polygon mode (triangle/quad), or shader program change it will render the queue and start over again. That stuff should be invisible for the programmer. I would also be able to support uniform light arrays for example, in theory at least. Almost can't wait to get writing the shaders, just that true game programmer is also a gamer himself that is the major issue

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •