3D OpenGL Engine

BlitzPlus Forums/BlitzPlus Programming/3D OpenGL Engine

Whew!

Got lights and lightmaps working, completely. Check this out:

You know how I am allocating like triangles into "surfaces" for grouping the rendering? Well, it turns out the same thing has to be done for lightmaps. So while the user just paints a material or a lightmap on a single triangle, the engine allocates and stores two lists of "surfaces", one sorted by material, a second sorted by lightmap...pretty interesting, but it works great! It's not slow, because it only gets changed if the mesh is altered. This is SOOOOOOO much easier than Blitz3D, where vertes and tris "belong" to a surface.

I am currently adding the final dynamic lighting method, "decal" lights...will post a more official update when I get this done.

See this OpenGL thread:
http://www.opengl.org/discussion_boards/ubb/Forum2/HTML/014915.html