I am starting a game project which will allow characters to hide in dark areas. Hiding in a dark corner should make it harder for other characters to see you.
What I need is a way to calculate how the lighting conditions are where the character is located.
The ideal would be to have a
double getLightFactor(GameCharacter observer, Gam...
How should I implement more than 8 lights in OpenGL?
I would like to render unlimited amounts of lights efficiently.
So, whats the preferred method for doing this?
...
How i can disable lighting for only one of the textures in this multitexturing scheme? I tried to use glDisable(GL_LIGHTING) and glEnable(GL_LIGHTING) but it doesnt remember the settings when i render the quad.
Here is the code snippet:
glDisable(GL_LIGHTING);
glEnable(GL_BLEND);
glDisable(GL_TEXTURE_RECTANGLE_ARB);
glDisable(GL_TEXTU...
Hi all,
currently, I use glDrawArrays to render texture in simple quads. I hope increase framerate by using glDrawTexfOES instead (all my sprites have the same z position).
Before doing this work I would like to know if these textures will still be affected by my 3d lights.
...
Hello, I have a little javascript/css script that fades my website to black, except for the video in the middle, to give a sort of theatre effect
Example : http://www.animefushigi.com/bleach-episode-293
Click LIGHTS OUT
The script adds a black overlay on the entire page except for the "vidboxx" div.
Some people say that it is worki...