Page 1 of 1

error running 3d\pendulum.pb

Posted: Tue May 03, 2016 8:07 am
by morosh
Hello:

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

any idea?

Re: error running 3d\pendulum.pb

Posted: Tue May 03, 2016 10:56 am
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...

Re: error running 3d\pendulum.pb

Posted: Tue May 03, 2016 11:50 am
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.

Re: error running 3d\pendulum.pb

Posted: Tue May 03, 2016 3:50 pm
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

Re: error running 3d\pendulum.pb

Posted: Tue May 03, 2016 7:52 pm
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

Re: error running 3d\pendulum.pb

Posted: Wed May 04, 2016 7:57 pm
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.

Re: error running 3d\pendulum.pb

Posted: Thu May 05, 2016 7:04 am
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