Converting the examples/demos

pekkah

03-10-2006 13:18:53

I'm new to Ogre and Mogre. I was first planning on using OgreDotNet but then I found out about Mogre and it seems a better alternative.

To get to know about Mogre I was planning on converting the OgreDotNet examples which I was studying before the switch to Mogre. What should I take in concideration when converting the examples? Are there some major differences between the two? other than the way they handle the wrapping.

Does Mogre include the example application framework like the one in the OgreDotNet?

Has someone already done such an conversation other than the ones that are avaible at the svn repository?

Bekas

03-10-2006 14:58:59

I'd really like to have most of Ogre demos ported but it's down on the priority list at the moment, so I would be grateful if you gave me a hand on this one. If you have any issues/questions make a post and I'll be glad clear them up.

Are there some major differences between the two? other than the way they handle the wrapping.

Does Mogre include the example application framework like the one in the OgreDotNet?

Mogre doesn't use the example application framework of Ogre, this one is ported to C# in the ExampleApplication library; the samples for Mogre are supposed to reference ExampleApplication.dll and subclass the Demo.ExampleApplication.Example class.

Also, I didn't wrap Ogre's input, I use Managed DirectInput instead (input handling is included in ExampleApplication.dll)

I'm not sure how OgreDotNet handles listener classes (like FrameListener) but in Mogre all addListener/removeListener methods are replaced by .NET events. Take a look at the Fresnel demo which I specifically chose to port to show how Ogre's listener pattern will look like when ported for Mogre.

Has someone already done such an conversation other than the ones that are avaible at the svn repository?
None that I'm aware of :)

pekkah

06-10-2006 15:08:54

I haven't started working on the examples yet. Life seems to be busy but I will take a look at it sometime soon.

Bekas

06-10-2006 20:28:03

Now that I've got Cegui working I'm gonna start porting all of Ogre demos, you may want to keep an eye on SVN.
I also suggest looking at the Ogre and OgreDotNet wiki tutorials which are great for learning Ogre; the demos are mostly for showing off various features, therefore are not documented much.

linkerro

11-10-2006 14:28:55

Hello,

sorry for not posting for so long but the net is dead in my hostel. Anyway, about the demos. I have translated dot3bump and fresnel. Fresnel doesn't work properly at this time becouse there is a function missing in Mogre. Or atleast it was missing in the version I have installed, but dot3bump works perfectly.

I'll post them as soon as I get some net in my room.

linkerro

16-10-2006 22:06:07

Bekas,

My previous message stated that I had problems in porting the fresnel example because of a specific function. I have moved the demo to a newer version of Mogre, and made it to work exactly as in the c++ example but it doesn't work even now.

As for the Dot3Bump example that I would like to upload, I would like a mail address to send it to you, since I don't have a FTP account anywhere.

Thanks.

Bekas

16-10-2006 22:53:22

I have ported the Fresnel demo (SVN source) and it's working fine, which is the specific function that you had problems with?

I'll PM you for Dot3Bump, thanks!

Vectrex

17-10-2006 09:21:57

any chance of converting the oFusion loader and/or dotScene?

Bekas

17-10-2006 10:26:02

You should ask pjcast for a code snippet. He has implemented both oFusion and dotScene loading for Ogre Studio.

Vectrex

17-10-2006 10:30:53

ah yeah! I actually remembered that... then promptly forgot ;)

rosenkro

17-10-2006 17:43:56

Hi...

I've done the SkeletalAnimation demo in vb.net and i'm working on the other demo's too... If you're interested I can send them to you for putting them in the svn.

Great work you've done, btw...

Roland from Germany

pjcast

17-10-2006 18:57:59

any chance of converting the oFusion loader and/or dotScene?

You should ask pjcast for a code snippet. He has implemented both oFusion and dotScene loading for Ogre Studio.

Actually, you can dowload both dotscene and ofusion loaders from:
https://www.wreckedgames.com/svn/visual ... leReaders/

Note: The ofusion handler only deals with entities right now. It was basically just a copy and paste of DotScene loader with some small changes, and I havn't gotten around to making it more complete.

I know the license text identifies it as non usuable anywhere else. But, consider the plugins for Ogre Studio all LGPL (the license will be updated soon). So, use this code as you will, as long as you follow the LGPL guidelines.