Setting Up MOGRE 1.7.1 in VB.net

ngekling

18-05-2010 12:23:58

Sorry I know this is a very lame question, but actually i am getting frustated to this problem.. hehe
My main problem is "how to set Up MOGRE 1.7.1 in VB.net", i have follow the tutorial from here
http://www.ogre3d.org/wiki/index.php/Mo ... orial_VB_0
But still i encountered some problem, they are :
1. I can't find the OIS.dll (I have found it by installing the 1.4 version)
2. I have follow all the instruction on the link i mentioned above, but when i a program, a window where i have to choose a renderer appear, but there is no any renderer i can choose..

anyone can help me with giving me a clear step to set up mogre in vb.net !?

Thank You Very Much!!

GantZ

18-05-2010 18:30:17

Hi,

1 - you don't need to have ois.dll anymore with the last version of mogre. Just link to mois.dll is enough.

2 - Check that you have a Plugins.cfg (usually, it's plugin.cfg, could be a reason why you have trouble here) files in the same folder of your exe with at least theses lines :


# Defines plugins to load

# Define plugin folder
PluginFolder=.

# Define plugins
Plugin=RenderSystem_Direct3D9
Plugin=RenderSystem_GL


you also must have RenderSystem_Direct3D9 and RenderSystem_GL in the same folder of your cfg.

ngekling

19-05-2010 04:28:33

Finally found a slight of light! thanks to you Grantz :D
I have done what you said, and now another error appear, it's seem to be the last one.. i hope :mrgreen:

the new error is :

OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library C:\MogreSDK\Lib\RenderSystem_Direct3D9. System Error:
The specified module could not be found.
in DynLib::load at ..\..\ogre\OgreMain\src\OgreDynLib.cpp (line 91)

any clue ?

Thank You!

ngekling

19-05-2010 10:45:23

actually i have an assignment project to make a game with vb.net, and i choose to use this engine because i found it very slow to process the game directly with software rendering.. so i hope anyone can help me soon though i understand that i just bothering everyone with my silly questing here, but the deadline of the assigment is so close, so i came to this solution.. sorry..

Thank You very much.

GantZ

19-05-2010 11:23:40

What is your plugin folder ? It should point where your RenderSystem_Direct3D9.dll is. The error message state that you try to load RenderSystem_Direct3D9 from the directory C:\MogreSDK\Lib\.

ngekling

19-05-2010 13:09:56

ohh it's the dll one, i thougt it was the object file library, sorry, i am mistaken because in C:\MogreSDK\Lib there are these RenderSystem files, and now i have change it into
C:\MogreSDK\bin\release, there is RenderSystem_Direct3D9.dll and RenderSystem_GL.dll in that folder.
but still the same error with "C:\MogreSDK\bin\release" in error message..

GantZ

19-05-2010 13:31:58

could you just post your plugin.cfg and ogre.log (surrounded by code tag) ?

Also, check the samples of the sdk, it will give you an idea how to setup a project with mogre, even if it's not in vb.net.

ngekling

19-05-2010 13:39:12

oke here

the 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


the log


19:59:17: Creating resource group General
19:59:17: Creating resource group Internal
19:59:17: Creating resource group Autodetect
19:59:17: SceneManagerFactory for type 'DefaultSceneManager' registered.
19:59:17: Registering ResourceManager for type Material
19:59:17: Registering ResourceManager for type Mesh
19:59:17: Registering ResourceManager for type Skeleton
19:59:17: MovableObjectFactory for type 'ParticleSystem' registered.
19:59:17: OverlayElementFactory for type Panel registered.
19:59:17: OverlayElementFactory for type BorderPanel registered.
19:59:17: OverlayElementFactory for type TextArea registered.
19:59:17: Registering ResourceManager for type Font
19:59:17: ArchiveFactory for archive type FileSystem registered.
19:59:17: ArchiveFactory for archive type Zip registered.
19:59:17: DDS codec registering
19:59:17: FreeImage version: 3.13.1
19:59:17: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
19:59:17: 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
19:59:17: PVRTC codec registering
19:59:17: Registering ResourceManager for type HighLevelGpuProgram
19:59:17: Registering ResourceManager for type Compositor
19:59:17: MovableObjectFactory for type 'Entity' registered.
19:59:17: MovableObjectFactory for type 'Light' registered.
19:59:17: MovableObjectFactory for type 'BillboardSet' registered.
19:59:17: MovableObjectFactory for type 'ManualObject' registered.
19:59:17: MovableObjectFactory for type 'BillboardChain' registered.
19:59:17: MovableObjectFactory for type 'RibbonTrail' registered.
19:59:17: Loading library C:\MogreSDK\bin\Release\RenderSystem_Direct3D9.dll
19:59:17: 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 ..\..\ogre\OgreMain\src\OgreDynLib.cpp (line 91)
20:03:02: *-*-* OGRE Shutdown
20:03:02: Unregistering ResourceManager for type Compositor
20:03:02: Unregistering ResourceManager for type Font
20:03:02: Unregistering ResourceManager for type Skeleton
20:03:02: Unregistering ResourceManager for type Mesh
20:03:02: Unregistering ResourceManager for type HighLevelGpuProgram
20:03:02: Unregistering ResourceManager for type Material



wow, it will be really helpfull.. thanks

ngekling

19-05-2010 13:42:26

i tried to add .dll to the plugins so the log having "...\Release\RenderSystem_Direct3D9.dll"
then i tried to remove the .dll too, but still error..

GantZ

19-05-2010 13:53:32

You don't need to add any file extension, Ogre already check on which platform it run. From the look of it, nothing seem wrong. You could try also to :

  1. put ogremain and plugins dll in the folder of your exe and use PluginFolder=. in your cfg[/*:m]
  2. output your exe in the release directory of mogre and put your cfg's here. don't forget to change the pluginfolder in this case.[/*:m][/list:u]

ngekling

19-05-2010 14:02:48

Ok I will try it..

Also, check the samples of the sdk, it will give you an idea how to setup a project with mogre, even if it's not in vb.net.

and how about this ? maybe i can follow it and try in vb.net