Page 1 of 1

Diferences in OpenGL and Directx9

Posted: Sat May 08, 2004 11:25 pm
by 32_weaselType
DirectX9
Image
OpenGL
Image

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??

Posted: Sun May 09, 2004 12:24 am
by Acki
Well, I have the problem, that DX9 doesn't create mip maps and therfore the world txtures looking bad...
So I'm using DX8 and everything is correct !!!

(I'm using DevCpp with DX9 compiled Irrlicht)

In your opengl pic it seems that the player modell is unlit...

CU, Acki

Posted: Sun May 09, 2004 2:19 am
by s23_weaselType
I know, in OpenGL the lighting doesnt work at all.

is there a fix for this problem in DirectX9 yet?

Posted: Tue May 11, 2004 3:51 am
by Domarius
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.