Problems with Tutorials and MogreFramework.dll

Amnu

15-10-2008 14:09:22

Hi there,

1. Tutorials

I've been browsing through the wiki and the forums but so far I have not found any tutorials starting from scratch - only thing I found was this: http://www.ogre3d.org/wiki/index.php/Mogre_Basic_Tutorial_0
I would like to have a tutorial for starting from complete scratch with no external MogreFramework.dll that has to be linked to the tutorial project. I'm the kind of person who wants to understand every detail of what's going on even if that means working through a lot of stuff.

2. MogreFramework.dll

I cannot start with the Tutorial 0 from the wiki. The problem is, I can't find the MogreFramework.dll in the specified SVN repository. I found this article http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=8215&highlight=tutorial which confirms my problem but I have a different problem compiling the MogreFramework.dll source code.
I get this error
"Timer' is an ambiguous reference between 'System.Windows.Forms.Timer' and 'Mogre.Timer' E:\MogreSDK\MogreFramework\MogreFramework\DefaultInputHandler.cs"
I tried resovling the error by going through the different possibilites (System.Windows.Forms.Timer, Mogre.Timer, Ogre.Timer and so on) but none of them let me compile but produced different errors.

So I'm kind of stuck here. Can't use the wiki tutorial as I cannot get a MogreFramework.dll file and I can't find a tutorial not needing MogreFramework.dll ...

Some help please ...
Amnu

ProfesorX

16-10-2008 19:14:10

1. Yes, there isn't a Tutorial "Totally from Scratch" but you can write one and publish it, that's what the wiki is made for ;)

2. It's easy to compile, only change line 18 in DefaultInputHandler.cs

Change this line:
Timer mTimer = new Timer();

with:
System.Windows.Forms.Timer mTimer = new System.Windows.Forms.Timer();

and delete the following line in Project/properties/ Compilation events":

copy "$(TargetPath)" c:\OgreSDK\bin\$(ConfigurationName)

Or you can download the dll from here:

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

Amnu

17-10-2008 10:33:57

Thank you ! I'm now busy with something else but I'll come back to this in about one or two weeks and if I get the idea of what's going on I'll write a "from scratch" tutorial.

Gila

25-01-2009 11:51:10

I've just hit this same problem whilst working through Mogre Basic Tutorial 0 on the wiki.

Why is there no MOgreFramework.dll in the MOgre SDK? Downloading the dll as described above seems to fix it, but is this the "correct" solution?

If someone can enlighten me I'd be happy to update the wiki so that it matches what's in the SDK download.

The offending sentence is "After the MogreFramework has been extracted, there should be a file called MogreFramework.dll in both the C:\MogreSDK\bin\debug and C:\MogreSDK\bin\release directories. "

OR maybe I'm being totally blind/stupid......

smiley80

25-01-2009 12:38:53


Why is there no MOgreFramework.dll in the MOgre SDK?

Because it's only a helper library for the tutorials and shouldn't be used in your real project.
(Well, you can use it later, but eventually it's better to know the things the dll is doing.)

Downloading the dll as described above seems to fix it, but is this the "correct" solution?
Yes. Or compile the code yourself from SVN.

Beauty

25-01-2009 16:01:55

2. It's easy to compile, only change line 18 in DefaultInputHandler.cs

Change this line:
...
and delete the following line in Project/properties/ Compilation events"
...

Isn't it better if somebody change this in the SVN?



Or you can download the dll from here:
http://rapidshare.com/files/129214459/MogreFramework.zip

How long rapidshare will keep the file? If it will be deleted after some months I would upload it to somewhere else (e.g. my website) and link it from wiki.
Is this MogreFramework.dll compiled for Mogre 1.4.8?


... but I'll come back to this in about one or two weeks and if I get the idea of what's going on I'll write a "from scratch" tutorial.
It's always great if someone adds information to the wiki :D



Why is there no MOgreFramework.dll in the MOgre SDK?

Because it's only a helper library for the tutorials and shouldn't be used in your real project.

Right, but it would be more easy for newcomers when they find the right file in the SDK.
If someone learns more (e.g. by tutorials), he will see how to do it without that file.
By the way, if you don't integrate it to the MogreSDK you can't avoid that somebody use it for a real project.

smiley80

25-01-2009 17:40:37

Okay, here's an all-in-one zip file containing MogreFramework and Basic Tutorial 1-6 + all necessary dlls and media files:
http://sites.google.com/site/infralicht ... edirects=0

The solution has been created with #D 3.0, so you need either that or VS2008.

smiley80

29-01-2009 00:15:13


Right, but it would be more easy for newcomers when they find the right file in the SDK.
If someone learns more (e.g. by tutorials), he will see how to do it without that file.

Sure, I think it would be nice to integrate the tutorials (basic + intermediate) somehow into the SDK (like the examples).


By the way, if you don't integrate it to the MogreSDK you can't avoid that somebody use it for a real project.

Of course, but I thought it might perhaps be confusing to put only the dll in the SDK and people might think it's an essential part.

Beauty

30-01-2009 12:20:14

Sure, I think it would be nice to integrate the tutorials (basic + intermediate) somehow into the SDK (like the examples).
Of course, but I thought it might perhaps be confusing to put only the dll in the SDK and people might think it's an essential part.

You have a good idea. We could integrate a subdirectory called tutorials to the MogreSDK. This includes runnable tutorials together with the MogreFramework.dll file.
So there would be a good seperation to the main content of the SDK.
Also we could integrate HTML pages with a copy of the wiki tutorials. Of course this should have a good visible remark with link to the related wiki page. If we do so, I would create the HTML files which to place in the MogreSDK.

Maybe it's also good to add a quick check program. If a depency is missed (like vcredist or DirectX Redistributable or .NET) then the program tells exactly what is missed. Maybe this shouldn't be a C# program, because this also would have depencies.

kerozcak

11-02-2009 14:51:40

Hi there,

1. Tutorials

I've been browsing through the wiki and the forums but so far I have not found any tutorials starting from scratch - only thing I found was this: http://www.ogre3d.org/wiki/index.php/Mogre_Basic_Tutorial_0
I would like to have a tutorial for starting from complete scratch with no external MogreFramework.dll that has to be linked to the tutorial project. I'm the kind of person who wants to understand every detail of what's going on even if that means working through a lot of stuff.


You can check Tutorial 5 (http://www.ogre3d.org/wiki/index.php/Mo ... Tutorial_5).