Results 1 to 2 of 2

Thread: How to create frustum culling from an orthographic projection for a 2D tile game?.

  1. #1
    Newbie Newbie
    Join Date
    Jul 2016
    Posts
    2

    How to create frustum culling from an orthographic projection for a 2D tile game?.

    I'm currently working on a 2d tiled based game, in which when I render many tiles, the fps goes seriously down. I know why this is happening, its happening because they are a lot of objects being created and rendered at the same time. I read that we need something called frustum culling, i'm trying to implement and create that. But I don't know how to create a frustum from an orthographic projection. I have read many articles, searching all day, but couldn't find anything that can help.

    Note: I'm using VBOs and a sprite sheet.
    If you want any of my code, please ask me.
    Thanks.

  2. #2
    Senior Member Regular Contributor
    Join Date
    May 2016
    Posts
    112
    A frustum doesn't really make sense in an orthographic projection. A frustum is a box in orthographic projection. Unless you have a bunch of sprites you are drawing off screen, it would seem to me that you are already doing this.

    I would think "batching" is the answer, to limit the number of draw calls you are making.

Similar Threads

  1. How to create a 3D hexagonal tile?
    By z_Zelman in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 06-07-2013, 11:22 AM
  2. 2d orthographic projection bug???
    By HollanErno in forum OpenGL: Advanced Coding
    Replies: 24
    Last Post: 03-26-2008, 02:47 PM
  3. Tile based game
    By delphiripper in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 12-02-2004, 01:04 PM
  4. Frustum Culling with modelview and projection matrixes
    By markun in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 05-26-2003, 07:25 AM
  5. Tile Game Using GLUT
    By in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 11-06-2001, 12:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean