jacksparrow
10-07-2008 20:49:12
i do following Mogre Basic Tutorial 0 and i try to run Testing Application but it error.
- i install MOGRE 1.4.8 SDK in "C:\MogreSDK".
- i use windows vista sp1 and vs2008.
- download MogreFramework.dll to "C:\MogreSDK\bin\Debug" and "C:\MogreSDK\bin\Release".
- download and install vcredist_x86.exe.
- download and install directx_nov2007_redist.exe.
- set path ";C:\MogreSDK\bin\release;C:\MogreSDK\bin\debug".
- create project.
- delete form1 and add references (Mogre.dll and MogreFramework.dll)
- place config file(media.cfg ,plugins.cfg ,quake3settings.cfg ,resources.cfg) in project "\bin\Debug" and "\bin\release"(manual create)
plugins.cfg
==============================================
# Defines plugins to load
# Define plugin folder
PluginFolder=C:\MogreSDK\bin\Release
# Define plugins
Plugin=RenderSystem_Direct3D9.dll
Plugin=RenderSystem_GL.dll
Plugin=Plugin_ParticleFX.dll
Plugin=Plugin_BSPSceneManager.dll
Plugin=Plugin_OctreeSceneManager.dll
Plugin=Plugin_CgProgramManager.dll
==============================================
quake3settings.cfg
==============================================
Pak0Location: C:\MogreSDK\media\packs\chiropteraDM.pk3
Map: maps/chiropteradm.bsp
==============================================
resources.cfg
==============================================
# Resource locations to be added to the 'boostrap' path
# This also contains the minimum you need to use the Ogre example framework
[Bootstrap]
Zip=C:/MogreSDK/Media/packs/OgreCore.zip
# Resource locations to be added to the default path
[General]
FileSystem=C:/MogreSDK/Media
FileSystem=C:/MogreSDK/Media/fonts
FileSystem=C:/MogreSDK/Media/materials/programs
FileSystem=C:/MogreSDK/Media/materials/scripts
FileSystem=C:/MogreSDK/Media/materials/textures
FileSystem=C:/MogreSDK/Media/models
FileSystem=C:/MogreSDK/Media/overlays
FileSystem=C:/MogreSDK/Media/particle
FileSystem=C:/MogreSDK/Media/gui
FileSystem=C:/MogreSDK/Media/DeferredShadingMedia
Zip=C:/MogreSDK/Media/packs/cubemap.zip
Zip=C:/MogreSDK/Media/packs/cubemapsJS.zip
Zip=C:/MogreSDK/Media/packs/dragon.zip
Zip=C:/MogreSDK/Media/packs/fresneldemo.zip
Zip=C:/MogreSDK/Media/packs/ogretestmap.zip
Zip=C:/MogreSDK/Media/packs/skybox.zip
==============================================
this is code.
==============================================
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using MogreFramework;
using Mogre;
namespace Test
{
static class Program
{
[STAThread]
static void Main()
{
try
{
OgreWindow win = new OgreWindow();
win.Go();
}
catch (System.Runtime.InteropServices.SEHException)
{
if (OgreException.IsThrown)
MessageBox.Show(OgreException.LastException.FullDescription,
"An Ogre exception has occurred!");
else
throw;
}
}
}
}
==============================================
this is error message
this is Ogre.log
==============================================
02:06:54: Creating resource group General
02:06:54: Creating resource group Internal
02:06:54: Creating resource group Autodetect
02:06:54: SceneManagerFactory for type 'DefaultSceneManager' registered.
02:06:54: Registering ResourceManager for type Material
02:06:54: Registering ResourceManager for type Mesh
02:06:54: Registering ResourceManager for type Skeleton
02:06:54: MovableObjectFactory for type 'ParticleSystem' registered.
02:06:54: OverlayElementFactory for type Panel registered.
02:06:54: OverlayElementFactory for type BorderPanel registered.
02:06:54: OverlayElementFactory for type TextArea registered.
02:06:54: Registering ResourceManager for type Font
02:06:54: ArchiveFactory for archive type FileSystem registered.
02:06:54: ArchiveFactory for archive type Zip registered.
02:06:54: FreeImage version: 3.10.0
02:06:54: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
02:06:54: 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
02:06:54: DDS codec registering
02:06:54: Registering ResourceManager for type HighLevelGpuProgram
02:06:54: Registering ResourceManager for type Compositor
02:06:54: MovableObjectFactory for type 'Entity' registered.
02:06:54: MovableObjectFactory for type 'Light' registered.
02:06:54: MovableObjectFactory for type 'BillboardSet' registered.
02:06:54: MovableObjectFactory for type 'ManualObject' registered.
02:06:54: MovableObjectFactory for type 'BillboardChain' registered.
02:06:54: MovableObjectFactory for type 'RibbonTrail' registered.
02:06:54: Loading library C:\MogreSDK\bin\Release\RenderSystem_Direct3D9.dll
02:06:54: OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library C:\MogreSDK\bin\Release\RenderSystem_Direct3D9.dll. System Error: The specified module could not be found.
in DynLib::load at ..\src\OgreDynLib.cpp (line 80)
==============================================
if i remove "Plugin=RenderSystem_Direct3D9.dll" in plugins.cfg and run project again will show
i can't run SDK mogre demos. What's wrong!!!
to use MogreSDK, i need to install OgreSDK ?
i am a beginer in Mogre and English, help me please...
- i install MOGRE 1.4.8 SDK in "C:\MogreSDK".
- i use windows vista sp1 and vs2008.
- download MogreFramework.dll to "C:\MogreSDK\bin\Debug" and "C:\MogreSDK\bin\Release".
- download and install vcredist_x86.exe.
- download and install directx_nov2007_redist.exe.
- set path ";C:\MogreSDK\bin\release;C:\MogreSDK\bin\debug".
- create project.
- delete form1 and add references (Mogre.dll and MogreFramework.dll)
- place config file(media.cfg ,plugins.cfg ,quake3settings.cfg ,resources.cfg) in project "\bin\Debug" and "\bin\release"(manual create)
plugins.cfg
==============================================
# Defines plugins to load
# Define plugin folder
PluginFolder=C:\MogreSDK\bin\Release
# Define plugins
Plugin=RenderSystem_Direct3D9.dll
Plugin=RenderSystem_GL.dll
Plugin=Plugin_ParticleFX.dll
Plugin=Plugin_BSPSceneManager.dll
Plugin=Plugin_OctreeSceneManager.dll
Plugin=Plugin_CgProgramManager.dll
==============================================
quake3settings.cfg
==============================================
Pak0Location: C:\MogreSDK\media\packs\chiropteraDM.pk3
Map: maps/chiropteradm.bsp
==============================================
resources.cfg
==============================================
# Resource locations to be added to the 'boostrap' path
# This also contains the minimum you need to use the Ogre example framework
[Bootstrap]
Zip=C:/MogreSDK/Media/packs/OgreCore.zip
# Resource locations to be added to the default path
[General]
FileSystem=C:/MogreSDK/Media
FileSystem=C:/MogreSDK/Media/fonts
FileSystem=C:/MogreSDK/Media/materials/programs
FileSystem=C:/MogreSDK/Media/materials/scripts
FileSystem=C:/MogreSDK/Media/materials/textures
FileSystem=C:/MogreSDK/Media/models
FileSystem=C:/MogreSDK/Media/overlays
FileSystem=C:/MogreSDK/Media/particle
FileSystem=C:/MogreSDK/Media/gui
FileSystem=C:/MogreSDK/Media/DeferredShadingMedia
Zip=C:/MogreSDK/Media/packs/cubemap.zip
Zip=C:/MogreSDK/Media/packs/cubemapsJS.zip
Zip=C:/MogreSDK/Media/packs/dragon.zip
Zip=C:/MogreSDK/Media/packs/fresneldemo.zip
Zip=C:/MogreSDK/Media/packs/ogretestmap.zip
Zip=C:/MogreSDK/Media/packs/skybox.zip
==============================================
this is code.
==============================================
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using MogreFramework;
using Mogre;
namespace Test
{
static class Program
{
[STAThread]
static void Main()
{
try
{
OgreWindow win = new OgreWindow();
win.Go();
}
catch (System.Runtime.InteropServices.SEHException)
{
if (OgreException.IsThrown)
MessageBox.Show(OgreException.LastException.FullDescription,
"An Ogre exception has occurred!");
else
throw;
}
}
}
}
==============================================
this is error message
this is Ogre.log
==============================================
02:06:54: Creating resource group General
02:06:54: Creating resource group Internal
02:06:54: Creating resource group Autodetect
02:06:54: SceneManagerFactory for type 'DefaultSceneManager' registered.
02:06:54: Registering ResourceManager for type Material
02:06:54: Registering ResourceManager for type Mesh
02:06:54: Registering ResourceManager for type Skeleton
02:06:54: MovableObjectFactory for type 'ParticleSystem' registered.
02:06:54: OverlayElementFactory for type Panel registered.
02:06:54: OverlayElementFactory for type BorderPanel registered.
02:06:54: OverlayElementFactory for type TextArea registered.
02:06:54: Registering ResourceManager for type Font
02:06:54: ArchiveFactory for archive type FileSystem registered.
02:06:54: ArchiveFactory for archive type Zip registered.
02:06:54: FreeImage version: 3.10.0
02:06:54: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
02:06:54: 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
02:06:54: DDS codec registering
02:06:54: Registering ResourceManager for type HighLevelGpuProgram
02:06:54: Registering ResourceManager for type Compositor
02:06:54: MovableObjectFactory for type 'Entity' registered.
02:06:54: MovableObjectFactory for type 'Light' registered.
02:06:54: MovableObjectFactory for type 'BillboardSet' registered.
02:06:54: MovableObjectFactory for type 'ManualObject' registered.
02:06:54: MovableObjectFactory for type 'BillboardChain' registered.
02:06:54: MovableObjectFactory for type 'RibbonTrail' registered.
02:06:54: Loading library C:\MogreSDK\bin\Release\RenderSystem_Direct3D9.dll
02:06:54: OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library C:\MogreSDK\bin\Release\RenderSystem_Direct3D9.dll. System Error: The specified module could not be found.
in DynLib::load at ..\src\OgreDynLib.cpp (line 80)
==============================================
if i remove "Plugin=RenderSystem_Direct3D9.dll" in plugins.cfg and run project again will show
i can't run SDK mogre demos. What's wrong!!!
to use MogreSDK, i need to install OgreSDK ?
i am a beginer in Mogre and English, help me please...