Page 1 of 1

3D pendule.pb doesn't compile

Posted: Mon Nov 28, 2011 7:43 pm
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

Re: 3D pendule.pb doesn't compile

Posted: Mon Nov 28, 2011 10:46 pm
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...

Re: 3D pendule.pb doesn't compile

Posted: Tue Nov 29, 2011 5:49 pm
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

Re: 3D pendule.pb doesn't compile

Posted: Tue Nov 29, 2011 8:55 pm
by morosh
thanks Comtois!!
works perfectly :D