[solved] Running NxOgreTutorial-101 failed.

realtiger

20-11-2006 15:34:57

Hi again
I can't run nxOgre tutorial 101.
The program crashed when creating mWorld.
Here is some screenshots.





Any help?

betajaen

20-11-2006 15:41:17

Did you install the SystemSoftware?

Did you copy all of the PhysX DLLs?

What does the nxOgre.log say?

The screenshot helps, but World does a number of things in the constructor, however those two are the most likely suspects.

realtiger

20-11-2006 15:45:56

Did you install the SystemSoftware?

Did you copy all of the PhysX DLLs?


Yes, I did.


What does the nxOgre.log say?


NxOgre.physics say nothing.

Ogre.Graphics say: (if necessary)
22:24:02: Creating resource group General
22:24:02: Creating resource group Internal
22:24:02: Creating resource group Autodetect
22:24:02: Registering ResourceManager for type Material
22:24:02: Registering ResourceManager for type Mesh
22:24:02: Registering ResourceManager for type Skeleton
22:24:02: MovableObjectFactory for type 'ParticleSystem' registered.
22:24:02: Loading library OgrePlatform_d.dll
22:24:02: OverlayElementFactory for type Panel registered.
22:24:02: OverlayElementFactory for type BorderPanel registered.
22:24:02: OverlayElementFactory for type TextArea registered.
22:24:02: Registering ResourceManager for type Font
22:24:02: ArchiveFactory for archive type FileSystem registered.
22:24:02: ArchiveFactory for archive type Zip registered.
22:24:02: DevIL version: Developer's Image Library (DevIL) 1.6.7 Nov 9 2005
22:24:02: 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
22:24:02: Registering ResourceManager for type HighLevelGpuProgram
22:24:02: Registering ResourceManager for type Compositor
22:24:02: MovableObjectFactory for type 'Entity' registered.
22:24:02: MovableObjectFactory for type 'Light' registered.
22:24:02: MovableObjectFactory for type 'BillboardSet' registered.
22:24:02: MovableObjectFactory for type 'ManualObject' registered.
22:24:02: MovableObjectFactory for type 'BillboardChain' registered.
22:24:02: MovableObjectFactory for type 'RibbonTrail' registered.
22:24:02: *-*-* OGRE Initialising
22:24:02: *-*-* Version 1.2.3 (Dagon)
22:24:02: Loading library RenderSystem_Direct3D9
22:24:02: D3D9 : Direct3D9 Rendering Subsystem created.
22:24:02: D3D9: Driver Detection Starts
22:24:02: D3D9: Driver Detection Ends
22:24:02: Loading library RenderSystem_GL
22:24:02: OpenGL Rendering Subsystem created.
22:24:03: Loading library Plugin_ParticleFX
22:24:03: Particle Emitter Type 'Point' registered
22:24:03: Particle Emitter Type 'Box' registered
22:24:03: Particle Emitter Type 'Ellipsoid' registered
22:24:03: Particle Emitter Type 'Cylinder' registered
22:24:03: Particle Emitter Type 'Ring' registered
22:24:03: Particle Emitter Type 'HollowEllipsoid' registered
22:24:03: Particle Affector Type 'LinearForce' registered
22:24:03: Particle Affector Type 'ColourFader' registered
22:24:03: Particle Affector Type 'ColourFader2' registered
22:24:03: Particle Affector Type 'ColourImage' registered
22:24:03: Particle Affector Type 'ColourInterpolator' registered
22:24:03: Particle Affector Type 'Scaler' registered
22:24:03: Particle Affector Type 'Rotator' registered
22:24:03: Particle Affector Type 'DirectionRandomiser' registered
22:24:03: Particle Affector Type 'DeflectorPlane' registered
22:24:03: D3D9 : RenderSystem Option: Full Screen = No
22:24:03: D3D9 : RenderSystem Option: VSync = No
22:24:03: D3D9 : RenderSystem Option: Video Mode = 1024 x 768 @ 32-bit colour
22:24:03: Creating resource group Bootstrap
22:24:03: Added resource location 'C:/OgreSDK/NxOgre.0.4RC2.Tutorials/tutorials/Media/boot.zip' of type 'Zip' to resource group 'Bootstrap'
22:24:03: Added resource location 'C:/OgreSDK/NxOgre.0.4RC2.Tutorials/tutorials/Media/' of type 'FileSystem' to resource group 'General'
22:24:03: Added resource location 'C:/OgreSDK/NxOgre.0.4RC2.Tutorials/tutorials/Media/tutorialmedia.zip' of type 'Zip' to resource group 'General'
22:24:04: D3D9 : Subsystem Initialising
22:24:04: D3D9RenderSystem::createRenderWindow "NxOgre: 101 - Cube on a plane", 1024x768 windowed miscParams: FSAA=0 FSAAQuality=0 colourDepth=32 useNVPerfHUD=false vsync=false
22:24:04: D3D9 : Created D3D9 Rendering Window 'NxOgre: 101 - Cube on a plane' : 1024x768, 32bpp
22:24:04: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
22:24:04: Registering ResourceManager for type Texture
22:24:04: Registering ResourceManager for type GpuProgram
22:24:04: RenderSystem capabilities
22:24:04: -------------------------
22:24:04: * Hardware generation of mipmaps: yes
22:24:04: * Texture blending: yes
22:24:04: * Anisotropic texture filtering: yes
22:24:04: * Dot product texture operation: yes
22:24:04: * Cube mapping: yes
22:24:04: * Hardware stencil buffer: yes
22:24:04: - Stencil depth: 8
22:24:04: - Two sided stencil support: yes
22:24:04: - Wrap stencil values: yes
22:24:04: * Hardware vertex / index buffers: yes
22:24:04: * Vertex programs: yes
22:24:04: - Max vertex program version: vs_2_a
22:24:04: * Fragment programs: yes
22:24:04: - Max fragment program version: ps_2_a
22:24:04: * Texture Compression: yes
22:24:04: - DXT: yes
22:24:04: - VTC: no
22:24:04: * Scissor Rectangle: yes
22:24:04: * Hardware Occlusion Query: yes
22:24:04: * User clip planes: yes
22:24:04: * VET_UBYTE4 vertex element type: yes
22:24:04: * Infinite far plane projection: yes
22:24:04: * Hardware render-to-texture: yes
22:24:04: * Floating point textures: yes
22:24:04: * Non-power-of-two textures: yes
22:24:04: * Volume textures: yes
22:24:04: * Multiple Render Targets: 1
22:24:04: * Point Sprites: yes
22:24:04: * Extended point parameters: yes
22:24:04: * Max Point Size: 8192
22:24:04: ***************************************
22:24:04: *** D3D9 : Subsystem Initialised OK ***
22:24:04: ***************************************
22:24:04: ResourceBackgroundQueue - threading disabled
22:24:04: Particle Renderer Type 'billboard' registered
22:24:04: 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
22:24:04: Viewport for camera 'MainCamera', actual dimensions L: 0 T: 0 W: 1024 H: 768
22:24:04: Parsing scripts for resource group Autodetect
22:24:04: Finished parsing scripts for resource group Autodetect
22:24:04: Parsing scripts for resource group Bootstrap
22:24:04: Parsing script gui.material
22:24:04: Parsing script boot.material
22:24:04: Parsing script instructions.material
22:24:04: Parsing script nx.bodyguide.material
22:24:04: Parsing script Ogre.fontdef
22:24:04: Finished parsing scripts for resource group Bootstrap
22:24:04: Parsing scripts for resource group General
22:24:04: Parsing script nx.floor.material
22:24:04: Parsing script nx.floor2.material
22:24:04: Parsing script nx.particles.material
22:24:04: Parsing script 312.material
22:24:04: Parsing script 313.material
22:24:04: Parsing script arrows.material
22:24:04: Parsing script chair.material
22:24:04: Parsing script int.material
22:24:04: Parsing script nx.interior1.material
22:24:04: Parsing script nx.stairs.material
22:24:04: Parsing script set.material
22:24:04: Parsing script nx.shapes.material
22:24:04: Parsing script nx.particles.particle
22:24:04: Finished parsing scripts for resource group General
22:24:04: Parsing scripts for resource group Internal
22:24:04: Finished parsing scripts for resource group Internal
22:24:04: Texture: any.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
22:24:04: Texture: gui_loading_notice.png: Loading 1 faces(PF_A8B8G8R8,128x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,128x32x1.
22:24:04: Win32Input8: DirectInput Activation Starts
22:24:04: Win32Input8: Establishing keyboard input.
22:24:05: Win32Input8: Keyboard input established.
22:24:05: Win32Input8: Initializing mouse input in immediate mode.
22:24:05: Win32Input8: Mouse input in immediate mode initialized.
22:24:05: Win32Input8: DirectInput OK.
22:24:05: Texture: arrow.png: Loading 1 faces(PF_A8B8G8R8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
22:24:05: Texture: gui_pause.png: Loading 1 faces(PF_A8B8G8R8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,128x128x1.
22:24:05: Font nxogrefontusing texture size 512x512
22:24:05: Info: Freetype returned null for character 160 in font nxogrefont
22:24:05: Texture: nxogrefontTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
22:24:07: Mesh: Loading nx.bodyguide.mesh.
22:24:07: Texture: bodyguide1m.png: Loading 1 faces(PF_A8B8G8R8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
22:25:24: 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.

betajaen

20-11-2006 15:55:38

Well it's a NULL pointer, so it's a problem with PhysX (if the log hasn't been started yet), which is not possible since the log dumps an error anyway.

realtiger

20-11-2006 15:59:59

Well it's a NULL pointer, so it's a problem with PhysX (if the log hasn't been started yet), which is not possible since the log dumps an error anyway.
Maybe there is something wrong with PhysX. I can't run samples included in PhysX SDK 2.6.2.

betajaen

20-11-2006 16:06:38

There you go then.

Try re-installing the SystemSoftware.

realtiger

20-11-2006 16:18:05

There you go then.

Try re-installing the SystemSoftware.

I have tried re-installing the SystemSoftware, but it still doesn't work.
I get DLL files from C:\Program Files\AGEIA Technologies\AGEIA PhysX SDK\v2.6.2\Bin\win32. Is this the right path? DLL files: NxCooking.dll, NxCharacter.dll, NxExtensions.dll, PhysXLoader.dll

betajaen

20-11-2006 16:45:29

Yep thats correct.

However there is no reason why it doesn't work. Either PhysX is messed up for some weird reason (which I doubt) Ogre.

The NxOgre startup code is over 2 years old, it hasn't failed me yet.

realtiger

21-11-2006 02:38:44

Now I can run it. It works perfectly :D
The problem is the PhysX SDK 2.6.2. After replacing 2.6.2 with 2.6.0, everything goes fine :D
Thank you for your helps betajaen. Now I can start reading your tutorials.

runixd

07-12-2006 20:31:39

You should actually update your system software instead and keep the 2.6.2 sdk.