Problems executing tutorials (update)

SanMiguel

05-12-2006 11:19:35

I'm having problems executing the NxOgre tutorials - I've downloaded the latest Ogre (1.2.4), PhysX (both 6.2.2 and then after reading various posts replaced with 6.2.0) with the latest unified 6.10.25 system software and NxOgre 0.4RC2. DirectX SDK August 2006 version (all exes work OK here), on XP with SP2 and VS2005 Prof.

Everything works fine out of the box - Ogre demos, PhysX demos, both as shipped and compiled with the NX_SIMULATION_SW fix. All compile and execute OK. NxOgre lib and tutorials compile fine (everything in Release mode) but won't execute (see below).

I've followed the instructions on NxOgre.org for installation, env vars, copying .dlls etc.

When nxTutorial101.exe is run, as soon as the main window appears ('Loading') it falls over. Ditto for all the others.

Here is the physics.log file (short):

11:07:05.000001 Starting up NxOgre using versions:
-> PhysX SDK 2.6.0
-> Hardware None installed or none found.
-> NxOgre NxOgre 0.4.RC2 (Compatible: yes)
-> Ogre 1.2.4 'Dagon'
11:07:05.000001 Started.
11:07:05.000001 Creating scene 'myScene'.

And here is the graphics.log file (long)

11:07:05: Creating resource group General
11:07:05: Creating resource group Internal
11:07:05: Creating resource group Autodetect
11:07:05: Registering ResourceManager for type Material
11:07:05: Registering ResourceManager for type Mesh
11:07:05: Registering ResourceManager for type Skeleton
11:07:05: MovableObjectFactory for type 'ParticleSystem' registered.
11:07:05: Loading library OgrePlatform.dll
11:07:05: OverlayElementFactory for type Panel registered.
11:07:05: OverlayElementFactory for type BorderPanel registered.
11:07:05: OverlayElementFactory for type TextArea registered.
11:07:05: Registering ResourceManager for type Font
11:07:05: ArchiveFactory for archive type FileSystem registered.
11:07:05: ArchiveFactory for archive type Zip registered.
11:07:05: DevIL version: Developer's Image Library (DevIL) 1.6.7 Nov 9 2005
11:07:05: DevIL image formats: bmp dib cut dcx dds gif hdr ico cur jpg jpe jpeg lif mdl mng jng pcx pic pix png pbm pgm pnm ppm psd pdd psp pxr sgi bw rgb rgba tga vda icb vst tif tiff wal xpm raw
11:07:05: Registering ResourceManager for type HighLevelGpuProgram
11:07:05: Registering ResourceManager for type Compositor
11:07:05: MovableObjectFactory for type 'Entity' registered.
11:07:05: MovableObjectFactory for type 'Light' registered.
11:07:05: MovableObjectFactory for type 'BillboardSet' registered.
11:07:05: MovableObjectFactory for type 'ManualObject' registered.
11:07:05: MovableObjectFactory for type 'BillboardChain' registered.
11:07:05: MovableObjectFactory for type 'RibbonTrail' registered.
11:07:05: *-*-* OGRE Initialising
11:07:05: *-*-* Version 1.2.4 (Dagon)
11:07:05: Loading library RenderSystem_Direct3D9
11:07:05: D3D9 : Direct3D9 Rendering Subsystem created.
11:07:05: D3D9: Driver Detection Starts
11:07:05: D3D9: Driver Detection Ends
11:07:05: Loading library RenderSystem_GL
11:07:05: OpenGL Rendering Subsystem created.
11:07:05: Loading library Plugin_ParticleFX
11:07:05: Particle Emitter Type 'Point' registered
11:07:05: Particle Emitter Type 'Box' registered
11:07:05: Particle Emitter Type 'Ellipsoid' registered
11:07:05: Particle Emitter Type 'Cylinder' registered
11:07:05: Particle Emitter Type 'Ring' registered
11:07:05: Particle Emitter Type 'HollowEllipsoid' registered
11:07:05: Particle Affector Type 'LinearForce' registered
11:07:05: Particle Affector Type 'ColourFader' registered
11:07:05: Particle Affector Type 'ColourFader2' registered
11:07:05: Particle Affector Type 'ColourImage' registered
11:07:05: Particle Affector Type 'ColourInterpolator' registered
11:07:05: Particle Affector Type 'Scaler' registered
11:07:05: Particle Affector Type 'Rotator' registered
11:07:05: Particle Affector Type 'DirectionRandomiser' registered
11:07:05: Particle Affector Type 'DeflectorPlane' registered
11:07:05: D3D9 : RenderSystem Option: Full Screen = No
11:07:05: D3D9 : RenderSystem Option: VSync = No
11:07:05: D3D9 : RenderSystem Option: Video Mode = 1024 x 768 @ 32-bit colour
11:07:05: Creating resource group Bootstrap
11:07:05: Added resource location 'Media/boot.zip' of type 'Zip' to resource group 'Bootstrap'
11:07:05: Added resource location 'Media/' of type 'FileSystem' to resource group 'General'
11:07:05: Added resource location 'Media/tutorialmedia.zip' of type 'Zip' to resource group 'General'
11:07:05: D3D9 : Subsystem Initialising
11:07:05: D3D9RenderSystem::createRenderWindow "NxOgre: 101 - Cube on a plane", 1024x768 windowed miscParams: FSAA=0 FSAAQuality=0 colourDepth=32 useNVPerfHUD=false vsync=false
11:07:05: D3D9 : Created D3D9 Rendering Window 'NxOgre: 101 - Cube on a plane' : 1016x734, 32bpp
11:07:05: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
11:07:05: Registering ResourceManager for type Texture
11:07:05: Registering ResourceManager for type GpuProgram
11:07:05: RenderSystem capabilities
11:07:05: -------------------------
11:07:05: * Hardware generation of mipmaps: no
11:07:05: * Texture blending: yes
11:07:05: * Anisotropic texture filtering: yes
11:07:05: * Dot product texture operation: yes
11:07:05: * Cube mapping: yes
11:07:05: * Hardware stencil buffer: yes
11:07:05: - Stencil depth: 8
11:07:05: - Two sided stencil support: yes
11:07:05: - Wrap stencil values: yes
11:07:05: * Hardware vertex / index buffers: yes
11:07:05: * Vertex programs: yes
11:07:05: - Max vertex program version: vs_3_0
11:07:05: * Fragment programs: yes
11:07:05: - Max fragment program version: ps_2_0
11:07:05: * Texture Compression: yes
11:07:05: - DXT: yes
11:07:05: - VTC: no
11:07:05: * Scissor Rectangle: yes
11:07:05: * Hardware Occlusion Query: no
11:07:05: * User clip planes: yes
11:07:05: * VET_UBYTE4 vertex element type: yes
11:07:05: * Infinite far plane projection: yes
11:07:05: * Hardware render-to-texture: yes
11:07:05: * Floating point textures: no
11:07:05: * Non-power-of-two textures: yes (limited)
11:07:05: * Volume textures: yes
11:07:05: * Multiple Render Targets: 1
11:07:05: * Point Sprites: yes
11:07:05: * Extended point parameters: yes
11:07:05: * Max Point Size: 256
11:07:05: ***************************************
11:07:05: *** D3D9 : Subsystem Initialised OK ***
11:07:05: ***************************************
11:07:05: ResourceBackgroundQueue - threading disabled
11:07:05: Particle Renderer Type 'billboard' registered
11:07:05: Creating viewport on target 'NxOgre: 101 - Cube on a plane', rendering from camera 'MainCamera', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
11:07:05: Viewport for camera 'MainCamera', actual dimensions L: 0 T: 0 W: 1016 H: 734
11:07:05: Parsing scripts for resource group Autodetect
11:07:05: Finished parsing scripts for resource group Autodetect
11:07:05: Parsing scripts for resource group Bootstrap
11:07:05: Parsing script gui.material
11:07:05: Parsing script boot.material
11:07:05: Parsing script instructions.material
11:07:05: Parsing script nx.bodyguide.material
11:07:05: Parsing script Ogre.fontdef
11:07:05: Finished parsing scripts for resource group Bootstrap
11:07:05: Parsing scripts for resource group General
11:07:05: Parsing script nx.floor.material
11:07:05: Parsing script nx.floor2.material
11:07:05: Parsing script nx.particles.material
11:07:05: Parsing script 312.material
11:07:05: Parsing script 313.material
11:07:05: Parsing script arrows.material
11:07:05: Parsing script chair.material
11:07:05: Parsing script int.material
11:07:05: Parsing script nx.interior1.material
11:07:05: Parsing script nx.stairs.material
11:07:05: Parsing script set.material
11:07:05: Parsing script nx.shapes.material
11:07:05: Parsing script nx.particles.particle
11:07:05: Finished parsing scripts for resource group General
11:07:05: Parsing scripts for resource group Internal
11:07:05: Finished parsing scripts for resource group Internal
11:07:05: Texture: any.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with 9 generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
11:07:05: Texture: gui_loading_notice.png: Loading 1 faces(PF_A8B8G8R8,128x32x1) with 7 generated mipmaps from Image. Internal format is PF_A8R8G8B8,128x32x1.
11:07:05: Win32Input8: DirectInput Activation Starts
11:07:05: Win32Input8: Establishing keyboard input.
11:07:05: Win32Input8: Keyboard input established.
11:07:05: Win32Input8: Initializing mouse input in immediate mode.
11:07:05: Win32Input8: Mouse input in immediate mode initialized.
11:07:05: Win32Input8: DirectInput OK.
11:07:05: Texture: arrow.png: Loading 1 faces(PF_A8B8G8R8,32x32x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
11:07:05: Texture: gui_pause.png: Loading 1 faces(PF_A8B8G8R8,128x128x1) with 7 generated mipmaps from Image. Internal format is PF_A8R8G8B8,128x128x1.
11:07:05: Font nxogrefontusing texture size 512x512
11:07:05: Info: Freetype returned null for character 160 in font nxogrefont
11:07:05: Texture: nxogrefontTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
11:07:05: Mesh: Loading nx.bodyguide.mesh.
11:07:05: Texture: bodyguide1m.png: Loading 1 faces(PF_A8B8G8R8,256x256x1) with 8 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
11:07:05: WARNING: Mesh instance 'NxOgre.ErrorCube' was defined as manually loaded, but no manual loader was provided. This Resource will be lost if it has to be reloaded.
11:07:05: Registering ResourceManager for type NxSCM
11:07:05: Mesh: Loading cube.1m.mesh.
11:07:05: Mesh: Loading nx.floor.mesh.
11:07:05: Texture: nx.floor.png: Loading 1 faces(PF_A8B8G8R8,512x512x1) with 9 generated mipmaps from Image. Internal format is PF_A8R8G8B8,512x512x1.
11:07:05: Texture: nx.floor.lm.png: Loading 1 faces(PF_B8G8R8,512x512x1) with 9 generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
11:07:05: Mesh: Loading nx.body.axis.mesh.
11:07:05: Texture: arrow1.png: Loading 1 faces(PF_A8B8G8R8,256x256x1) with 8 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
11:07:05: Texture: spot_shadow_fade.png: Loading 1 faces(PF_B8G8R8,128x128x1) with 1 generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
11:07:05: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: -2005530516
Function: D3D9RenderSystem::_render
Description: Failed to DrawPrimitive : Invalid call.
File: ..\src\OgreD3D9RenderSystem.cpp
Line: 2519
Stack unwinding: <<beginning of stack>>


It looks like a DirectX problem but I can't figure it out beyond that...

I've cleaned and re-installed everything (twice now, in different locations) and am now stuck.

Any suggestions?

SanMiguel

SanMiguel

05-12-2006 21:04:00

Update: installed everything on another machine, exactly as I did on the first machine, and guess what: everything executes fine.

I'm clutching at straws here, but the only difference in the graphics.log file (apart from the error msg, of course) is in the D3D configuration:

Here is the extract on machine#2 (see above for machine#1):

20:49:10: * Hardware generation of mipmaps: yes
20:49:10: * Texture blending: yes
20:49:10: * Anisotropic texture filtering: yes
20:49:10: * Dot product texture operation: yes
20:49:10: * Cube mapping: yes
20:49:10: * Hardware stencil buffer: yes
20:49:10: - Stencil depth: 8
20:49:10: - Two sided stencil support: yes
20:49:10: - Wrap stencil values: yes
20:49:10: * Hardware vertex / index buffers: yes
20:49:10: * Vertex programs: yes
20:49:10: - Max vertex program version: vs_3_0
20:49:10: * Fragment programs: yes
20:49:10: - Max fragment program version: ps_3_0
20:49:10: * Texture Compression: yes
20:49:10: - DXT: yes
20:49:10: - VTC: no
20:49:10: * Scissor Rectangle: yes
20:49:10: * Hardware Occlusion Query: yes
20:49:10: * User clip planes: yes
20:49:10: * VET_UBYTE4 vertex element type: yes
20:49:10: * Infinite far plane projection: yes
20:49:10: * Hardware render-to-texture: yes
20:49:10: * Floating point textures: yes
20:49:10: * Non-power-of-two textures: yes
20:49:10: * Volume textures: yes
20:49:10: * Multiple Render Targets: 4
20:49:10: * Point Sprites: yes
20:49:10: * Extended point parameters: yes
20:49:10: * Max Point Size: 8192


There are a few differences to the non-working machine (eg h/w gen. of mipmaps, h/w occlusion query and floating-point textures, max point size, multiple render targets)....could it be the graphics card in machine #1 is not up to it (maybe the floating point textures?)....that machine is a Dell, probably with on-board graphics (not in front of me at the minute to check), whereas machine#2 (the OK one) is a home built PC with a decent GeForce 6800 graphics card.

Any thoughts on this welcome...

SanMiguel

betajaen

05-12-2006 21:30:20

Unfortunately, I have the same conclusion.

I expect it's how the tutorial is setup, perhaps commenting out the setup code; such as the grid, fog and so on. Until you find the culprit.

DieHard

06-12-2006 04:31:24

If it lies on DirectX, then should be between Ogre and DirectX alone, not NxOgre.

Did you try Ogre first (with no third parties libraries like NxOgre and OIS)? If not, I recommend compile and run Ogre's demos before leaping into NxOgre.

If yes, then try "betajaen" way. Start taking each part out in reverse and test it (compile and run).

SanMiguel

06-12-2006 09:54:36

Thanks guys for the replies.

Everything in vanilla ogre works OK, so I'm going through the setup code as suggested (done all the obvious but so far nothing gives).

SanMiguel

Victorliu17

09-12-2006 18:38:58

I encountered the same problem. I modified tutorial 101 and made a small application. It works fine on some computers but it just doesn't work on some of the others. It seems to have something to do with graphics card.

SanMiguel

11-12-2006 09:07:12

What mod did you make to Tutorial101? I tried commenting out bits and pieces but have had no luck so far.

Victorliu17

12-12-2006 16:46:45

My modifications are all high-level, such as adding more bodies.

I didn't change a single line of setup code.
There must be some body else having met the same problem.

mjoselli

16-01-2007 18:46:06

I have the same problem!!

16:18:08: Texture: spot_shadow_fade.png: Loading 1 faces(PF_B8G8R8,128x128x1) with 1 generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
16:18:08: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: -2005530516
Function: D3D9RenderSystem::_render
Description: Failed to DrawPrimitive : Invalid call.
File: e:\projects\ogrecvs\branches\dagon_vc8_clean\ogrenew\rendersystems\direct3d9\src\ogred3d9rendersystem.cpp
Line: 2519
Stack unwinding: <<beginning of stack>>


I just downloaded the PhisX SDK 2.6.2
and NxOgre 0.5 Preview 2.0.
The Ogre is fine i have the 1.2.4 SDK and works fine with all others demos and inclusive with a game of mine.
Everything works exactily like with SanMiguel
Compiles fine but doesnt run...
Can anyone help me???

Victorliu17

25-01-2007 14:01:19

What graphics card do you guys use?

The tutorials work just fine on my computer. But they can't run on older PCs.

mjoselli

25-01-2007 14:40:32

Mine is a Mobile intel(r) 915GM/GMS, 910GML Express Chipset Family...
All of the phisx demos compile and work fine as well...
I tried to get the latest driver for my card but the problem continues...
if someone can say how to work with NxOgre i will be very pleased
thaks