Tagged Questions
0
votes
4answers
224 views
Opengl lighting not working
I have rendered a spinning model in LWJGL. I have calculated normals and enabled lighting. Now I make a light:
float lightpos[] = {0, 0, 0, 0};
FloatBuffer lightposb = ...
0
votes
1answer
87 views
What is a fast way to darken the vertices I'm rendering?
To make a lighting system for a voxel game, I need to specify a darkness value per vertex. I'm using GL_COLOR_MATERIAL and specifying a color per vertex, like this:
glEnable(GL_COLOR_MATERIAL);
...
0
votes
1answer
367 views
How can I achieve this lighting with OpenGL?
I'm currently trying to implement a type of "smooth" lighting. How can I achieve lighting which looks like this:
http://dl.dropbox.com/u/1668516/concept/warp3.png
Using OpenGl. I've attempted to use ...
0
votes
0answers
192 views
Implementing Lighting OpenGL 2D Quads with Textures
Lets say I have a grid of tiles 64x64 and I want to implement lighting using opengl.
I draw the grid with 2D quads that are binded with textures. How would I implement source lighting and stuff like ...
0
votes
0answers
108 views
OGL lighting issues [closed]
All that seems to be working is ambient light. My room is just dark with no lights in it. I'm not sure if it's relevant, but I'm using LWJGL. Here's my code:
glEnable(GL_LIGHT0);
...
3
votes
1answer
1k views
Can't get LWJGL lighting to work
I'm trying to enable lighting in lwjgl according to the method described by NeHe and this post. However, no matter what I try, all faces of my shapes always receive the same amount of light, or, in ...
6
votes
2answers
582 views
How are dynamic blending shadows like this created?
I would like to know, how dynamic shadows, that 'blend' onto other objects, are created.
3
votes
3answers
707 views
How can I change this isometric engine to make it so that you could distinguish between blocks that are on different planes?
I have been working on an isometric minecraft-esque game engine for a strategy game I plan on making. As you can see, it really needs some sort of shading. It is difficult to distinguish between ...