SFML community forums

Help => Graphics => Topic started by: Qluxzz on June 24, 2013, 09:25:34 pm

Title: Large Textures & maps
Post by: Qluxzz on June 24, 2013, 09:25:34 pm
Hi there. I'm trying to make a sidescroller type game. The problem I'm having is that I don't know how to make large maps without getting the Texture size error. For example: In the game Limbo they have huge maps without running into an error like that. How is this done?

Thanks in advance
 
Title: Re: Large Textures & maps
Post by: Laurent on June 24, 2013, 09:43:06 pm
Split it into multiple textures.
Title: Re: Large Textures & maps
Post by: Polyfructol on June 24, 2013, 09:52:15 pm
In Limbo, there is large maps, but there is no need to load "large" textures. They just display a lot of objects at given positions. That's why map editor exists: http://forum.unity3d.com/attachment.php?attachmentid=31197&stc=1&d=1329779441
Title: Re: Large Textures & maps
Post by: Laurent on June 24, 2013, 10:28:28 pm
Today's 3D games display millions of triangles per second. This is "so much".
A simple 2D game made of tiles (a few thousands?) is not much. Your graphics card is laughing.
Title: Re: Large Textures & maps
Post by: Polyfructol on June 24, 2013, 10:42:05 pm
Yeah I guess so. I might just be stuck in the 1980's xD

Not even close :).

NES sprite size limit (http://nintendo.wikia.com/wiki/Nintendo_Entertainment_System#Technical_specifications) was 8x16 pixels. From the beggining, games are made by displaying a lot of "relatively" tiny elements next together.