Need some advice/ help

LordSalem

26-10-2011 23:16:57

I've been working with Mogre for about 2 months now. I am working with a team on a university project, and we decided to make a flight combat style fps. It is loosely going to be modeled after ace online. I have looked into the different scene managers and am a bit confused by all the options. I really like what Myrddin has done, and would like to be able to do some sort of paging landscape. I found http://www.ogre3d.org/tikiwiki/Mogre+Basic+Tutorial+3b and the new 1.7.3 stuff. The tutorial isn't as thoroughly explained as the earlier ones :( This is my first foray into 3d programming and has been exciting thus far. I Discovers L3DT, and am learning that. It seems like that'll be a great tool for creating height maps or terrain meshes. My dilemma currently is how do I work with these plugins. It seems as though no one has a pre-compiled dll that I can just add to my references like the Mogre dll. If someone can give me some help in the right direction of how to create a massive paging world I would be grateful!

McDonte

27-10-2011 08:23:12

Hey LordSalem,

I am afraid, that Myrddin was not updated for a long time and so is not compatible with the current Ogre/Mogre version. Maybe it will run anyway, so should just try to compile it.
I found http://www.ogre3d.org/tikiwiki/Mogre+Basic+Tutorial+3b and the new 1.7.3 stuff. The tutorial isn't as thoroughly explained as the earlier ones :(
I have ported this tutorial and I understand what you mean: there are not many explanations in it, often you read "this is not important to understand now...". The problem is that it is the only tutorial on the new Terrain Component we have. I do not know anything more than I read in the tutorial so I could only port it, that means writing the same code for Mogre and slightly modifing the text.
For paging there is a similiar problem: since Ogre 1.7 we got the new terrain component and the paging component. For terrain there is the tutorial mentioned above, paging is not explained anywhere. So I guess you could use the Ogre paging (no need for an external paging engine) but you have to find out how it is working. At least you already have the pre-compiled dll :)
If someone can give me some help in the right direction of how to create a massive paging world I would be grateful!
This is always the aim :D actually my only advice is: try the Ogre paging.

LordSalem

28-10-2011 19:54:12

Tried thoroughly to compile myrdding, alass It's not worth that many hours of trouble. I've been toying around with that stuff from the tutorial. What do you mean try Ogre paging? Could you link me what you are referencing?

McDonte

29-10-2011 20:50:58

What do you mean try Ogre paging?
Since Ogre 1.7 there are two new components: Terrain and Paging. With "try" I mean that it is already wrapped but there are no tutorials yet (at least I have not found any). Thanks to IntelliSense and common sense you might be able to build up an application using paging.

Could you link me what you are referencing?
Sorry, I do not have any references on paging that would help. I read some posts from sinbad in the forums where he explains how he is implementing the components. Unfortunately there are no code snippets just theoretical thoughts.
The only thing I found: Youtue (not very helpful but you can decide whether this is what you want to use)

Sorry, that I cannot give you a clear advice but so far I did not find any helpful instructions.

LordSalem

01-11-2011 20:06:23

So we've gotten the tutorial3b going nice and purdy with our custom 4*4 map tiles, only problem is it's loading it all at once and not 'paging' anything. It worked for a single run of the thing, but after changing any value it stops paging and starts just loading all the tiles in and leaving them there. What actually causes it to page?

Then we construct our TerrainGroup object - a helper class to manage a grid of terrains but it does not do any paging (which is done by the paging component you can see in Intermediate tutorials soon).

What does it meeeean!?!?!?

McDonte

15-11-2011 08:46:04

Unfortunately there is not yet an intermediate tutorial for paging (at least I haven't found one). I took the text from the Ogre Tutorial 3 and I thought it would be a good idea to cover the paging in an separate tutorial. Now the problem appears that nobody seems to know how to use the component. My only hint: go in VisualStudio, type "Mogre.P" and then take a look at all the paging classes appearing in IntelliSense. Maybe you are able to get a clue how to use them (I don't know if they are already commented in Mogre...).

If you find a tutorial covering paging send me the link and I will convert it for Mogre.

Beauty

18-11-2011 22:04:41

Welcome to our Mogre world. :D
First of all is to say that it needs very much time to create games. So maybe it's good to keep the personal requirements simple. Then you have a better chance to finish your game. I don't want to hit you. It's just common experience.

Myrddin [...] is not compatible with the current Ogre/Mogre version
If I remember right, Myrddin or an other user could update it for usage with Mogre 1.7. (many months ago) But I'm not shure. Look through the ~20 latest posts of the forum topic.
It's a great looking SceneManager, but I suppose that only less people do/did use it. The developer want's to improve it, but has no time for it for 1 or 2 years now. Sometimes he gives answers, but not much more.
Also be aware that there are not many people who can help, when you have problems with it, because of the less users.
On the other hand - if you can get it run, you can enjoy the sweet terrain.
It's your favorite. So just try to compile/update it your own. Give yourself a limit. (e.g. one week of testing) For problems/questions ask in the Myrddin forum topic. If nobody helps, then skip it.

If you import terrain as mesh, then it's not so performant as terrain managers, but then I suppose you can use each SceneManager as you want.
I just have experience with the Terrain Scene Manager.
For my application it's well.
In Ogre 1.8 it was removed. We want to try a trick to keep it also for Mogre 1.8.
If you stay with Mogre 1.7 (still pretty well), you can use it out of the box.


Terrain and paging component:
I suppose somewhere in the main forum are topics with code snippets. You need to search for related posts. If you find nothing, open a new topic in the main forum. There are much more users and you have better chances for related answers. The usage with Mogre should be similar to Ogre (C++). So don't be aware to read and ask additionaly in the Main forums.

The terrain component is for one big terrain. When you use it in combination with the paging component, you can split it to several terrain chunks. This is what I understood by reading terrain topics.

Many months ago I read, that the paging component has no good speed optimization. I don't know it somebody improved it now.
This year was a GoogleSummerOfCode project. Either to terrain or to paging. I don't remember.
Be aware that our Mogre wrappers for the new terrain and paging component are only alpha versions. We don't know how stable they are or how much was wrapped / is missing.

I don't know much about paging.
Mabe you always see all chunks in your direction of view. Perhaps only the terrain of the backside of the camera will not processed. Well, just an idea. I don't know if my assumption is right.
As I said: Look to the Ogre main forums. If you don't find what you want, don't be afraid to ask there.


In most worst case (when you really need paged terrain), you should consider to use Ogre (C++) instead. Then you don't have problems with the lack of a stable terrain/paging wrapper.

McDonte

19-11-2011 16:05:07

I don't know much about paging.
Mabe you always see all chunks in your direction of view. Perhaps only the terrain of the backside of the camera will not processed. Well, just an idea. I don't know if my assumption is right.

I think this video shows pretty good how Ogre paging is supposed to work. I guess it was recorded from the new terrain sample in the Ogre SDK.

Beauty

21-11-2011 01:36:37

Nice video.

Related to paging:
There is the wiki page Ogre Terrain Component FAQ with also contains a section about paging.

McDonte

23-11-2011 10:41:17

Hey LordSalem, when you are still looking for a solution check my last post at this topic. I gave a snippet how to use the paging component in Mogre.