DirectX9
OpenGL
I set up a BSP map, and added lights in the same place as in the actual .map file and then connected a milkshape model to the camera node, notice 2 diferences in the screens
In DirectX9 the lighting looks great on the model but the lightmap looks bad!
In OpenGL the lightmap looks great but the lighting doesnt work!!!
these are both @ 1024x768 32bit
why??
Diferences in OpenGL and Directx9
WELL...
When I compile the collision example (the one that draws triangles at whatever part of the level you point at, and lights up the 3 faeries.), I have to use OpenGL (cause DirectX won't work yet for me).
The faeries are completley lit (as if lighting is disabled), so you don't see the difference when the cursor hovers over them and lighting is disabled.
But on the hello world example, that I also compile in OpenGL, I added a light flying around in a circle around Sydney, and you can clearly see the shading being applied to her, in the direction of the light, etc.
I could never work out why. I'm using OpenGL both times, but only in one case it doesn't work.
When I compile the collision example (the one that draws triangles at whatever part of the level you point at, and lights up the 3 faeries.), I have to use OpenGL (cause DirectX won't work yet for me).
The faeries are completley lit (as if lighting is disabled), so you don't see the difference when the cursor hovers over them and lighting is disabled.
But on the hello world example, that I also compile in OpenGL, I added a light flying around in a circle around Sydney, and you can clearly see the shading being applied to her, in the direction of the light, etc.
I could never work out why. I'm using OpenGL both times, but only in one case it doesn't work.