I want to start my project with Mogre but...

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...

ProfesorX

10-07-2008 22:30:53


- set path ";C:\MogreSDK\bin\release;C:\MogreSDK\bin\debug".


instead of setting path, copy the debug dll's of mogre to your project debug directory, and release mogre dll's to your project release directory, i suspect that, since both mogre.dll from release and debug have the same name, there is a confilct.

jacksparrow

11-07-2008 17:37:22

thank for help but it not work for me, may i mistake? T_T

baconfish

11-07-2008 22:02:36

If I recall correctly the MOGRESDK install only has the plugins in the debug directory. Make sure you have RenderSystem_Direct3D9.dll in the release directory as well?

jacksparrow

12-07-2008 10:05:17

i have RenderSystem_Direct3D9.dll in the release directory sure.

Spookey

12-07-2008 16:05:50

I am having the same problem using the vb.net tutorial 0.

Windows XP Pro
Visual Studio 2005 Professional SP1
Mogre 1.4.8 SDK
Directx 9.0c

Here is the error:


Here is the Mogre release folder contents which clearly shows the dll:


Here is my plugins.cfg:

# Defines plugins to load

# Define plugin folder
PluginFolder=C:\MogreSDK\bin\release\

# Define plugins
Plugin=RenderSystem_Direct3D9
Plugin=RenderSystem_GL
Plugin=Plugin_ParticleFX
Plugin=Plugin_BSPSceneManager
Plugin=Plugin_OctreeSceneManager
Plugin=Plugin_CgProgramManager


I have searched the forums, but none of the fixes seem to fit my situation.

Thanks for any assistance.

ProfesorX

12-07-2008 21:29:12

I was investigating about this problem, and apparently find the answer, the link to MogreFramework points to an outdated version, compiled with a previous version of Mogre, so the solution is to recompile the MogreFramework with the new version of Mogre ( 1.4.8 ). I don't use the MogreFramework anymore (i have my own framework) but as a favour to the comunity I uploaded a recompiled version with C# Express 2008, in release mode only (i don't use debug) the link is here:

http://rapidshare.com/files/129214459/MogreFramework.zip

This is a temporary measure, until the developer of MogreFramework makes an update. Or if you need a version compiled in debug mode, or with another version of visual studio (2005), you can download the source code of the MogreFramework here (SVN):

http://www.idleengineer.net/tutorials/MogreFramework

and compile it yourself, remember to delete the reference to old mogre and add the new reference before compiling.

Hope this helps :)

ideabrush

23-07-2008 07:39:07

I've been trying to use Mogre 1.4.8 but so far I could only get it working in Release mode (using VC#2008 Express).

When I try to run Samples from Mogre Tutorials in debug mode, I get the same dreaded error of Could not load RenderSystem_Direct3D9_d.dll.

I've read many of the threads in this forum about the same problem.

I'm new to C# and Mogre. I downloaded the source code of Morgeframework via SVN and tried to compile it. I removed the old reference to Mogre and add it back by browsing to the Morge.dll (from the debug folder) from 1.4.8.

Then I tried to compile Morgeframework.

In the class definition of DefaultInputHandler, I changed the line

Timer mTimer = new Timer();
to
System.Windows.Forms.Timer mTimer = new System.Windows.Forms.Timer();

because VC# complained about ambiguity in "Timer".

Then it compiled fine. I copy the newly generated Mogreframework.dll to the debug folder of one of the Mogre Sample program (BSP) but the result is the same: "could not load .\RenderSystem_Direct3D9_d.dll".

I hope some good soul could help us!

Mephs

24-07-2008 20:04:36

I managed to get it working the first time by taking all the release drivers, dropping them in the project Debug folder and adding the _d to the end, never had the compiler complain since =]

ideabrush

25-07-2008 03:23:42

Mephs, thanks for the tip! I did that for RenderSystem_Direct3D9 and my program runs fine from VS host with debugging features like breakpoints working now!! :D