Page 1 of 2

PB 5.00 beta7 WinXP_32 3D examples are not working on my PC

Posted: Tue Oct 30, 2012 2:15 pm
by Kurzer
I have tested some of the 3D examples but all examples which are using "If Screen3DRequester()" doesnt work.

I run the example, choose a window size or fullscreen, press OK and then the programm immediately ends.
Debug Screen3DRequester() retuns 0.

My DirectX system is: 9.0c (4.09.0000.0904)
No special compiler options are set... just install PB 5.00 b7, run in /PORTABLE mode und load one of the 3D-examples (Billboard.pb)

Does anyone can help? It seems it is an odd setting of my OS installation (Win XP, 32 bit)

Re: PB 5.00 beta7 WinXP_32 3D examples are not working on my

Posted: Tue Oct 30, 2012 4:49 pm
by Fred
Can you check why it returns 0 ?

Re: PB 5.00 beta7 WinXP_32 3D examples are not working on my

Posted: Tue Oct 30, 2012 5:00 pm
by Kurzer
Yes, the problem is located in the includefile "Screen3DRequester.pb".
The OpenWindowedScreen()command in line 212 returns a zero.

Code: Select all

Result = OpenWindowedScreen(WindowID(#WINDOW_Screen3DRequester), 0, 0, ScreenWidth, ScreenHeight, 0, 0, 0)

Debug Result 
; -- prints 0
#WINDOW_Screen3DRequester = 0
WindowID(#WINDOW_Screen3DRequester) = 4131176
ScreenWidth = 800
ScreenHeight = 600
... says the variable viewer (tooltip at mousepointer during debugging)

Re: PB 5.00 beta7 WinXP_32 3D examples are not working on my

Posted: Tue Oct 30, 2012 5:12 pm
by Fred
Could you check your Ogre.log ? and post it here ? You need to put #PB_Engine_LogOutput in InitEngine3D().

Re: PB 5.00 beta7 WinXP_32 3D examples are not working on my

Posted: Tue Oct 30, 2012 5:16 pm
by Kurzer
Oui, I will do so.

Here is the logfile.
17:13:49: Creating resource group General
17:13:49: Creating resource group Internal
17:13:49: Creating resource group Autodetect
17:13:49: SceneManagerFactory for type 'DefaultSceneManager' registered.
17:13:49: Registering ResourceManager for type Material
17:13:49: Registering ResourceManager for type Mesh
17:13:49: Registering ResourceManager for type Skeleton
17:13:49: MovableObjectFactory for type 'ParticleSystem' registered.
17:13:49: OverlayElementFactory for type Panel registered.
17:13:49: OverlayElementFactory for type BorderPanel registered.
17:13:49: OverlayElementFactory for type TextArea registered.
17:13:49: Registering ResourceManager for type Font
17:13:49: ArchiveFactory for archive type FileSystem registered.
17:13:49: ArchiveFactory for archive type Zip registered.
17:13:49: ArchiveFactory for archive type EmbeddedZip registered.
17:13:49: DDS codec registering
17:13:49: FreeImage version: 3.10.0
17:13:49: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
17:13:49: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,koa,iff,lbm,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,dds,gif,g3,sgi,j2k,j2c,jp2
17:13:49: PVRTC codec registering
17:13:49: Registering ResourceManager for type HighLevelGpuProgram
17:13:49: Registering ResourceManager for type Compositor
17:13:49: MovableObjectFactory for type 'Entity' registered.
17:13:49: MovableObjectFactory for type 'Light' registered.
17:13:49: MovableObjectFactory for type 'BillboardSet' registered.
17:13:49: MovableObjectFactory for type 'ManualObject' registered.
17:13:49: MovableObjectFactory for type 'BillboardChain' registered.
17:13:49: MovableObjectFactory for type 'RibbonTrail' registered.
17:13:49: *-*-* OGRE Initialising
17:13:49: *-*-* Version 1.8.0 (Byatis)
17:13:49: D3D9 : Direct3D9 Rendering Subsystem created.
17:13:49: D3D9: Driver Detection Starts
17:13:49: D3D9: Driver Detection Ends
17:13:49: OpenGL Rendering Subsystem created.
17:13:49: Particle Emitter Type 'Point' registered
17:13:49: Particle Emitter Type 'Box' registered
17:13:49: Particle Emitter Type 'Ellipsoid' registered
17:13:49: Particle Emitter Type 'Cylinder' registered
17:13:49: Particle Emitter Type 'Ring' registered
17:13:49: Particle Emitter Type 'HollowEllipsoid' registered
17:13:49: Particle Affector Type 'LinearForce' registered
17:13:49: Particle Affector Type 'ColourFader' registered
17:13:49: Particle Affector Type 'ColourFader2' registered
17:13:49: Particle Affector Type 'ColourImage' registered
17:13:49: Particle Affector Type 'ColourInterpolator' registered
17:13:49: Particle Affector Type 'Scaler' registered
17:13:49: Particle Affector Type 'Rotator' registered
17:13:49: Particle Affector Type 'DirectionRandomiser' registered
17:13:49: Particle Affector Type 'DeflectorPlane' registered
17:13:49: PCZone Factory Type 'ZoneType_Default' registered
17:13:49: CPU Identifier & Features
17:13:49: -------------------------
17:13:49: * CPU ID: GenuineIntel: Intel(R) Core(TM)2 Duo CPU E8300 @ 2.83GHz
17:13:49: * SSE: yes
17:13:49: * SSE2: yes
17:13:49: * SSE3: yes
17:13:49: * MMX: yes
17:13:49: * MMXEXT: yes
17:13:49: * 3DNOW: no
17:13:49: * 3DNOWEXT: no
17:13:49: * CMOV: yes
17:13:49: * TSC: yes
17:13:49: * FPU: yes
17:13:49: * PRO: yes
17:13:49: * HT: no
17:13:49: -------------------------
17:13:49: D3D9 : Subsystem Initialising
17:13:49: Registering ResourceManager for type Texture
17:13:49: Registering ResourceManager for type GpuProgram
17:13:49: ***************************************
17:13:49: *** D3D9 : Subsystem Initialised OK ***
17:13:49: ***************************************
17:13:49: SceneManagerFactory for type 'OctreeSceneManager' registered.
17:13:49: SceneManagerFactory for type 'BspSceneManager' registered.
17:13:49: Registering ResourceManager for type BspLevel
17:13:50: Added resource location './Data/Textures' of type 'FileSystem' to resource group 'General'
17:13:54: D3D9RenderSystem::_createRenderWindow "PureBasic Ogre", 800x600 windowed miscParams: FSAA=2 displayFrequency=0 externalWindowHandle=1772236 vsync=true
17:13:54: D3D9 : Created D3D9 Rendering Window 'PureBasic Ogre' : 800x600, 32bpp
17:13:54: OGRE EXCEPTION(3:RenderingAPIException): Cannot create device! in D3D9Device::createD3D9Device at OgreD3D9Device.cpp (line 729)
PS: Same problem on another PC (my MSI Netbook, but I cannot create a logfile on this machine in this moment)

Re: PB 5.00 beta7 WinXP_32 3D examples are not working on my

Posted: Tue Oct 30, 2012 5:18 pm
by Fred
What's your graphic card ? Ogre doesn't seem to be able to create the render window. You can try with the opengl subsystem, sometimes the opengl drivers are better.

Re: PB 5.00 beta7 WinXP_32 3D examples are not working on my

Posted: Tue Oct 30, 2012 5:22 pm
by Kurzer
GFX Card infos:
Intel(R) Graphics Media Accelerator Driver Report


Report Date: 10/30/2012
Report Time[hr:mm:ss]: 17:20:15
Driver Version: 6.14.10.4833
Operating System: Windows XP* Professional, Service Pack 3 (5.1.2600)
Default Language: German
DirectX* Version: 9.0
Physical Memory: 2001 MB
Minimum Graphics Memory: 8 MB
Maximum Graphics Memory: 384 MB
Graphics Memory in Use: 18 MB
Processor: x86 family 6 Model 23 Stepping 6
Processor Speed: 2826 MHZ
Vendor ID: 8086
Device ID: 29B2
Device Revision: 02


* Accelerator Information *

Accelerator in Use: Intel(R) Q35 Express Chipset Family
Video BIOS: 1533
Current Graphics Mode: 1680 x 1050 True Color (60 Hz)



* Devices Connected to the Graphics Accelerator *


Active Monitors: 1
Active Digital Displays: 1


* Monitor *

Monitor Name: Plug und Play-Monitor
Display Type: Analog
Gamma Value: 2,20
DDC2 Protocol: Supported
Maximum Image Size: Horizontal: 13,0 inches
Vertical: 10,0 inches
Monitor Supported Modes:
640 x 350 (70 Hz)
640 x 480 (60 Hz)
640 x 480 (67 Hz)
640 x 480 (72 Hz)
640 x 480 (75 Hz)
720 x 400 (70 Hz)
800 x 600 (60 Hz)
800 x 600 (72 Hz)
800 x 600 (75 Hz)
832 x 624 (75 Hz)
1024 x 768 (60 Hz)
1024 x 768 (70 Hz)
1024 x 768 (75 Hz)
1152 x 864 (75 Hz)
1152 x 870 (75 Hz)
1280 x 1024 (60 Hz)
1280 x 1024 (72 Hz)
1280 x 1024 (75 Hz)
1280 x 1024 (75 Hz)
Display Power Management Support:
Standby Mode: Supported
Suspend Mode: Supported
Active Off Mode: Supported


* Digital Display *

Monitor Name: Plug und Play-Monitor
Display Type: Digital
Gamma Value: 2,20
DDC2 Protocol: Supported
Maximum Image Size: Horizontal: 19,0 inches
Vertical: 12,0 inches
Monitor Supported Modes:
640 x 480 (60 Hz)
640 x 480 (75 Hz)
720 x 400 (70 Hz)
800 x 600 (56 Hz)
800 x 600 (60 Hz)
800 x 600 (75 Hz)
832 x 624 (75 Hz)
1024 x 768 (60 Hz)
1024 x 768 (75 Hz)
1152 x 864 (75 Hz)
1152 x 870 (75 Hz)
1280 x 960 (60 Hz)
1280 x 1024 (60 Hz)
1280 x 1024 (75 Hz)
1440 x 1440 (60 Hz)
1680 x 1050 (60 Hz)
Display Power Management Support:
Standby Mode: Supported
Suspend Mode: Supported
Active Off Mode: Supported


* SDVO Encoder Report *

** Encoder 1 **
Vendor ID: Chrontel
Device ID: 67
Device Revision: 0
Major Version: 1
Minor Version: 1

* Other names and brands are the property of their respective owners.
No Problems with 3D examples using 4.61 on this machine.
Same problem with PB 5.00 on my Netbook (MSI Wind 100)... but also no 3D Problems on the Netbook with PB 4.61.

Re: PB 5.00 beta7 WinXP_32 3D examples are not working on my

Posted: Tue Oct 30, 2012 6:25 pm
by Comtois
maybe you should try to update your drivers ?
see here

Your version : 6.14.10.4833
Intel version : 6.14.10.5218

And if it is not already done, think to update Directx9 with this version :
http://www.microsoft.com/en-us/download ... aspx?id=35

Re: PB 5.00 beta7 WinXP_32 3D examples are not working on my

Posted: Wed Oct 31, 2012 10:48 am
by Kurzer
I updatet DirectX already befor I wrote the first post. So DirectX should be the newest Version.
Nevertheless I ran the DX9-Installer again this morning, but as expected nothing to install.

After your hint I updatet the grafix card driver today...
Intel(R) Graphics Media Accelerator Driver Report
Report Date: 10/31/2012
Report Time[hr:mm:ss]: 10:42:48
Driver Version: 6.14.10.5218
Operating System: Windows XP* Professional, Service Pack 3 (5.1.2600)
Default Language: German
DirectX* Version: 9.0
Physical Memory: 2001 MB
Minimum Graphics Memory: 8 MB
Maximum Graphics Memory: 384 MB
Graphics Memory in Use: 18 MB
Processor: x86 family 6 Model 23 Stepping 6
Processor Speed: 2826 MHZ
Vendor ID: 8086
Device ID: 29B2
Device Revision: 02


* Accelerator Information *

Accelerator in Use: Intel(R) Q35 Express Chipset Family
Video BIOS: 1533.0
Current Graphics Mode: 1680 x 1050 True Color (60 Hz)
... but unfortunately this did not solve the problem.
Problem exists still in PB 5.00 b8.

PS: Orge.log shows the same error like before.
11:14:53: ***************************************
11:14:53: *** D3D9 : Subsystem Initialised OK ***
11:14:53: ***************************************
11:14:53: SceneManagerFactory for type 'OctreeSceneManager' registered.
11:14:53: SceneManagerFactory for type 'BspSceneManager' registered.
11:14:53: Registering ResourceManager for type BspLevel
11:14:54: Added resource location './Data/Textures' of type 'FileSystem' to resource group 'General'
11:14:55: D3D9RenderSystem::_createRenderWindow "PureBasic Ogre", 800x600 windowed miscParams: FSAA=2 displayFrequency=0 externalWindowHandle=984888 vsync=true
11:14:55: D3D9 : Created D3D9 Rendering Window 'PureBasic Ogre' : 800x600, 32bpp
11:14:55: OGRE EXCEPTION(3:RenderingAPIException): Cannot create device! in D3D9Device::createD3D9Device at OgreD3D9Device.cpp (line 729)
PS2: With Subsystem OpenGL it works.
But if I compile an exe and start it, I get an error (the 3D engine can't be initialized).

Re: PB 5.00 beta7 WinXP_32 3D examples are not working on my

Posted: Wed Oct 31, 2012 1:18 pm
by PMV
You could try the Ogre3D SDK to check, if it is a OGRE-Bug.

You can download the old version 1.8.0 (PB 5.00) and
the current version (1.8.1) here:
http://sourceforge.net/projects/ogre/files/ogre/1.8/
Of course there is the version from PB 4.6x, too.
It is OGRE 1.7.0

For windows you will need Visual C++ .Net 2008 or 2010
to run the SDK-Demos.

MFG PMV

Re: PB 5.00 beta7 WinXP_32 3D examples are not working on my

Posted: Wed Oct 31, 2012 1:33 pm
by Kurzer
Thank you for your suggestion PMV.

But I am not C++ skilled and the PC I use for the tests is the PC in the office at my workplace. It is not allowed to install other software on this machine (therefor I run PB in Portable mode on the machine.. pssst ;) ).

Maybe I found compiled ORGE examples in different versions.

Re: PB 5.00 beta7 WinXP_32 3D examples are not working on my

Posted: Wed Oct 31, 2012 1:50 pm
by PMV
Maybe you could compile them at home :)
The Express-Version from Visual Studio is enough for this.
And i think it is just open the demo-project in visual studio
and run it ... or in your case ... compile to an exe. I
Don't remember anything complicated, i doesn't program
in C/C++, so my skill is not good, too :wink:

Re: PB 5.00 beta7 WinXP_32 3D examples are not working on my

Posted: Wed Oct 31, 2012 5:23 pm
by Kurzer
I thought about it.

If I do that, I still don't know the solution for the problem.

Fact is, the 3D examples are running very well under PB 4.61 (Orge 1.7.0) and the errormessage in PB 5.00 appear in the Orge-log. So it's obviously an Orge problem, don't you think so?

I don't like to install the VC++ SDKs on my machine only to get one more confirmation about this fact. I would rather install it in a virtual machine, but in that case I cannot access my native graphic card.

PS: Seems to be an Orge specific problem: http://www.ogre3d.org/forums/viewtopic.php?f=2&t=65375
There is no rock solid solution for that. Shi* :-(
-Some users had the "cannot create device" problem. Some of these were fixed by installing new drivers. Others were fixed by randomly switching resolutions and trying to start in fullscreen or windowed. For many people, after a couple of tries it spontaneously just worked. Really weird.

Re: PB 5.00 beta7 WinXP_32 3D examples are not working on my

Posted: Wed Oct 31, 2012 6:33 pm
by Fred
Could you try this ?

Code: Select all

Seems pptech has noticed that setting FSAA != 0 on some Intel cards yields cannot create Device. In pptech's case, it may be related to going from Ogre 1.6.3 to 1.7.3. Again, this'll take some time before I can test...
Select 'None' as antialiasing mode to disable it completely. Did you try with OpenGL subsystem ?

Re: PB 5.00 beta7 WinXP_32 3D examples are not working on my

Posted: Wed Oct 31, 2012 7:42 pm
by Kurzer
Thank you for your support, Fred.

Yes I tested mostly all combinations of the options the screen 3D requester offers.

Disable Antialiasing didn't solve the problem.
Using open GL runs well if I start from IDE, but fails as compiled exe - see some posts before.