It is currently Sun May 19, 2013 6:24 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: 3D pendule.pb doesn't compile
PostPosted: Mon Nov 28, 2011 7:43 pm 
Offline
User
User

Joined: Wed Aug 03, 2011 4:52 am
Posts: 90
Location: Beirut, Lebanon
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


Top
 Profile  
 
 Post subject: Re: 3D pendule.pb doesn't compile
PostPosted: Mon Nov 28, 2011 10:46 pm 
Offline
Addict
Addict

Joined: Thu Nov 01, 2007 5:37 pm
Posts: 1561
Location: Germany
Here it works (Windows XP, 32bit). Do you use the final 4.60? I think the code didn't work for the beta versions...


Top
 Profile  
 
 Post subject: Re: 3D pendule.pb doesn't compile
PostPosted: Tue Nov 29, 2011 5:49 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Aug 19, 2003 11:36 am
Posts: 1113
Location: Doubs - France
Quote:
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/details.aspx?displaylang=en&id=6883

Quote:
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/


Top
 Profile  
 
 Post subject: Re: 3D pendule.pb doesn't compile
PostPosted: Tue Nov 29, 2011 8:55 pm 
Offline
User
User

Joined: Wed Aug 03, 2011 4:52 am
Posts: 90
Location: Beirut, Lebanon
thanks Comtois!!
works perfectly :D

_________________
PureBasic: Surprisingly simple, diabolically powerful


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye