I'm getting a strange error when I atempt to load an exported mesh.
I'm using Dagon 1.2.4, 3DStudio Max 8 and the updated oFusion plugin for max. Neither can load the osm scene, I get no errors, but i can't see any mesh in my app viewport.
I have disabled the shadows, but I'm still getting a black screen.
I get the following error in OgreCEGuiMeshViewer 1.0.6: "Buffer vertex size does not agree with vertex declaration"
Any ideas??
Lioric
28-11-2006 22:23:21
Do you have lights in your scenes?
In the log, are the scene loaded correctly (are the meshes and materials loaded)?
From the version number of your mesh viewer, it seems its based on a previous Ogre engine, we support Dagon only
Yes I have lights in my scene, and an aditional object that render perfectly.
The Ogre log appears ok too, here is it:
23:31:44: Creating resource group General
23:31:44: Creating resource group Internal
23:31:44: Creating resource group Autodetect
23:31:44: Registering ResourceManager for type Material
23:31:44: Registering ResourceManager for type Mesh
23:31:44: Registering ResourceManager for type Skeleton
23:31:44: MovableObjectFactory for type 'ParticleSystem' registered.
23:31:44: Loading library OgrePlatform_d.dll
23:31:44: OverlayElementFactory for type Panel registered.
23:31:44: OverlayElementFactory for type BorderPanel registered.
23:31:44: OverlayElementFactory for type TextArea registered.
23:31:44: Registering ResourceManager for type Font
23:31:44: ArchiveFactory for archive type FileSystem registered.
23:31:44: ArchiveFactory for archive type Zip registered.
23:31:44: DevIL version: Developer's Image Library (DevIL) 1.6.7 Nov 9 2005
23:31:44: 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
23:31:44: Registering ResourceManager for type HighLevelGpuProgram
23:31:44: Registering ResourceManager for type Compositor
23:31:44: MovableObjectFactory for type 'Entity' registered.
23:31:44: MovableObjectFactory for type 'Light' registered.
23:31:44: MovableObjectFactory for type 'BillboardSet' registered.
23:31:44: MovableObjectFactory for type 'ManualObject' registered.
23:31:44: MovableObjectFactory for type 'BillboardChain' registered.
23:31:44: MovableObjectFactory for type 'RibbonTrail' registered.
23:31:44: Loading library .\RenderSystem_Direct3D9
23:31:44: D3D9 : Direct3D9 Rendering Subsystem created.
23:31:44: D3D9: Driver Detection Starts
23:31:44: D3D9: Driver Detection Ends
23:31:44: Loading library .\RenderSystem_GL
23:31:44: OpenGL Rendering Subsystem created.
23:31:45: Loading library .\Plugin_ParticleFX
23:31:45: Particle Emitter Type 'Point' registered
23:31:45: Particle Emitter Type 'Box' registered
23:31:45: Particle Emitter Type 'Ellipsoid' registered
23:31:45: Particle Emitter Type 'Cylinder' registered
23:31:45: Particle Emitter Type 'Ring' registered
23:31:45: Particle Emitter Type 'HollowEllipsoid' registered
23:31:45: Particle Affector Type 'LinearForce' registered
23:31:45: Particle Affector Type 'ColourFader' registered
23:31:45: Particle Affector Type 'ColourFader2' registered
23:31:45: Particle Affector Type 'ColourImage' registered
23:31:45: Particle Affector Type 'ColourInterpolator' registered
23:31:45: Particle Affector Type 'Scaler' registered
23:31:45: Particle Affector Type 'Rotator' registered
23:31:45: Particle Affector Type 'DirectionRandomiser' registered
23:31:45: Particle Affector Type 'DeflectorPlane' registered
23:31:45: *-*-* OGRE Initialising
23:31:45: *-*-* Version 1.2.4 (Dagon)
23:31:45: Added resource location './' of type 'FileSystem' to resource group 'General'
23:31:45: Added resource location '../Media/fonts' of type 'FileSystem' to resource group 'General'
23:31:45: Added resource location '../Media/materials/scripts' of type 'FileSystem' to resource group 'General'
23:31:45: Added resource location '../Media/materials/textures' of type 'FileSystem' to resource group 'General'
23:31:45: Added resource location '../Media/materials/programs' of type 'FileSystem' to resource group 'General'
23:31:45: Added resource location '../Media/models' of type 'FileSystem' to resource group 'General'
23:31:45: Added resource location '../Media/overlays' of type 'FileSystem' to resource group 'General'
23:31:45: Added resource location '../Media/particle' of type 'FileSystem' to resource group 'General'
23:31:45: Added resource location '../Media/packs/OgreCore.zip' of type 'Zip' to resource group 'General'
23:31:45: Added resource location '../Media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
23:31:45: Added resource location '../Media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
23:31:45: Added resource location '../Media/packs/dragon.zip' of type 'Zip' to resource group 'General'
23:31:45: Added resource location '../Media/packs/fresneldemo.zip' of type 'Zip' to resource group 'General'
23:31:45: Added resource location '../Media/packs/ogretestmap.zip' of type 'Zip' to resource group 'General'
23:31:45: Added resource location '../Media/packs/skybox.zip' of type 'Zip' to resource group 'General'
23:31:45: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
23:31:45: D3D9 : RenderSystem Option: Anti aliasing = None
23:31:45: D3D9 : RenderSystem Option: Floating-point mode = Fastest
23:31:45: D3D9 : RenderSystem Option: Full Screen = No
23:31:45: D3D9 : RenderSystem Option: Rendering Device = NVIDIA GeForce Go 6600
23:31:45: D3D9 : RenderSystem Option: VSync = No
23:31:45: D3D9 : RenderSystem Option: Video Mode = 640 x 480 @ 32-bit colour
23:31:50: D3D9 : Subsystem Initialising
23:31:50: D3D9RenderSystem::createRenderWindow "OGRE Render Window", 640x480 windowed miscParams: FSAA=0 FSAAQuality=0 colourDepth=32 useNVPerfHUD=false vsync=false
23:31:50: D3D9 : Created D3D9 Rendering Window 'OGRE Render Window' : 640x480, 32bpp
23:31:50: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
23:31:50: Registering ResourceManager for type Texture
23:31:50: Registering ResourceManager for type GpuProgram
23:31:50: RenderSystem capabilities
23:31:50: -------------------------
23:31:50: * Hardware generation of mipmaps: yes
23:31:50: * Texture blending: yes
23:31:50: * Anisotropic texture filtering: yes
23:31:50: * Dot product texture operation: yes
23:31:50: * Cube mapping: yes
23:31:50: * Hardware stencil buffer: yes
23:31:50: - Stencil depth: 8
23:31:50: - Two sided stencil support: yes
23:31:50: - Wrap stencil values: yes
23:31:50: * Hardware vertex / index buffers: yes
23:31:50: * Vertex programs: yes
23:31:50: - Max vertex program version: vs_3_0
23:31:50: * Fragment programs: yes
23:31:50: - Max fragment program version: ps_3_0
23:31:50: * Texture Compression: yes
23:31:50: - DXT: yes
23:31:50: - VTC: no
23:31:50: * Scissor Rectangle: yes
23:31:50: * Hardware Occlusion Query: yes
23:31:50: * User clip planes: yes
23:31:50: * VET_UBYTE4 vertex element type: yes
23:31:50: * Infinite far plane projection: yes
23:31:50: * Hardware render-to-texture: yes
23:31:50: * Floating point textures: yes
23:31:50: * Non-power-of-two textures: yes
23:31:50: * Volume textures: yes
23:31:50: * Multiple Render Targets: 4
23:31:50: * Point Sprites: yes
23:31:50: * Extended point parameters: yes
23:31:50: * Max Point Size: 8192
23:31:50: ***************************************
23:31:50: *** D3D9 : Subsystem Initialised OK ***
23:31:50: ***************************************
23:31:50: ResourceBackgroundQueue - threading disabled
23:31:50: Particle Renderer Type 'billboard' registered
23:31:50: Creating viewport on target 'OGRE Render Window', rendering from camera 'PlayerCam', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
23:31:50: Viewport for camera 'PlayerCam', actual dimensions L: 0 T: 0 W: 640 H: 480
23:31:50: Parsing scripts for resource group Autodetect
23:31:50: Finished parsing scripts for resource group Autodetect
23:31:50: Parsing scripts for resource group General
23:31:50: Parsing script prb.material
23:31:50: Parsing script fase1.material
23:31:50: Parsing script OgreCore.material
23:31:50: Parsing script OgreProfiler.material
23:31:50: Parsing script fresnelenviron.material
23:31:50: Parsing script sample.fontdef
23:31:50: Bad attribute line: glyph 0.152344 0.125 0.160156 0.1875 in font Ogre
23:31:50: Parsing script Ogre.fontdef
23:31:50: Parsing script Example-Water.particle
23:31:50: Parsing script Example.particle
23:31:50: Parsing script navePropulsion.particle
23:31:50: Parsing script smoke.particle
23:31:50: Parsing script DP3.overlay
23:31:50: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8B8G8R8,256x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
23:31:50: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8B8G8R8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
23:31:50: Font TrebuchetMSBoldusing texture size 512x512
23:31:50: Info: Freetype returned null for character 160 in font TrebuchetMSBold
23:31:50: Texture: TrebuchetMSBoldTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
23:31:50: Parsing script Example-CubeMapping.overlay
23:31:50: Parsing script Example-DynTex.overlay
23:31:51: Parsing script Example-Water.overlay
23:31:51: Parsing script Shadows.overlay
23:31:51: Parsing script OgreDebugPanel.overlay
23:31:51: Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8B8G8R8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
23:31:51: Texture: goi.jpg: Loading 1 faces(PF_B8G8R8,303x110x1) with 8 generated mipmaps from Image. Internal format is PF_X8R8G8B8,303x110x1.
23:31:51: Parsing script OgreLoadingPanel.overlay
23:31:51: Finished parsing scripts for resource group General
23:31:51: Parsing scripts for resource group Internal
23:31:51: Finished parsing scripts for resource group Internal
23:31:51: Win32Input8: DirectInput Activation Starts
23:31:51: Win32Input8: Establishing keyboard input.
23:31:51: Win32Input8: Keyboard input established.
23:31:51: Win32Input8: Initializing mouse input in immediate mode.
23:31:51: Win32Input8: Mouse input in immediate mode initialized.
23:31:51: Win32Input8: DirectInput OK.
23:31:51: ********************************
23:31:51: ** oScene Loader Lib **
23:31:51: ********************************
23:31:51: oSceneLoader: Loading 'fase1.OSM' file
23:31:51: oSceneLoader: Creating scene on 'Root' node
23:31:51: Mesh: Loading Sphere01.mesh.
23:31:51: Texture: borde.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
23:31:51: Mesh: Loading Torus01.mesh.
23:31:51: ********************************
23:31:51: ** oSceneLoader: Scene loaded **
23:31:51: ********************************
23:31:51: oSceneLoader: Cargando Audio del nivel actual '
23:31:51: *************************************
23:31:51: ** oSceneLoader: Sonidos Cargados ***
23:31:51: *************************************
23:31:51: Mesh: Loading fox.mesh.
23:31:51: Texture: fox_map.jpg: Loading 1 faces(PF_B8G8R8,2048x2048x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,2048x2048x1.
23:32:02: *-*-* OGRE Shutdown
23:32:02: Unregistering ResourceManager for type Compositor
23:32:02: Unregistering ResourceManager for type Font
23:32:02: Unregistering ResourceManager for type Skeleton
23:32:02: Unregistering ResourceManager for type Mesh
23:32:02: Unregistering ResourceManager for type HighLevelGpuProgram
23:32:02: Unloading library .\Plugin_ParticleFX
23:32:02: *** Stopping Win32GL Subsystem ***
23:32:02: Unloading library .\RenderSystem_GL
23:32:02: Render Target 'OGRE Render Window' Average FPS: 126.049 Best FPS: 132.735 Worst FPS: 2.32831e-007
23:32:02: D3D9 : Shutting down cleanly.
23:32:02: Unregistering ResourceManager for type Texture
23:32:02: Unregistering ResourceManager for type GpuProgram
23:32:02: D3D9 : Direct3D9 Rendering Subsystem destroyed.
23:32:02: Unloading library .\RenderSystem_Direct3D9
23:32:02: Unregistering ResourceManager for type Material
23:32:02: Unloading library OgrePlatform_d.dll
Ok I solved my problem.
First: the OgreceguiMeshViewer i was using doesn't support Ogre Dagon version.
Second: the issue must be in the OSMsceneLoader, because finally I could load any single exported objects without using the scene loader.
Now I have to find where the error exactly is, to fix the scene loading ...
Thanks for your response Lioric ;D