[Gambas-user] gb3: OpenGL help

Girard Henri girardhenri at ...67...
Mon Oct 17 20:57:09 CEST 2011


you can find all email on the list recently about opengl in gambas
Le 17/10/2011 08:21, Kevin Fishburne a écrit :
> I need some general help with implementing a few things in OpenGL. I
> know many new OpenGL functions were added to gb3, but am not sure of the
> extent or what I need to do with them.
>
> I need to create a polygonal grid and apply different textures to
> different parts of it. The grid should be a single object for purposes
> of shading and light sources. I've heard of a "multitexture" function,
> but am not sure if that's what I need.
>
> As a usage example, let's say I have a 16x16 grid of landscape tiles.
> The images for each tile are in an array of OpenGL textures, so I have
> 256 separate OpenGL textures. I want to create a polygonal grid object
> with subdivisions representing the 16x16 tiles and draw the 256 textures
> onto the grid. Is this possible in OpenGL in general, or in gb3's OpenGL
> implementation specifically?
>
> Think of it like drawing the screen tiles for an old Ultima-style game,
> but the tiles would be on a single polygonal object.
>
> I'd also like to know if billboard-style textures are supported in gb3's
> OpenGL implementation, which I'll need to implement should the first
> point be possible. Any help would be greatly appreciated. A kind gb user
> also sent me the OpenGL redbook, which I can use for reference if the
> functions are supported by gb.
>





More information about the User mailing list