Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Rendering 2D tiled map  (Read 1776 times)

0 Members and 1 Guest are viewing this topic.

herpderp

  • Newbie
  • *
  • Posts: 1
    • View Profile
Rendering 2D tiled map
« on: August 03, 2018, 05:40:35 pm »
Hi, I started making a project to render a map using SFML from a tiled map editor map file. Quite simple really, the best way I have read is rendering the map as a single image of tiles that is stored in cache. However, when I attempt to render this image I get errors saying that SFML can't render an image larger than 1024x1024. How do I bypass this?

I don't wish to render my map tile by tile as it is way less efficient,

Thanks in advance.

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Rendering 2D tiled map
« Reply #1 on: August 03, 2018, 06:48:00 pm »
You could use VertexArray or (better, if they're available) VertexBuffer. What was the exact error you got? SFML doesn't limit the size of textures you can use, your GPU does.
Back to C++ gamedev with SFML in May 2023

verdog

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • Email
Re: Rendering 2D tiled map
« Reply #2 on: August 03, 2018, 06:56:23 pm »
Have you seen this tutorial?