Hi guys!
I'm rather new to OpenGL, and I'm experimenting with a few ideas I have. At the moment, I'm trying to set up a pseudo-dynamic lighting system, my current method involves constantly changing the Ambient lighting setting with glLight(); multiple times a frame. The problem with this is, as you've probably already guessed is that this method is
EXTREMELY slow, cutting my FPS from ~500fps to ~40-50fps.
I was thinking earlier, and it seems that one solution would be to modify the textures instead of the lighting, which would mean that I could get rid of the lighting and (hopefully) retain the high frame rate.
Does anyone have any idea how to do this at a fast pace, or does anyone know a way to do this differently?
Thanks for the help!
Matt.
P.S. I'm using the in-built Slick-Util TextureLoader for.. well... texture loading.
P. P. S. If anyone would happen to have a good link to a tutorial that describes how you actually upload vertex and texture data to a VBO, I would be very grateful
.