Page 1 of 1

shall i install direct9 or allow him to select the driver?

Posted: Wed Aug 09, 2006 5:53 am
by omarb
when creating my application.. shall i install Directx9 on the users computer along with it, or allow him to select the most suitable driver?
what is the best practice.. thanks

Posted: Wed Aug 09, 2006 6:33 am
by jam
I think the best option in my opinion would be to let the user decide what driver to use. I suppose you could also try and start your program up with DirectX if createDevice returns null then try Opengl and so on.

Posted: Wed Aug 09, 2006 1:28 pm
by omarb
hi,
i tried this: (as u notice i am using .net)
this is not crashing but i am getting a grey screen
Try
If device Is Nothing Then
device = New IrrlichtDevice(Irrlicht.Video.DriverType.OPENGL, New Dimension2D(c.Width, c.Height), 32, False, False, False, True, c.Handle)
End If
Catch ex As Exception
End Try
Try
If device Is Nothing Then
device = New IrrlichtDevice(Irrlicht.Video.DriverType.DIRECT3D9, New Dimension2D(c.Width, c.Height), 32, False, False, False, True, c.Handle)
End If
Catch ex As Exception
End Try
Try
If device Is Nothing Then
device = New IrrlichtDevice(Irrlicht.Video.DriverType.DIRECT3D8, New Dimension2D(c.Width, c.Height), 32, False, False, False, True, c.Handle)
End If
Catch ex As Exception
End Try

----------------------------
on this machine when i use this directly the application works:
device = New IrrlichtDevice(Irrlicht.Video.DriverType.OPENGL, New Dimension2D(c.Width, c.Height), 32, False, False, False, True, c.Handle)
any idea why that is happening?

Posted: Thu Aug 10, 2006 4:57 am
by jam
Someone else more knowledgeable with .NET will have to help you with that code snippet.