AddResourceLocation use Non-English characters?

diyer03th

05-07-2010 06:11:18

hello everyone.
I need add a ResourceLocation with Non-English characters,like this:

ResourceGroupManager.Singleton.AddResourceLocation(@"D:\测试模型", "FileSystem", "General");
ResourceGroupManager.Singleton.InitialiseAllResourceGroups();

Entity ent = _mgr3dsceneMgr.CreateEntity("Teapot", Teapot01.mesh");
SceneNode node = _mgr3dsceneMgr.RootSceneNode.CreateChildSceneNode("Teapot", new Vector3(0f, -135f, 0f));
node.AttachObject(ent);

mgr3dRoot.RenderOneFrame();


but not working.
why can not find the files:"13:05:36: OGRE EXCEPTION(6:FileNotFoundException): Cannot open file: Teapot01.mesh in FileSystemArchive::open at ..\..\ogre\OgreMain\src\OgreFileSystem.cpp (line 251)"

would you like to tell me how to do?
thanks a lot!

my log message:
13:05:36: Creating resource group General
13:05:36: Creating resource group Internal
13:05:36: Creating resource group Autodetect
13:05:36: SceneManagerFactory for type 'DefaultSceneManager' registered.
13:05:36: Registering ResourceManager for type Material
13:05:36: Registering ResourceManager for type Mesh
13:05:36: Registering ResourceManager for type Skeleton
13:05:36: MovableObjectFactory for type 'ParticleSystem' registered.
13:05:36: OverlayElementFactory for type Panel registered.
13:05:36: OverlayElementFactory for type BorderPanel registered.
13:05:36: OverlayElementFactory for type TextArea registered.
13:05:36: Registering ResourceManager for type Font
13:05:36: ArchiveFactory for archive type FileSystem registered.
13:05:36: ArchiveFactory for archive type Zip registered.
13:05:36: DDS codec registering
13:05:36: FreeImage version: 3.13.1
13:05:36: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
13:05:36: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2,pfm,pct,pict,pic,bay,bmq,cr2,crw,cs1,dc2,dcr,dng,erf,fff,hdr,k25,kdc,mdc,mos,mrw,nef,orf,pef,pxn,raf,raw,rdc,sr2,srf,arw,3fr,cine,ia,kc2,mef,nrw,qtk,rw2,sti,drf,dsc,ptx,cap,iiq,rwz
13:05:36: PVRTC codec registering
13:05:36: Registering ResourceManager for type HighLevelGpuProgram
13:05:36: Registering ResourceManager for type Compositor
13:05:36: MovableObjectFactory for type 'Entity' registered.
13:05:36: MovableObjectFactory for type 'Light' registered.
13:05:36: MovableObjectFactory for type 'BillboardSet' registered.
13:05:36: MovableObjectFactory for type 'ManualObject' registered.
13:05:36: MovableObjectFactory for type 'BillboardChain' registered.
13:05:36: MovableObjectFactory for type 'RibbonTrail' registered.
13:05:36: OGRE EXCEPTION(6:FileNotFoundException): 'plugins.cfg' file not found! in ConfigFile::load at ..\..\ogre\OgreMain\src\OgreConfigFile.cpp (line 83)
13:05:36: plugins.cfg not found, automatic plugin loading disabled.
13:05:36: *-*-* OGRE Initialising
13:05:36: *-*-* Version 1.7.1 (Cthugha)
13:05:36: Loading library E:\code_01\Terrain360_m7\Terrain360_m7\bin\Debug\plugins\RenderSystem_Direct3D9.dll
13:05:36: Installing plugin: D3D9 RenderSystem
13:05:36: D3D9 : Direct3D9 Rendering Subsystem created.
13:05:36: D3D9: Driver Detection Starts
13:05:36: D3D9: Driver Detection Ends
13:05:36: Plugin successfully installed
13:05:36: Loading library E:\code_01\Terrain360_m7\Terrain360_m7\bin\Debug\plugins\RenderSystem_GL.dll
13:05:36: Installing plugin: GL RenderSystem
13:05:36: OpenGL Rendering Subsystem created.
13:05:36: Plugin successfully installed
13:05:36: Loading library E:\code_01\Terrain360_m7\Terrain360_m7\bin\Debug\plugins\Plugin_ParticleFX.dll
13:05:36: Installing plugin: ParticleFX
13:05:36: Particle Emitter Type 'Point' registered
13:05:36: Particle Emitter Type 'Box' registered
13:05:36: Particle Emitter Type 'Ellipsoid' registered
13:05:36: Particle Emitter Type 'Cylinder' registered
13:05:36: Particle Emitter Type 'Ring' registered
13:05:36: Particle Emitter Type 'HollowEllipsoid' registered
13:05:36: Particle Affector Type 'LinearForce' registered
13:05:36: Particle Affector Type 'ColourFader' registered
13:05:36: Particle Affector Type 'ColourFader2' registered
13:05:36: Particle Affector Type 'ColourImage' registered
13:05:36: Particle Affector Type 'ColourInterpolator' registered
13:05:36: Particle Affector Type 'Scaler' registered
13:05:36: Particle Affector Type 'Rotator' registered
13:05:36: Particle Affector Type 'DirectionRandomiser' registered
13:05:36: Particle Affector Type 'DeflectorPlane' registered
13:05:36: Plugin successfully installed
13:05:36: Loading library E:\code_01\Terrain360_m7\Terrain360_m7\bin\Debug\plugins\Plugin_BSPSceneManager.dll
13:05:36: Installing plugin: BSP Scene Manager
13:05:36: Plugin successfully installed
13:05:36: Loading library E:\code_01\Terrain360_m7\Terrain360_m7\bin\Debug\plugins\Plugin_OctreeSceneManager.dll
13:05:36: Installing plugin: Octree & Terrain Scene Manager
13:05:36: Plugin successfully installed
13:05:36: Loading library E:\code_01\Terrain360_m7\Terrain360_m7\bin\Debug\plugins\Plugin_CgProgramManager.dll
13:05:36: Installing plugin: Cg Program Manager
13:05:36: Plugin successfully installed
13:05:36: D3D9 : RenderSystem Option: Full Screen = No
13:05:36: D3D9 : RenderSystem Option: Video Mode = 640 x 480 @ 32-bit colour
13:05:36: D3D9 : RenderSystem Option: VSync = No
13:05:36: CPU Identifier & Features
13:05:36: -------------------------
13:05:36: * CPU ID: GenuineIntel: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz
13:05:36: * SSE: yes
13:05:36: * SSE2: yes
13:05:36: * SSE3: yes
13:05:36: * MMX: yes
13:05:36: * MMXEXT: yes
13:05:36: * 3DNOW: no
13:05:36: * 3DNOWEXT: no
13:05:36: * CMOV: yes
13:05:36: * TSC: yes
13:05:36: * FPU: yes
13:05:36: * PRO: yes
13:05:36: * HT: no
13:05:36: -------------------------
13:05:36: D3D9 : Subsystem Initialising
13:05:36: Registering ResourceManager for type Texture
13:05:36: Registering ResourceManager for type GpuProgram
13:05:36: ***************************************
13:05:36: *** D3D9 : Subsystem Initialised OK ***
13:05:36: ***************************************
13:05:36: D3D9RenderSystem::_createRenderWindow "Terrain360 3d Form", 0x0 windowed miscParams: externalWindowHandle=263852
13:05:36: D3D9 : Created D3D9 Rendering Window 'Terrain360 3d Form' : 516x370, 32bpp
13:05:36: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
13:05:36: D3D9: Vertex texture format supported - PF_FLOAT16_RGB
13:05:36: D3D9: Vertex texture format supported - PF_FLOAT16_RGBA
13:05:36: D3D9: Vertex texture format supported - PF_FLOAT32_RGB
13:05:36: D3D9: Vertex texture format supported - PF_FLOAT32_RGBA
13:05:36: D3D9: Vertex texture format supported - PF_FLOAT16_R
13:05:36: D3D9: Vertex texture format supported - PF_FLOAT32_R
13:05:36: D3D9: Vertex texture format supported - PF_FLOAT16_GR
13:05:36: D3D9: Vertex texture format supported - PF_FLOAT32_GR
13:05:36: RenderSystem capabilities
13:05:36: -------------------------
13:05:36: RenderSystem Name: Direct3D9 Rendering Subsystem
13:05:36: GPU Vendor: nvidia
13:05:36: Device Name: Monitor-1-NVIDIA GeForce 9800 GT
13:05:36: Driver Version: 6.14.11.8250
13:05:36: * Fixed function pipeline: yes
13:05:36: * Hardware generation of mipmaps: yes
13:05:36: * Texture blending: yes
13:05:36: * Anisotropic texture filtering: yes
13:05:36: * Dot product texture operation: yes
13:05:36: * Cube mapping: yes
13:05:36: * Hardware stencil buffer: yes
13:05:36: - Stencil depth: 8
13:05:36: - Two sided stencil support: yes
13:05:36: - Wrap stencil values: yes
13:05:36: * Hardware vertex / index buffers: yes
13:05:36: * Vertex programs: yes
13:05:36: * Number of floating-point constants for vertex programs: 256
13:05:36: * Number of integer constants for vertex programs: 16
13:05:36: * Number of boolean constants for vertex programs: 16
13:05:36: * Fragment programs: yes
13:05:36: * Number of floating-point constants for fragment programs: 224
13:05:36: * Number of integer constants for fragment programs: 16
13:05:36: * Number of boolean constants for fragment programs: 16
13:05:36: * Geometry programs: no
13:05:36: * Number of floating-point constants for geometry programs: 0
13:05:36: * Number of integer constants for geometry programs: 0
13:05:36: * Number of boolean constants for geometry programs: 0
13:05:36: * Supported Shader Profiles: hlsl ps_1_1 ps_1_2 ps_1_3 ps_1_4 ps_2_0 ps_2_a ps_2_b ps_2_x ps_3_0 vs_1_1 vs_2_0 vs_2_a vs_2_x vs_3_0
13:05:36: * Texture Compression: yes
13:05:36: - DXT: yes
13:05:36: - VTC: no
13:05:36: - PVRTC: no
13:05:36: * Scissor Rectangle: yes
13:05:36: * Hardware Occlusion Query: yes
13:05:36: * User clip planes: yes
13:05:36: * VET_UBYTE4 vertex element type: yes
13:05:36: * Infinite far plane projection: yes
13:05:36: * Hardware render-to-texture: yes
13:05:36: * Floating point textures: yes
13:05:36: * Non-power-of-two textures: yes
13:05:36: * Volume textures: yes
13:05:36: * Multiple Render Targets: 4
13:05:36: - With different bit depths: yes
13:05:36: * Point Sprites: yes
13:05:36: * Extended point parameters: yes
13:05:36: * Max Point Size: 10
13:05:36: * Vertex texture fetch: yes
13:05:36: * Number of world matrices: 0
13:05:36: * Number of texture units: 8
13:05:36: * Stencil buffer depth: 8
13:05:36: * Number of vertex blend matrices: 0
13:05:36: - Max vertex textures: 4
13:05:36: - Vertex textures shared: no
13:05:36: * Render to Vertex Buffer : no
13:05:36: * DirectX per stage constants: yes
13:05:36: DefaultWorkQueue('Root') initialising on thread main.
13:05:36: Particle Renderer Type 'billboard' registered
13:05:36: SceneManagerFactory for type 'BspSceneManager' registered.
13:05:36: Registering ResourceManager for type BspLevel
13:05:36: SceneManagerFactory for type 'OctreeSceneManager' registered.
13:05:36: SceneManagerFactory for type 'TerrainSceneManager' registered.
13:05:36: Added resource location 'D:\测试模型' of type 'FileSystem' to resource group 'General'
13:05:36: Parsing scripts for resource group Autodetect
13:05:36: Finished parsing scripts for resource group Autodetect
13:05:36: Parsing scripts for resource group General
13:05:36: Finished parsing scripts for resource group General
13:05:36: Parsing scripts for resource group Internal
13:05:36: Finished parsing scripts for resource group Internal
13:05:36: Mesh: Loading Teapot01.mesh.
13:05:36: OGRE EXCEPTION(6:FileNotFoundException): Cannot open file: Teapot01.mesh in FileSystemArchive::open at ..\..\ogre\OgreMain\src\OgreFileSystem.cpp (line 251)
13:05:38: DefaultWorkQueue('Root') shutting down on thread main.
13:05:38: Unregistering ResourceManager for type BspLevel
13:05:38: *-*-* OGRE Shutdown
13:05:38: Unregistering ResourceManager for type Compositor
13:05:38: Unregistering ResourceManager for type Font
13:05:38: Unregistering ResourceManager for type Skeleton
13:05:38: Unregistering ResourceManager for type Mesh
13:05:38: Unregistering ResourceManager for type HighLevelGpuProgram
13:05:38: Uninstalling plugin: Cg Program Manager
13:05:38: Plugin successfully uninstalled
13:05:38: Unloading library E:\code_01\Terrain360_m7\Terrain360_m7\bin\Debug\plugins\Plugin_CgProgramManager.dll
13:05:38: Uninstalling plugin: Octree & Terrain Scene Manager
13:05:38: Plugin successfully uninstalled
13:05:38: Unloading library E:\code_01\Terrain360_m7\Terrain360_m7\bin\Debug\plugins\Plugin_OctreeSceneManager.dll
13:05:38: Uninstalling plugin: BSP Scene Manager
13:05:38: Plugin successfully uninstalled
13:05:38: Unloading library E:\code_01\Terrain360_m7\Terrain360_m7\bin\Debug\plugins\Plugin_BSPSceneManager.dll
13:05:38: Uninstalling plugin: ParticleFX
13:05:38: Plugin successfully uninstalled
13:05:38: Unloading library E:\code_01\Terrain360_m7\Terrain360_m7\bin\Debug\plugins\Plugin_ParticleFX.dll
13:05:38: Uninstalling plugin: GL RenderSystem
13:05:38: *** Stopping Win32GL Subsystem ***
13:05:38: Plugin successfully uninstalled
13:05:38: Unloading library E:\code_01\Terrain360_m7\Terrain360_m7\bin\Debug\plugins\RenderSystem_GL.dll
13:05:38: Uninstalling plugin: D3D9 RenderSystem
13:05:38: D3D9 : Shutting down cleanly.
13:05:38: Unregistering ResourceManager for type Texture
13:05:38: Unregistering ResourceManager for type GpuProgram
13:05:38: D3D9 : Direct3D9 Rendering Subsystem destroyed.
13:05:38: Plugin successfully uninstalled
13:05:38: Unloading library E:\code_01\Terrain360_m7\Terrain360_m7\bin\Debug\plugins\RenderSystem_Direct3D9.dll
13:05:38: Unregistering ResourceManager for type Material

weihongcsu

21-07-2010 02:34:52

你好,这个问题解决没有?我也碰到了,一直搞不清楚,还请指教。