[Gambas-user] gb3: OpenGL help
Kevin Fishburne
kevinfishburne at ...1887...
Mon Oct 17 08:21:24 CEST 2011
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.
--
Kevin Fishburne
Eight Virtues
www: http://sales.eightvirtues.com
e-mail: sales at ...1887...
phone: (770) 853-6271
More information about the User
mailing list