error running 3d\pendulum.pb

Everything related to 3D programming
morosh
Enthusiast
Enthusiast
Posts: 336
Joined: Wed Aug 03, 2011 4:52 am
Location: Beirut, Lebanon

error running 3d\pendulum.pb

Post by morosh »

Hello:

I tried to try pendulum.pb supplied in examples\3D folder, I got IMA at line 152: RenderWorld()

any idea?
PureBasic: Surprisingly simple, diabolically powerful
User avatar
spikey
Enthusiast
Enthusiast
Posts: 789
Joined: Wed Sep 22, 2010 1:17 pm
Location: United Kingdom

Re: error running 3d\pendulum.pb

Post by spikey »

Works fine here. Can you provide more information about the environment you're trying to run it in?
The operating system you are using, the PureBasic version details, the settings specified in the configuration dialog, is it just one configuration that fails or more than one...
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4794
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: error running 3d\pendulum.pb

Post by Fangbeast »

Mine dies here as well but I seem to remember that a certain subsystem had to be specified?

Just tested by specifying OpenGL as the subsystem and then it works fine.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
applePi
Addict
Addict
Posts: 1404
Joined: Sun Jun 25, 2006 7:28 pm

Re: error running 3d\pendulum.pb

Post by applePi »

you may need to install DirectX 9 look here
http://purebasic.fr/english/viewtopic.p ... 56#p486425
or try it in opengl subsystem
morosh
Enthusiast
Enthusiast
Posts: 336
Joined: Wed Aug 03, 2011 4:52 am
Location: Beirut, Lebanon

Re: error running 3d\pendulum.pb

Post by morosh »

Thanks for reply!!
First I have W7-x64 and PB5.42LTS-x32
I've added OpenGL in the library subsystem field in compiler options, no more error on line 152: RenderWorld(), but a new one (IMA) on line 59: CreateEntityBody(support, #PB_Entity_StaticBody)

any help is greatly appreciated.

EDIT: does dx9 (directx_Jun2010_redist.exe) need to be installed?

thanks
PureBasic: Surprisingly simple, diabolically powerful
applePi
Addict
Addict
Posts: 1404
Joined: Sun Jun 25, 2006 7:28 pm

Re: error running 3d\pendulum.pb

Post by applePi »

does dx9 (directx_Jun2010_redist.exe) need to be installed?
in the PB documentation :On Windows, a recent version of DirectX 9 needs to be installed
https://www.purebasic.com/documentation ... ine3d.html
the directx_Jun2010_redist.exe will expand itself to some folder of the choice then run the dxsetup.exe . it will not damage the DirectX 11 on the windows 7, several versions of dx can coexist at the same time. please feed back if the pendulum example works if you installed dx9. i have also win7/64bit installed on the second partition and i have installed this package too.
morosh
Enthusiast
Enthusiast
Posts: 336
Joined: Wed Aug 03, 2011 4:52 am
Location: Beirut, Lebanon

Re: error running 3d\pendulum.pb

Post by morosh »

I installed directx_Jun2010_redist.exe, and removed OpenGL from library subsystem field in compiler options, and now it works!!!
the link in the help file "DirectX 9 runtime installer" redirect to windows 10 and not to DirectX9, it should be updated.

thanks for help
PureBasic: Surprisingly simple, diabolically powerful
Post Reply