MOGRE MOIS and Winform Panel

gasdeveloper

22-08-2011 06:14:16

I am having some problems finding a way to do the following.
I have Mogre attached and rendering to a Panel object in my Winforms application. I am developing a Scene (Level) editor and would like to have direct interaction to the render surface and the mouse, for like dragging entities around in the 3d world.

at the moment everything I do is handled on the Winforms GUI and input system, however I would like to place Axis arrows on nodes and be able to move them directly in the rendering surface.

I have been trying to use MOIS however it crashes if I attach it to the panels Handle or if I get the mRenderWindow (ogre window object) and get its Parent Handle like in the example when it is attached to the panel. It works if I use the forms handle though.

Any examples of this, or help?

McDonte

22-08-2011 11:25:06

Hey,
can you post the code section where you try to connect MOIS and the panel?

Actually you should be able to use Windows.Forms input system for your purposes. The advantage of using MOIS becomes important if your are using it in a game. But for editors WinForms is fine.

Beauty

29-08-2011 11:01:18

I have no MOIS experience, but I have a suggestion:

The Glue Editor is a Mogre Level editor. Its author zarifus published the source code. For me the source code looks written well. You can look there for details how to implement several things (e.g. mouse picking). If you have questions, just ask zarifus in this forum topic.


Do you know the MOIS wiki page? It contains examples.
http://www.ogre3d.org/tikiwiki/MOIS
It also contains a link section. Perhaps one of them is useful for you.

eddy

18-11-2011 11:34:38

Good thing I saw this recommendation. A while ago I also wanted to learn from that source. Do you know from where can we download the source code? Those links are not working for me.

Beauty

18-11-2011 13:31:00

The repository of the improved / deslagged Glue Editor Lite you find here:
https://bitbucket.org/glue/glueeditor

zarfius

19-11-2011 07:00:22

I am developing a Scene (Level) editor and would like to have direct interaction to the render surface and the mouse, for like dragging entities around in the 3d world.

Hi gasdeveloper,

I'm the developer of Glue Editor. You are more than welcome to have a look at the source code to find out how to do this. It's all in there ;) I don't have a lot of time to spend working on the editor these days but the code should be reasonably complete and stable. Rather than developing your own scene editor from scatch you might like to use Glue Editor as a starting point?

Even if I can't find a lot of time for coding I'll always try and answer questions about it. I'd love you hear your ideas? :)

nuten

02-03-2013 06:15:46

The advantage of using MOIS becomes important if your are using it in a game...................., :D