Lightmap Questions
Posted: Sun May 18, 2008 7:26 am
Hi, thanks in advance for helping me with this. I am writing my own Mohaa map renderer. All the polygons/patches load fine and I can see them in wireframe mode. The problem is that when I turn off wireframe everything turns grey. This, I've discovered, is because the lightmaps arent giving any real light to any of the structures, so they all look the same (for now, I have texture mapping off). So, I assume that the Mohaa lightmap is the same as the Quake 3 lightmap stuff (i.e. an array of unsigned char[128][128][3]). For now, I am just trying to get polygons to render (there are very few patches in the map and ill worry about them when i get there). I just use the dsurface_t 's lightmapNum to index into the array and then use the drawVert_t 's lightmap coordinates as they are. Is that right? Do I need to do some processing on that data? Also, Im aware that people here prob. dont know much about OpenGL, but maybe by some chance does anyone know how to multitexture using GLUT?
Thanks so much for reading this and any help you can provide!
chacham15
Thanks so much for reading this and any help you can provide!
chacham15