Problem Running Tutorial with MogreFramework

HoundWhiplash

09-01-2009 03:45:08

Evening folks!

I'm having a bit of an issue with MOGRE using the tutorials that reference the MogreFramework. Was curious if anyone could be of assistance.

First off, I can supply a screen shot of the error I'm getting:



Also, my Ogre.log looks as follows:

22:42:11: Creating resource group General
22:42:11: Creating resource group Internal
22:42:11: Creating resource group Autodetect
22:42:11: SceneManagerFactory for type 'DefaultSceneManager' registered.
22:42:11: Registering ResourceManager for type Material
22:42:11: Registering ResourceManager for type Mesh
22:42:11: Registering ResourceManager for type Skeleton
22:42:11: MovableObjectFactory for type 'ParticleSystem' registered.
22:42:11: OverlayElementFactory for type Panel registered.
22:42:11: OverlayElementFactory for type BorderPanel registered.
22:42:11: OverlayElementFactory for type TextArea registered.
22:42:11: Registering ResourceManager for type Font
22:42:11: ArchiveFactory for archive type FileSystem registered.
22:42:11: ArchiveFactory for archive type Zip registered.
22:42:11: FreeImage version: 3.10.0
22:42:11: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
22:42:11: 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
22:42:11: DDS codec registering
22:42:11: Registering ResourceManager for type HighLevelGpuProgram
22:42:11: Registering ResourceManager for type Compositor
22:42:11: MovableObjectFactory for type 'Entity' registered.
22:42:11: MovableObjectFactory for type 'Light' registered.
22:42:11: MovableObjectFactory for type 'BillboardSet' registered.
22:42:11: MovableObjectFactory for type 'ManualObject' registered.
22:42:11: MovableObjectFactory for type 'BillboardChain' registered.
22:42:11: MovableObjectFactory for type 'RibbonTrail' registered.
22:42:11: Loading library M:/MogreSDK/RenderSystem_Direct3D9
22:42:11: OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library M:/MogreSDK/RenderSystem_Direct3D9. System Error: The specified module could not be found.

in DynLib::load at ..\src\OgreDynLib.cpp (line 80)
22:42:13: *-*-* OGRE Shutdown
22:42:13: Unregistering ResourceManager for type Compositor
22:42:13: Unregistering ResourceManager for type Font
22:42:13: Unregistering ResourceManager for type Skeleton
22:42:13: Unregistering ResourceManager for type Mesh
22:42:13: Unregistering ResourceManager for type HighLevelGpuProgram
22:42:13: Unregistering ResourceManager for type Material


I realize that the error I'm getting is occurring around 22:42:11: OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library M:/MogreSDK/RenderSystem_Direct3D9. System Error: The specified module could not be found.

in DynLib::load at ..\src\OgreDynLib.cpp (line 80)
but I'm curious whether A) I can somehow change this to render with OpenGL and B) if not, is this Renderer required for ALL Mogre projects.

Thanks kindly!

Chulein

09-01-2009 08:41:21

Looks like it cant find the directx9.dll.
make sure you have the RenderSystem_Direct3D9.dll in the debug\release folder in your project. also check the plugin.cfg that the Plugin=RenderSystem_Direct3D9_d is defined.

if you want to use OpenGl simply change the rendersystem like this.
RenderSystem rs = mRoot.GetRenderSystemByName("Direct3D9 Rendering Subsystem");
to:
RenderSystem rs = mRoot.GetRenderSystemByName("OpenGL Rendering Subsystem");

Beauty

28-01-2009 22:59:10

Which tutorial did you use?
First of all should be Mogre Basic Tutorial [b]0[/b].
This explains how to install and help to solve problems.

The depencies on this tutorial page aren't up-to-date.
Use the current versions of DirectX Redistributable and vcredist.
Links for both you find here.

Mileythecollie

03-01-2010 07:55:42

Ok i was playing impressive title and it says there a problome and heres what it says

OGRE EXCEPTION(6:FileNotFoundException): Can not locate resource
rockSlap2.mesh in resource goup Autodetect or eny goup.in
ResourceGoupManager::open resourse at
/scr/Ogre ResourceManager.cpp



Plz help me

hedphelym

03-01-2010 10:35:01

check that "rockSlap2.mesh" is in one of the directories that you have defined in
your resources.cfg.

Beauty

13-01-2010 13:31:13

Just a note:
The file MogreFramework.dll for the current Mogre release you can download here:
http://code.google.com/p/mogresdk/sourc ... mework.dll

It also will be included to the next release of MogreSDK.