Traditionally people add colors of lightmaps and the textures at run time. I think it is expensive in java, because you have to first convert binary color data to RGB, then convert them back after the addtion. There is no convient way to add binary color structure. In my demo, I precalculated lightmaps for each polygon . The disadvantage is that it consumes more memory, since all polygons now have their unique textures. But it looks pretty cool
here is a screen shot:
here is where you can grab the demo: (copy the url and paste it to your address bar, otherwise it won\'t work.)http://www.freewebs.com/phu004/bedroom.zip
Click the link bellow to run it:http://www.freewebs.com/phu004/bedroom/Bedroom.html
This demo is a java applet, double click bedroom.html to run it.
press\"awsd\" keys to move around, and press arrow keys to rotate camera.
Tell me your average FPS if you run my demo successfully.