Top "Lighting" questions

Related to computer games' engines and 3d graphics software.

How can I add a normal to a text mesh so that it lights correctly?

I'm using a text mesh to place text on a 3D object, but as you all know, the text mesh …

unity3d lighting normals
Efficient 2D Tile based lighting system

What is the most efficient way to do lighting for a tile based engine in Java? Would it be putting …

java 2d tile lighting
OpenGL lighting problem when rotating the camera

I draw buildings in my game world, i shade them with the following code: GLfloat light_ambient[] = {0.0f, 0.0f, 0.0f, 1.0…

opengl lighting
2D Tile Lighting

I'm adding lighting to my XNA 2D tile based game. I found this article useful, but the way its done …

c# xna 2d hlsl lighting
How does Minecraft perform lighting?

The only model I'm familiar with is diffuse lighting but this look way more complicated than that.

opengl rendering real-time lighting minecraft
How to pass normals to a Vertex Shader in GLSL when using glDrawElements

I am building a simple 3D game for practice, and I am having trouble passing normals to my shader when …

c++ opengl glsl shader lighting
How to rotate a lightsource around a fixed object (OpenGL)?

I'm trying to make a light source rotate around my character model in my OpenGL project, but as I try …

opengl rotation lighting translate-animation glrotate