Tools and editors in .net

lem_muppet

25-04-2006 16:18:20

Hey Betajaen,

ive just come across your wrapper in the last few days, and cant wait to get stuck into it (waiting to for physX registration to get approved so i can d/l the SDK...)

I have a question about creating tools in .Net, and it might be a really stupid one, but im not familiar with Ogre.net dev... i noticed in the original thread u talked about "Corona" and that you are using .Net to make it. Does that mean you are using an Ogre .Net wrapper for it? How are you rendering to the window?

Cheers mate

betajaen

25-04-2006 17:59:48

Well it's not a .net binding like Ogre.net, it's just normal C++ using Windows Forms via .net, it's a little tricky to get Ogre imported correctly, you have to "#include" them in a specific order.

How I rendered to the window, was pretty simple. I create a picture box then passed on the "hwnd" of that into Ogre. What I did then is create a Thread which calls renderOneFrame to Ogre, every x milliseconds (however I tweaked it so if the mouse pointer was over the picture box - x milliseconds was lower, and when it went outside it it increased).

I would provide the code for it, but Corona is on a harddisk which isn't plugged in at the moment, and the only working computer I have is a Mac Mini.