Mogre 1.6.5

GantZ

06-10-2009 12:13:46

Update 04.12.2010

Mogre 1.6.5 is out ! this version use a new version of freeimage (3.13.1) which correct a bug with gif in release mode, i have also included the pdb files, which explain the size and the use of the 7z format (better compression format)

* SDK beta available here Mogre SDK 1.6.5 see the post of kwertz in this thread for more informations
* Binary and lib available here Mogre 1.6.5
* Mogre source code in SVN
* For vs2010, you can use the files from mstoyke available here : Binary and Source

To build yourself the source, please use the batch file of Boinst available here : http://www.ogre3d.org/wiki/index.php/Bu ... rom_source, or the process described here : viewtopic.php?f=8&t=10937#p63491



for the previous 1.6.4 version, see :

* Binary and lib on sourceforge
* SDK of kwertz available here MOGRE SDK 1.6.4 Beta Installer.
* SDK SVN http://mogresdk.googlecode.com


Information about the dependencies you find here (in this forum thread) and here (in wiki).

original post :

hi all,

i have just finish compile a new version of Mogre using the last update of the 1.6 ogre branch.

you can find it here : mogre-v1.6.4-1_bin

I have provide debug and release binaries as well as lib files (for recompiling plugins) and the include folder.

Please test it and post here if you have any trouble with it.

umityildiz

07-10-2009 09:02:42

Hi,
I'll try.
Thank you.

umityildiz

07-10-2009 13:09:15

mogre (ogre) why this version does not appear on the wiki web site?
http://www.ogre3d.org/wiki/index.php/MOGRE

GantZ

07-10-2009 13:29:42

no particular reason, i have just forget about the wiki :) i will update it. also, i just want to add that you can edit the wiki if you want. you just need to use your forum account to login

boyamer

08-10-2009 15:41:51

What about source codes?

Thanks

GantZ

08-10-2009 18:25:34

all you need to wrap ogre and build mogre is on the svn. follow the instructions here :

http://www.ogre3d.org/addonforums/viewtopic.php?f=8&t=10937#p63491

GantZ

12-10-2009 14:51:38

new version available, check first post

Chulein

13-10-2009 08:01:43

Great.

Updated my projects from 1.6.2 without any problems.

hedphelym

27-10-2009 15:56:51

I've run into a problem,
It builds fine, if i right-click and select "build".

========== Build: 12 succeeded or up-to-date, 0 failed, 0 skipped ==========


If i then hit the "run" button in VS, it gives and exception:
[attachment=1]Error_VS.jpg[/attachment]

If i browse to the sdk dir, and run the executable directly, it all works.
[attachment=0]working_if_executable_is_run_directly.jpg[/attachment]

PantheR

27-10-2009 23:49:22

Check all needed dlls are present in your output folder where compiled exe file placed. I.e. Mogre.dll OgreMain.dll ... Look here for detailed info: http://www.ogre3d.org/addonforums/viewtopic.php?p=65076#p65076

jmix90

29-10-2009 09:13:26

Hello,

I'am trying to build Mogre from source (using this post : viewtopic.php?f=8&t=10937#p63491 ) but I have 50 times this error when performing the 8th step ( build Debug/Release for ./Mogre/Ogre/Ogre_vc9.sln ) :
Error 806 fatal error LNK1181: cannot open input file 'OgreMain.lib' Demo_Instancing Demo_Instancing

Does someone have a clue ?

I have found the problem and the solution :
I was too deep in the file system tree, I move everythings to the root (d:) and it works fine.
I also had to remove Mogre.dll from the Linker->input file for the first compilation

Beauty

16-11-2009 13:44:02

About one year ago I tried to update MogreNewt.
In this time I wrote simple test applications for collision detection with Newton.
There are 2 or 3 ways to check for collisions. (with/without callback function)
Maybe we could add it to the Mogre SDK.
If there is an interest, I could search for these test applications, update them to the current Newton version and clean up the code.

update
I found my example application. Here is a very short description and the download link:
viewtopic.php?p=56079#p56079

update 2
It seems so that I improved one of my example applications. This uses collison detection by iteration.
viewtopic.php?p=56302#p56302
But generally I think the callback method is the most used one.

update 3
It would be good if the example application has a button to enable the debugger. So it's better to see how this important feature works.

Beauty

16-11-2009 15:43:33

Great would be to have XML comments.
Especially for beginners it's very useful to know what is the intension of all the classes, properties and methods.
This would make programmers life more easy.

I suppose that Ogre has such comments. If the wrapper could include them to Mogre, this would be more than nice.

P.S.
Sorry that I write it again after months, but I want to keep it in your mind :wink:

Beauty

16-11-2009 17:21:24

A reply related to XML comments from an other thread:
The only way I can think of would be to add wrapper over MogreNewt made in c# with XML comments (proxy pattern as I remeber). Same name for dll and functions, for writing code more intellisens-ed :P. And compile it with original MogreNewt.dll before releasing.

Is it right?
Bekas, GrantZ, Marioco - you are specialists - do you know an other way?
Alternatively I could ask in a C# forum.

Beauty

16-11-2009 17:44:26

For newcomers it's important to update the wiki pages related installing Mogre and it's depencies.
They are very outdated.
The tasks I added to a TodoBox on the pages:
Mogre Basic Tutorial 0
MOGRE Installation

Maybe we could create a complete new installation page for Mogre 1.6?
Because I suppose that some things have changed in the current SDK.
When this new installation page is complete, we could replace the old pages.
Just as an idea.

By the way - does the SDK installer installes all depencies?
(DirectX redistributable, vcredist, maybe DirectX SDK)
Alternatively we could offer a second installer, which includes the needed depencies. This would reduce the size of MogreSDK. Also the depencies could make the installer more complex.
An other way is an installer which offers to download the needed depency files from the internet. (or at least open the page)

I don't know the current depencies.
Especially for the Debug dll files. In the past they had more depencies than the Release dll files. (I thing DirectX SDK was one of them.)
Also there is a difference between users with Visual Studio (SP1) and users without.
Is there a conflict when vcredist will be installed parallel to VS?
If some users use VS 2005 - does he need vcredist for 2005 AND vcredist for 2008?
I have to less knowledge.

Ok, not everybody with knowledge has the time and passion to write wiki pages.
You can post it here in a dirty way and somebody else (me?) copy it to the wiki.

smiley80

16-11-2009 18:25:57

Great would be to have XML comments.

Here you go.

It's only types atm; well, most types...
And it uses the detailed description, which is a bit too detailed in some cases.

Beauty

16-11-2009 18:32:50

Oh, nice (-:
How do I include it? (Copy to binary directory? Link by VS?)
How to create such a file?

smiley80

16-11-2009 18:37:54

Copy the xml file to the location of the referenced mogre.dll (or the output dir...can't remember).

I've made a small program that reads the Doxygen xml output for Ogre, reflects Mogre's types and tries to find a match.
Might be possible to add that to the auto wrap process.

Beauty

16-11-2009 18:56:29

I've made a small program that reads the Doxygen xml output for Ogre, reflects Mogre's types and tries to find a match.
Might be possible to add that to the auto wrap process.


Nice - this remembers me to my PERL times.
Is is completely self written or did you modify an other tool? (which?)

This could be an additional tool, which to use after wrapping Ogre.
To put them into the autowrapper makes it more complex and updating is not so easy.
Maybe you publish it in an SVN? So everybody can use and maybe improve it.
Maybe in the same SVN project like the autowrapper?

smiley80

16-11-2009 23:40:47

Uploaded here. (Also includes a new Mogre.xml)

Creates xml comments for types, constructors, methods, properties and fields.
Overloads are currently not handled correctly. Also, there are some Mogre specific types which aren't commented.

Usage:
1) Download and unpack MogreXml.zip
2) Download Ogre's header files (e.g. from the current Ogre SDK)
3) Download and install Doxygen http://www.stack.nl/~dimitri/doxygen/do ... #latestsrc
4) Run doxywizard.exe
4.1) Set the working and the destination directory to some temp folder
4.2) Set the source code directory to the folder with Ogre's header files
4.3) Enter 'ogre' as the project name and '1' as the project id
4.4) Uncheck 'html' and 'latex' output and check 'xml'
4.5) Run Doxygen
5) Copy the folder 'xml' in the destination directory to the output folder of MogreXml (i.e. Debug)
6) Delete all files in the 'xml' folder which don't start with 'class_ogre' or 'struct_ogre'
7) Copy Mogre.dll and OgreMain.dll to the output folder of MogreXml
8) Run MogreXml.exe

Note:
You'll probably get warnings, that the encoding in some files is wrong.
Open those files in a text editor, in the header change 'utf-8' to 'utf-16', save the file as utf-16 (little endian) and run MogreXml again.


I'll look into adding it to the autowrap tool, atm it needs an already compiled Mogre.dll.

Beauty

17-11-2009 01:13:40

I created a wiki page and added the information.
Mogre XML commentation tool

This is the best way for documentation I think.
Some page improvements are needed, but this can be done later.
A screenshot with comment would be nice. ... done

Please keep this page up to date if there are important changes.

update:
I created a support thread for the XML commentation tool.
For further discussion about, please use this thread.

GantZ

17-11-2009 14:48:46

Thanks for that, i will try it out later.

Beauty

18-11-2009 19:41:53

Related to the depencies I found this note of Bekas:
vcredist_x86 installs only the release libraries, so only the release binaries of Mogre will work
Somewhere else I read that the DirectX SDK is only needed for building Mogre. So this is no depency.

By the way - how can an installer (or Mogre application) find out if a DirectX Redistributable package is installed? (and which version)
I found no way. DirectX and DirectX Redistributable are not the same.

noobs

26-11-2009 20:24:18

i gett this error wen trying to run an ogre example in the new .NET4.0
System.IO.FileLoadException was unhandled
Message=Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.
Source=Animation
StackTrace:
at Animation.OgreStartup..ctor()
at Animation.Program.Main() in C:\Users\noobs\Documents\Visual Studio 2010\Projects\Hello World II\Animation\Program.cs:line 15
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:


I tried to compile mogre from source but i get "compiler is out of heap space" when trying to compile ogre :/ 1Gb memory free and it slurps it up like juice.

can i use the files that are int the Mogre binery to compile mogre?

kwertz

26-11-2009 20:38:10

i gett this error wen trying to run an ogre example in the new .NET4.0
System.IO.FileLoadException was unhandled
Message=Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.
Source=Animation
StackTrace:
at Animation.OgreStartup..ctor()
at Animation.Program.Main() in C:\Users\noobs\Documents\Visual Studio 2010\Projects\Hello World II\Animation\Program.cs:line 15
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:


I tried to compile mogre from source but i get "compiler is out of heap space" when trying to compile ogre :/ 1Gb memory free and it slurps it up like juice.

can i use the files that are int the Mogre binery to compile mogre?


Get along with .NET 2.0 or 3.5.
.NET4.0 is only at beta state anyway. :)

smiley80

26-11-2009 20:42:59

Noobs, as a workaround, you can add this to your app.config file:
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
</configuration>

kwertz

26-11-2009 20:50:59

Noobs, as a workaround, you can add this to your app.config file:
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
</configuration>


That's a workaround. Noobs wanted a solution. Or at least help to solve that problem himself. :)

I'll try to compile MOGRE against .NET 4.0 on my machine. Maybe it does.

smiley80

26-11-2009 20:57:17

He won't get the exception anymore...problem solved.

And don't full quote post, that are right above yours.

kwertz

26-11-2009 21:03:56

Okay, sorry. :oops:

noobs

27-11-2009 11:14:27

He won't get the exception anymore...problem solved.
.

The reason i would want to use 4.0 is the fact that it has a Parallel loop, and on a side note has mogre been compiled against multi threading ogre yet?

Beauty

27-11-2009 11:42:51

If I remember right I read that Mogre has problems with the multithreading option. But I'm not shure and it was related to an older Mogre version.
On the other hand I suppose, that the multithreading stuff is managed inside of the Ogre library. So the user only need to enable it. (In the Newton library you just need to enable it, nothing more.)

Beauty

27-11-2009 21:28:57

For the SDK discussion please follow up in the new thread Mogre SDK development.

Beauty

28-11-2009 04:11:01

I suppose that these are all needed depencies for Mogre 1.6.4:

.Net Framework 2.0 (or higher version)
http://www.microsoft.com/downloads/deta ... b15c5e04f5

DirectX 9.0c (March 2009 - update your version!)
http://www.microsoft.com/downloads/deta ... 93d210f616

VC++ 2008 SP1 Redist (or Visual Studio 2008 with SP1)
http://www.microsoft.com/downloads/deta ... 4b9f2bc1bf

Please correct me, if something is wrong or missing.
I want to update the wiki.

When somebody want to use the compiled Mogre version (against 32bit) and has a 64 bit Windows - will they need different depencies?

codo

19-12-2009 23:33:30

Hi guys, I've been working with current release of MOGRE 1.6.4 for a while and it seems to be pretty stable. There's one thing that I noticed wrong: It seems that the current release does not support GIF files (I'm not sure whether previous MOGRE versions supported it).
Image k = s.Load("1.gif", "General");
I've tried with different single-image gifs - no luck.

http://www.ogre3d.org/forums/viewtopic.php?f=4&t=52591 - here is some info about that bug. Maybe it's fixed in Ogre only?

Beauty

23-12-2009 18:45:10

Just for information:
I asked to get moderator for the Mogre section and now I am.
Most posts of this thread I moved to the thread Mogre SDK development.
This should improve the overview.

codo

27-12-2009 10:28:40

Hi guys, I've been working with current release of MOGRE 1.6.4 for a while and it seems to be pretty stable. There's one thing that I noticed wrong: It seems that the current release does not support GIF files

Any ideas how to deal with that bug?

Beauty

27-12-2009 12:06:02

Maybe png files are supported. This is also an image format without information destruction. (Or an other one.)

But it's strange, because in the ogre.log file is written that png is supported. It would be useful to report this problem in the Ogre main forum. If the Ogre (C++) users also have this problem, maybe the Ogre team find a solution. If it works with Ogre (C++), then the problem could be in the wrapper.

You can add images by a plain file and also by a zip archive. Did you check both ways?

05:33:01: FreeImage version: 3.10.0
05:33:01: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
05:33:01: 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

GantZ

27-12-2009 17:13:44

it seem to be an issue with the version of freeimage, so it's directly related to ogre dependencies. i don't know if the current ogre release work with gif files, but the dependencies on the front page haven't be updated for ages, and the problem is pretty recent (the thread you link is from september). i will look into this one, and probably update freeimage to see if it's solve the issue.

codo

27-12-2009 17:22:29

I'd be very grateful if you could update the dependencies. I need to show many different images from external source, so I don't have any influence on the format used, and as they say ... GIF happens :)

GantZ

28-12-2009 19:40:33

just a precision about this issue, it affect only the release version of Mogre. i made a test with both debug and release version and gif load perfectly with debug version.

Beauty

29-12-2009 16:23:00

Where is the free image library included?
To mogre.dll (by compiling Mogre) or is it included to OgreMain.dll (by compiling OgreMain)?
Codo, can you please post this in main forum?
If this is a general problem, then it's of common interest to fix this bug. Maybe people in main forum know a solution.

GantZ

29-12-2009 19:09:49

freeimage is directly embedded in OgreMain.dll, so you have to recompile Ogre to update it. i have already download and compile the latest freeimage lib following the wiki guidline. since ogre 1.6.5 is out now, i will take this as an opportunity to update to the latest freeimage.

codo

04-01-2010 15:26:09

Any news regarding issues with gifs?

GantZ

04-01-2010 19:13:46

i have upload a new mogre version ! see first post. this version is compiled against ogre 1.6.5

@codo
i have update the freeimage dependency for the 1.6.5 version. so far, i have ben able to use gif files in debug and release mode. please test it and check if it work for you

kwertz

05-01-2010 13:37:59

We have worked hardly to finally present you the new MOGRE SDK 1.6.5 beta installer based on revision 49 of the SDK.
You can download it here.

Changes to the SDK itself (excerpt from the change log):

------------------------------------------------------------------------
Changes since MOGRE v1.6.4
------------------------------------------------------------------------

Mogre
----------
-- Updated to Ogre 1.6.5

Checker
----------
-- Added a fully featured dependency checker based on tlibc

MogreNewt
----------
-- Updated to Newton 2.10
-- Now statically linked

MOIS
----------
-- Now statically linked


Changes to the installer:
  1. Mogre.dll is also NGEN'ed now[/*:m]
  2. On-demand download and extraction of debug symbol databases [/*:m]
  3. Check for required dependencies after installation. When all dependencies are existing, a message box is displayed asking the user whether to compile the samples right now.[/*:m]
  4. Shrinked the installer package to only 28,7 MB (additional 21 MB are required in case you want to download the debug symbol databases; they are 260,4 MB large uncompressed)[/*:m]
  5. EDIT: Added an option for the user to launch the sample browser immediately after installation[/*:m][/list:u]

    Have fun and give feedback!

kwertz

05-01-2010 13:40:55

Beauty, could you please update the wiki pages? :)
And GantZ, could you update the first post in this thread (add a download link for the SDK installer)?

kwertz

05-01-2010 13:57:34

Okay, I updated the MOGRE wiki page on my own. Beauty, you only need to update the SDK development page now.

GantZ

05-01-2010 17:39:27

good job :) i will check this out later.

i have update the first post with a link to the sdk installer and a link to your post with the changelog

kwertz

05-01-2010 19:32:18

Great, thanks! Could you update it again? I released another version (r49).
EDIT: Again, thanks. I think I should create a download redirection script for it... ;)

Beauty

07-01-2010 23:53:03

i have upload a new mogre version !
Thanks! Was it much work?

We have worked hardly to finally present you the new MOGRE SDK 1.6.5 beta installer
The most installer work was done just by you - thanks!

Okay, I updated the MOGRE wiki page on my own. Beauty, you only need to update the SDK development page now.
@kwertz: The first post of the thread Mogre SDK development you can edit yourself, because the first post is made by you :wink:
(This property happens because I moved posts from this thread to the development thread. In the result they are sorted by date and your post was the first.)

I will update the page in the new wiki, too.

GantZ

08-01-2010 17:13:12

@ beauty

not really, this version was just a bug fix release. i have take the advantage of this build to test some automatic build scripts using msbuild. the 1.7 version will need more work :)

issingle

10-01-2010 13:33:11

:) i think most of mogrers are expecting the Mogre 1.7 will be released after several days .

GantZ

10-01-2010 17:36:57

having a working version shouldn't be a problem. but having a fully featured mogre 1.7 version with all additions and plugins correctly wrapped is another story. and there is some part of ogre 1.6 that haven't been wrapped ;)

tlaukkan

31-01-2010 09:51:30

Hi

Has anyone tried using collada plugin with Mogre 1.6.5? Are there any bindings for the plugin?

-tommi

koirat

31-01-2010 19:03:29

and there is some part of ogre 1.6 that haven't been wrapped ;)

You are talking about plugins only, or some 'core' functionality.

Also we could divide all the work to some more people.
It's just that somebody who knows what's got to be done and got some respect :P got to take the lead.

GantZ

31-01-2010 20:27:57

You are talking about plugins only, or some 'core' functionality.

i think about pcz manager here. i haven't check all the new function of 1.6, but that's the first thing that come to mind. also, background loading and multi thread support it somethings that haven't be tested. i know it somehow "work", but without the ability to tell if it's usable in a real application.

Also we could divide all the work to some more people.

I also think that i have probably too much things on my hand right now, to be able to make proper progress on the mogre front. based on that, i will make a post on the next days with all the thing that need to be done on mogre. this way, people who want to help the project know what's need to be done and who work on what.

my.name

25-02-2010 09:03:59

MyGUI 3.0.2 (2856) already for Mogre (SDK 1.6.5)

Beauty

25-02-2010 21:36:05

What you mean?

Does it work?
Or do you need it?
Or did you update it? (If so, please offer it for the public and the MogreSDK. Also it would be good to have an example application that shows the different features. Maybe use duplicated controls with each an other graphic style to show beginners that the style is customizable.)

my.name

04-03-2010 21:17:21

MyGUI 3.0 for MogreSDK 1.6.5
https://sourceforge.net/projects/my-gui/files/Managed%20MyGUI%20for%20Mogre/MyGUI%20for%20Mogre%201.6.5/Managed_for_MogreSDK_1.6.zip/download - bin (8.6 Mb)
https://sourceforge.net/projects/my-gui/files/Managed%20MyGUI%20for%20Mogre/MyGUI%20for%20Mogre%201.6.5/MogreFramework_MyGUI_3.0.zip/download - source (25.6 Kb)

GantZ

04-03-2010 21:54:30

good job ! thanks for that :)

my.name

04-03-2010 23:34:32

=)

WarehouseJim

16-04-2010 14:23:43

SDK Bug:

If you are running Win7 64bit, the samples don't work beyond the sample browser i.e. the Mogre bit doesn't work (and no useful information is given as to why not - something like "can't find the file"). If I run BuildSamplesX86.cmd they then work.

As a more general criticism, I find with my projects that it's a nightmare to work out why Mogre isn't working, with cryptic / misleading exception messages e.g. "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." More usefully in ogre.log it says: "14:29:01: OGRE EXCEPTION(7:InternalErrorException): C:/MogreSDK/Media/packs/OgreCore.zip - error whilst opening archive: Unable to read zip file. in ZipArchive::checkZzipError at ..\src\OgreZip.cpp (line 259)" I assume they're the same problem being reported, but the second message is a lot better at indicating the problem, but it's essentially hidden.

smiley80

20-04-2010 19:27:49


If you are running Win7 64bit, the samples don't work beyond the sample browser

That's a BadImageFormatException, since the 64bit framework can't load 32bit binaries(ogremain.dll). Your project has to have 'x86' as target cpu, so a 64bit Windows starts the 32bit framework through WOW64.


As a more general criticism, I find with my projects that it's a nightmare to work out why Mogre isn't working, with cryptic / misleading exception messages e.g. "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." More usefully in ogre.log it says: "14:29:01: OGRE EXCEPTION(7:InternalErrorException): C:/MogreSDK/Media/packs/OgreCore.zip - error whilst opening archive: Unable to read zip file. in ZipArchive::checkZzipError at ..\src\OgreZip.cpp (line 259)"

That's because you're swallowing SEHExceptions somewhere, like:

try
{
MyApp app = new MyApp ();
}
catch (System.Runtime.InteropServices.SEHException)
{
if (OgreException.LastException != null)
LogManager.Singleton.LogMessage(OgreException.LastException.FullDescription);
else
throw;
}

The AccessViolationException is only a followup.

GantZ

13-05-2010 10:13:28

i have uploaded to sourceforge binary and source for vs2010. Thanks to mstoyke for this one. See first post for the links

Dusho

13-07-2010 21:57:41

I'm using 1.6.5 with Winforms to create simple editor (was not able to make 1.7.x run after SDK install, even samples were not running) - is there a way to have comments in Visual studio for Mogre methods? is there anywhere .xml document for 1.6.5 dlls ?

mstoyke

14-07-2010 10:17:01

I'm using 1.6.5 with Winforms to create simple editor (was not able to make 1.7.x run after SDK install, even samples were not running) - is there a way to have comments in Visual studio for Mogre methods? is there anywhere .xml document for 1.6.5 dlls ?

Are you using VS2008 or VS2010?

There are no XML docs for Mogre but most of the times you will find anything you need to know about certain functions and classes in the Ogre manuals and documentation.

Dusho

14-07-2010 15:28:20

using VS2008 SP1
I'm totally new to Orge, wanted to try some C# engine so went for Mogre. And I'm a bit disappointed - after SDK install had to google all the problems having with Debug/Release run, not that many samples to work with and totally no comments for Mogre.
I guess I will check some Ogre code then.. ugly C++ code again..
edit: ye.. can't find the documentation link from Mogre to Orge where usually people would look for it - can we get link to most useful documentation of Orge in first post.

smiley80

14-07-2010 17:36:49

is there anywhere .xml document for 1.6.5 dlls ?
http://mogresdk.googlecode.com/svn/tags ... /Mogre.xml

Dusho

14-07-2010 22:21:53

thnx
now another stupid question - how to make it work with visual studio.. I guess visual assist can take documentation from .xml file for dll, but how to set it up with clean visual studio..

smiley80

14-07-2010 22:33:15

Move Mogre.xml to the same folder as the referenced Mogre.dll.
If you have had VS open, close and reload the solution.

Dusho

14-07-2010 23:37:12

ah ye.. made a copy with Mogre_d.xml name, now it works. Thanks for help.
for some weird reason had to use mogre_d.dll in my references to make debug version work..

Beauty

24-11-2010 17:55:17

For my main application I can't use Mogre 1.7, because the related version of MogreNewt crashes.
So I will stay on Mogre 1.6.

In Mogre 1.6 I miss the method Mogre.OverlayManager.Singleton.HasOverlayElement(...).
(Mogre 1.7 contains it.)
So I want to add this method but I'm not shure how to do.

I never compiled Mogre and don't know much about the wrapping process.
So I suppose it happens in this way:
Ogre code --> apply autowrapper --> compile result --> Mogre.dll

Do I need to modify the autowrapper?
Or do I modify the result of the autowrapper?

(I suppose the method HasOverlayElement() was already a part of Ogre 1.6.)

smiley80

24-11-2010 18:26:44


In Mogre 1.6 I miss the method Mogre.OverlayManager.Singleton.HasOverlayElement(...).

public static bool HasOverlay(string name)
{
foreach (var overlay in OverlayManager.Singleton.GetOverlayIterator())
{
if (overlay.Name == name)
{
return true;
}

if (HasOverlay(name, overlay.Get2DElementsIterator()))
{
return true;
}
}

return false;
}

private static bool HasOverlay(string name, IEnumerable<OverlayContainer> it)
{
foreach (var overlay in it)
{
if (overlay.Name == name)
{
return true;
}

if (HasOverlay(name, overlay.GetChildContainerIterator()))
{
return true;
}
}

return false;
}

Beauty

24-11-2010 23:49:32

Oh smiley80,
you're great :D

This is the most easy way - thanks!

Beauty

11-02-2011 14:31:19

I still use Mogre 1.6, because I have problems with 1.7 (in context to the current version of MogreNewt).

Precompiled binaries are available in the SVN:
http://sourceforge.net/projects/mogre/f ... gre/1.6.5/

Problem:
The file Mogre165VS2010b.7z should contain Mogre 1.6.5.
When I link Mogre.dll by Visual Studio, it shows the Version 1.7.1. (Happens to both, the debug and release version.)
So either the wrong version was uploaded or the version information field inside the dll file is wrong.

Does anybody knows the answer?
It would be good to correct this issue, because it could cause problems by version incompatibilies (especially when the user suppose to have an other version).



UPDATE:
Maybe it was my problem.
The DLL I linked with Visual Studio 2005. (My test solution file was opened by this.)
VS 2008 can't display a version number (and shows a conflict symbol).
VS 2010 I can't check now, because it's not on this computer.
When I open the dll file with an editor, I don't find a String "1.7", but I found "1.6.5".
So I suppose everything is correct.
Sorry for disturbing.

Beauty

11-02-2011 14:37:52

For my application I need the method Viewport.SetAutoUpdated(...)

Ogre Class reference:
void Ogre::Viewport::setAutoUpdated ( bool autoupdate )
http://www.ogre3d.org/docs/api/html/cla ... 749cbddba8

Unfortunately this isn't included in Mogre 1.6.5.
Either this method is new and was added in Ogre 1.7.
Or the 1.6.5 autowrapper "forgot" to wrap it. (In this case I could add it and try to recompile Mogre.)

Does anybody knows more details?