3D pendule.pb doesn't compile

Advanced game related topics
morosh
Enthusiast
Enthusiast
Posts: 336
Joined: Wed Aug 03, 2011 4:52 am
Location: Beirut, Lebanon

3D pendule.pb doesn't compile

Post by morosh »

Hello:
just beginning playing with 3D, I tried to run the 3D pendule.pb example, I didn't succeed:
if I choose "windowed", I get error at line 150 : RenderWorld() : Invalid memory access: (read error at address 0)
if i choose "fullscreen", i get error in called "Screen3DRequester.pb" at line 161:
Result = OpenScreen(ScreenWidth, ScreenHeight, ScreenDepth, "3D Demos", #PB_Screen_WaitSynchronization, RefreshRate)
message: the screen depth must be 4, 8, 16, 24 or 32


what's the problem??

thank you
PureBasic: Surprisingly simple, diabolically powerful
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: 3D pendule.pb doesn't compile

Post by c4s »

Here it works (Windows XP, 32bit). Do you use the final 4.60? I think the code didn't work for the beta versions...
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
User avatar
Comtois
Addict
Addict
Posts: 1432
Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France

Re: 3D pendule.pb doesn't compile

Post by Comtois »

I get error at line 150 : RenderWorld() : Invalid memory access: (read error at address 0)
have you installed this ?
http://www.microsoft.com/download/en/de ... en&id=6883
if i choose "fullscreen", i get error in called "Screen3DRequester.pb" at line 161:
Result = OpenScreen(ScreenWidth, ScreenHeight, ScreenDepth, "3D Demos", #PB_Screen_WaitSynchronization, RefreshRate)
message: the screen depth must be 4, 8, 16, 24 or 32
This can happen if you dont select a screen in the ComboBoxGadget
Please correct my english
http://purebasic.developpez.com/
morosh
Enthusiast
Enthusiast
Posts: 336
Joined: Wed Aug 03, 2011 4:52 am
Location: Beirut, Lebanon

Re: 3D pendule.pb doesn't compile

Post by morosh »

thanks Comtois!!
works perfectly :D
PureBasic: Surprisingly simple, diabolically powerful
Post Reply