Page 2 of 3

Re: [News] Ogre3D now supports Windows Phone 8!

Posted: Wed Nov 07, 2012 12:12 pm
by jarno
Awesome! Thanks a lot!

Re: [News] Ogre3D now supports Windows Phone 8!

Posted: Wed Nov 07, 2012 12:19 pm
by Assaf Raman
Do you have the rest of the dev environment ready?
Meaning Windows 8 with the Windows Phone 8 SDK and the emulation running?

Re: [News] Ogre3D now supports Windows Phone 8!

Posted: Wed Nov 07, 2012 12:39 pm
by jarno
Yes I do.

Re: [News] Ogre3D now supports Windows Phone 8!

Posted: Wed Nov 07, 2012 2:58 pm
by Assaf Raman
Great!

Re: [News] Ogre3D now supports Windows Phone 8!

Posted: Wed Nov 07, 2012 6:03 pm
by Assaf Raman
A ready to go WinRT and WP8 solution.
1. Install Window 8 and run it.
2. Install Windows Phone 8 SDK
3. Install Visual Studio Express 2012 for Windows 8
4. Download and uzip this to c: root. (The result will be in C:\1.9WPRC)
5. If you want to compile for Windows Phone 8 - open this solution - C:\1.9WPRC\WP8\build\OGRE.sln using Visual Studio Express 2012 for Windows Phone 8
6. If you want to compile for WinRT - open this solution - C:\1.9WPRC\WinRT\build\OGRE.sln using Visual Studio Express 2012 for Windows 8

I didn't try to build with to paid version of Visual Studio because I wanted to use only free tools (except Windows 8 I guess).
Make sure to use the right Visual Studio versions (as in steps 5,6) - else you won't be able to deploy the app (deploy will fail without any error message to explain why).

Re: [News] Ogre3D now supports Windows Phone 8!

Posted: Thu Nov 08, 2012 8:31 am
by jarno
Awesome! It works. Thanks again! :)

Do you happen to know if it should be possible to render on a xaml DrawingSurface with Ogre?

Re: [News] Ogre3D now supports Windows Phone 8!

Posted: Thu Nov 08, 2012 8:36 am
by Assaf Raman
Great! You are the third person on earth to get OGRE running on WP8 (emulation or device)

Re: [News] Ogre3D now supports Windows Phone 8!

Posted: Thu Nov 08, 2012 2:53 pm
by lderan
mmm that makes me the 4th, thanks for your all assistance Assaf :)

Re: [News] Ogre3D now supports Windows Phone 8!

Posted: Thu Nov 08, 2012 2:58 pm
by Assaf Raman
Sure.
I have some GUI fixes - to make sample browser navigation easier - will commit them soon.

Re: [News] Ogre3D now supports Windows Phone 8!

Posted: Fri Nov 09, 2012 2:58 am
by lderan
All the samples work fine but I do get intermittent break warnings from VS2012,

I got this when I tried to launch the skeletal animation sample, it works after I redeploy the application
Unhandled exception at 0x7182E679 (Msvcr110.dll) in SampleBrowserWP8.exe: An invalid parameter was passed to a function that considers invalid parameters fatal.
stops at line 131 on invarg,c

In debug mode, on the win32 emulator.

Now onto creating a base project to start learning from.

Re: [News] Ogre3D now supports Windows Phone 8!

Posted: Fri Nov 09, 2012 9:09 am
by Assaf Raman
If you want to see what the " An invalid parameter" issue is - turn on break on c++ exceptions in visual studio. Good luck with your project.

Re: [News] Ogre3D now supports Windows Phone 8!

Posted: Mon Nov 12, 2012 5:59 am
by jsding
Good news! We are planning to port our Android/iOS games to Win8, if so.

Re: [News] Ogre3D now supports Windows Phone 8!

Posted: Mon Nov 12, 2012 7:08 am
by Assaf Raman
Will be happy to help if you will have issues.

Re: [News] Ogre3D now supports Windows Phone 8!

Posted: Tue Nov 13, 2012 10:21 am
by nkligang
WP8 running error:
"The project 'SampleBrowserWP8' cannot be started directly. To debug this project, you must reference it from an aplication project thar is specified as the Startup Project."

tell me, how i can do? :x

IDE is VS2012 pro. winRT can run on it. WP8 is not.

Re: [News] Ogre3D now supports Windows Phone 8!

Posted: Tue Nov 13, 2012 10:37 am
by Assaf Raman
You need to use the visual studio express that comes with the WP8 SDK.

Re: [News] Ogre3D now supports Windows Phone 8!

Posted: Tue Nov 13, 2012 11:05 am
by nkligang
i use vs express 2012 for WP, but it show "SampleBrowserWP8 project is incompatible with the current edition of Visual studio".
i had installed VS pro and WP8 SDK >...

Re: [News] Ogre3D now supports Windows Phone 8!

Posted: Tue Nov 13, 2012 11:08 am
by Assaf Raman
No clue, it works for me on more then one computer.
Try to create a new WP8 project and see if it runs.

Re: [News] Ogre3D now supports Windows Phone 8!

Posted: Tue Nov 13, 2012 11:51 am
by nkligang
Assaf Raman wrote:No clue, it works for me on more then one computer.
Try to create a new WP8 project and see if it runs.
thanks Assaf Raman. yes , i create a new WP8 projects (for native only) that run on my computer...there was any proplem with my computer and IDE.

Re: [News] Ogre3D now supports Windows Phone 8!

Posted: Tue Nov 13, 2012 3:25 pm
by Assaf Raman
No clue, and I don't know how to recreate the problem - so I don't see how I can help.
Try uninstalling the WP8 SDK then re-installing the version from Microsoft download site.

Re: [News] Ogre3D now supports Windows Phone 8!

Posted: Tue Nov 13, 2012 7:45 pm
by jarno
So, I'm now able to pass ogre render results from a WinPRT component to a managed WP project via a shared texture and show them on top of xaml content. However, for some reason I don't seem to be able to get the character sample animations to play in my project (the sample that is shown on the video here http://blogs.msdn.com/b/interoperabilit ... works.aspx). I pretty much just took the character controller class and the asset .zip from the sample and am using them from my renderer, which mimics the CubeRenderer in XAMLAndDirect3D sample project. I'm positive that the character controller addTime method gets called every frame with proper time delta value and that animation addTime gets called as well, but all that happens is that the character changes pose but doesn't animate.

I would appreciate any help. Is this related to WP not supporting hardware skinning(?). Or what could I be missing?

Thanks!

Re: [News] Ogre3D now supports Windows Phone 8!

Posted: Tue Nov 13, 2012 9:13 pm
by Assaf Raman
It doesn't work in the OGRE sample browser that I uploaded?

Re: [News] Ogre3D now supports Windows Phone 8!

Posted: Tue Nov 13, 2012 9:22 pm
by jarno
It does work in the sample project, but when I try to run the animations in my own project, they don't seem to be playing.

Re: [News] Ogre3D now supports Windows Phone 8!

Posted: Wed Nov 14, 2012 4:42 pm
by jarno
I got the animations to work now. I'm rendering the scene to texture and previously I was just rendering by calling myrendertexture->update(). Now that I switched to Ogre::Root::getSingleton().renderOneFrame(timeDelta) the animations started to work. I would still be interested to hear why the animations didn't work with RenderTexture-update().

Re: [News] Ogre3D now supports Windows Phone 8!

Posted: Wed Nov 14, 2012 4:54 pm
by Assaf Raman
How can I recreate your issue?

Re: [News] Ogre3D now supports Windows Phone 8!

Posted: Thu Nov 15, 2012 7:34 am
by nkligang
Assaf Raman wrote:No clue, and I don't know how to recreate the problem - so I don't see how I can help.
Try uninstalling the WP8 SDK then re-installing the version from Microsoft download site.
thank you. i can run the project on my computer. when i change device orientation to landscape, the scene was not changed?