LWJGL Forum

Programming => OpenGL => Topic started by: ZomZilla on June 03, 2015, 22:32:05

Title: Generating a minimap from game world tiles
Post by: ZomZilla on June 03, 2015, 22:32:05
Hi,

I am making an isometric 2D game with LWJGL and have procedurally generated areas of a fixed size. How could i go about generating a map of these areas (probably 1 pixel per area tile) in LWJGL? I have not seen any obvious way of creating images so does anyone have any ideas?
Title: Re: Generating a minimap from game world tiles
Post by: Kai on June 04, 2015, 07:02:45
If your world is procedurally generated then why not also procedurally generate the minimap?
Just create a new ByteBuffer, fill it with texels, and then upload it to a texture.
Then display that texture in the game somwhere.