Skip to main content
gamedev.net
🔒 Locked

NeXe tutorial problem

Started by bakery2k1 Oct 23, 2001 at 7:46 AM 6 replies 650+ views
Original Post
bakery2k1
bakery2k1
On running NeXe''s first tutorial, the window just appears and then dissapears. The program is failing on the lines: g_hr=g_pDirect3D->CreateDevice( D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, g_hWnd, D3DCREATE_SOFTWARE_VERTEXPROCESSING, &presentParameters, &g_pDevice ); if (FAILED(g_hr)) // If it failed, return failure return false; What could be wrong? Thanks Paul
KingsRevenge
KingsRevenge
Are you defining your Direct3d device? And are you filling in the present parameters with the correct data. If you set the present paramater for windowwed mode and the app runs in fullscreen or vice versa, it will crash.

Eric Wright o0Programmer0o

AcidRain Productions
Eric Wright o0Programmer0o
bakery2k1
bakery2k1
I assume so, I haven''t changed any code fro the tutorial.
xstreme2000
xstreme2000
Is it because its trying to use hardware accelleration and you don''t have a 3D video card or at least it is not you default adapter???
bakery2k1
bakery2k1
You''re right, I dont have a 3d card. (Running from a laptop). How can I change the code so it runs?
DrunkenHyena
DrunkenHyena
G''day!

Using the Reference Rasterizer will be painfully slow. Expect speeds around 1 frame per second. Ref was designed for debugging, not for general use. Just so you know what to expect...
Stay Casual,KenDrunken Hyena</FON

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.