Page 1 of 3

[News] Ogre3D now supports Windows Phone 8!

Posted: Tue Oct 30, 2012 7:10 pm
by OgreNewsBot
Some weeks ago, Microsoft and Nokia contacted us and offered to provide a patch to officially support Ogre3D on Windows Phone 8 (WP8). Now it is official!

Read the full story here:

http://www.ogre3d.org/2012/10/30/ogre-n ... ws-phone-8


We were also featured in the WP8 launch key note slides that were just presented at the BUILD 2012 developer conference:
Ogre3D Logo in WP8 KeyNote.png
Ogre3D Logo in WP8 KeyNote.png (149.37 KiB) Viewed 16879 times
A Visual Studio solution you can just download and compile

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

Posted: Tue Oct 30, 2012 7:27 pm
by Zonder
This doesn't surprise me to be honest.

And if I were people look into getting your apps store ready as I bet there will be free stuff up for grabs from Nokia and ms the current wp7 store gave xboxes and kinects for app submissions and in fact Nokia gave out 20,000 dev phones to the Symbian community with deployed apps ages ago. :)

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

Posted: Tue Oct 30, 2012 10:24 pm
by Nauk
Nice! ...and smart move of them, makes Windows Phone devices definately attractive :)

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

Posted: Wed Oct 31, 2012 12:49 am
by Oenone575
Will there be a C# wrapper or other managed C# interface for the WP8 version of Ogre3D?

The loss of XNA with no inbuilt C# alternative is a real shame in my opinion. Hopefully we'll have MonoGame available for WP8 soon, but it would be great to have other alternatives too and Ogre3D is one that would be superb to have.

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

Posted: Wed Oct 31, 2012 6:12 am
by qwertzui11
+1

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

Posted: Thu Nov 01, 2012 2:36 am
by Zonder
Oenone575 wrote:Will there be a C# wrapper or other managed C# interface for the WP8 version of Ogre3D?

The loss of XNA with no inbuilt C# alternative is a real shame in my opinion. Hopefully we'll have MonoGame available for WP8 soon, but it would be great to have other alternatives too and Ogre3D is one that would be superb to have.
help the mogre people then you get your managed enviroment. but that depends if windows phone has clr

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

Posted: Thu Nov 01, 2012 2:47 pm
by guy007
Hi, you mentioned in your announcement .. "We were also able to run Windows 8 with the Windows Phone 8 SDK using the free VMware player with some settings tweaking to allow the phone emulation to run on the virtual machine. So this is an interesting option for non-Windows users who want to install the SDK without changing their host OS."

Would you be able to share how you managed that ? .. e.g. what were the settings tweaked .. your feedback is much appreciated.

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

Posted: Sun Nov 04, 2012 1:52 pm
by Assaf Raman
guy007 wrote:Hi, you mentioned in your announcement .. "We were also able to run Windows 8 with the Windows Phone 8 SDK using the free VMware player with some settings tweaking to allow the phone emulation to run on the virtual machine. So this is an interesting option for non-Windows users who want to install the SDK without changing their host OS."

Would you be able to share how you managed that ? .. e.g. what were the settings tweaked .. your feedback is much appreciated.
Updated the info last night, see the bottom of the file: https://bitbucket.org/sinbad/ogre/src/f ... sPhone.txt

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

Posted: Sun Nov 04, 2012 1:55 pm
by Assaf Raman
I will be happy if anyone can follow my "how to" and give me some feedback.

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

Posted: Mon Nov 05, 2012 2:11 am
by lderan
Assaf Raman wrote:I will be happy if anyone can follow my "how to" and give me some feedback.
It was really quite good tho I have run into some issues when I try to run it

I copied the browser sample project to the samples dir in the generated project from cmake, I am currently getting this error

1>c:\users\thomas\desktop\o2\samples\browser\include\filesystemlayerimpl.h(31): fatal error C1083: Cannot open include file: 'FileSystemLayer.h': No such file or directory (..\src\FileSystemLayerImpl_WIN32.cpp)
1>c:\users\thomas\desktop\o2\samples\browser\include\samplebrowser.h(31): fatal error C1083: Cannot open include file: 'SampleContext.h': No such file or directory (SampleBrowserWinRT.cpp)
========== Build: 0 succeeded, 1 failed, 55 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========

I am quite new to ogre 3d so there is probably something I messed up with the cmake / hg pull, really am looking forward to making some games in wp8 but having come from xna I thought ogre would be the best route forward. Keep being awesome guys :D

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

Posted: Mon Nov 05, 2012 5:50 am
by Assaf Raman
debug or release?
arm or win32?

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

Posted: Mon Nov 05, 2012 8:00 am
by lderan
Debug on win32 on visual studio 2012 pro

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

Posted: Mon Nov 05, 2012 8:24 am
by Assaf Raman
are you sure you used OGRE_STATIC?

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

Posted: Mon Nov 05, 2012 9:57 am
by lderan
Will check this evening, 75% sure though

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

Posted: Mon Nov 05, 2012 10:07 am
by Assaf Raman
seems like an easy issue, I will try to recreate on a new VM

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

Posted: Mon Nov 05, 2012 4:44 pm
by Assaf Raman
ok, try this, right click SampleBrowserWP8 -> Properties -> C++ -> General -> Additional Include Directories
Add the path of
[your build directory]\include ex: c:\ogre\build6\include
[your dependencies dir]\include ex: C:\ogre\dep\include
[your dependencies dir]\include\ois

See if it solves the issue

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

Posted: Mon Nov 05, 2012 4:45 pm
by Assaf Raman
BTW: For anyone that has cmake issues - seems that CMake 2.8.10 has issues with vs express, try using version 2.8.9 of cmake that worked for me

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

Posted: Mon Nov 05, 2012 4:58 pm
by Assaf Raman
If you get

Code: Select all

... error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in ...
try this: select all project, right click any project from the selected ones -> Properties -> C++ -> Code generation -> Multi threaded Debug DLL (or release based on the config)

(I didn't use the official release WP8 SDK but the per-release - so this may be a new issue in the final release)

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

Posted: Mon Nov 05, 2012 6:43 pm
by Assaf Raman
Was able to get everything to run on a new computer, updated my dependencies and the "how to compile" txt

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

Posted: Mon Nov 05, 2012 10:56 pm
by lderan
Well the errors I was getting has now gone away (woo!)
but I have new errors

Code: Select all

1112.
68>LINK : fatal error LNK1104: cannot open file 'H:\assaframan-ogre-dependencies-for-windows-phone-f16159239e75\src\ois-1.2.0\dll\OIS_d.lib'

1113.
========== Rebuild All: 66 succeeded, 2 failed, 0 skipped ==========
I have checked the directory, OIS.lib exists but not OIS_d.lib.

The output for the build is this

Code: Select all

1>------ Build started: Project: OIS, Configuration: Debug Win32 ------
1>  The system cannot find the path specified.
1>  H:\assaframan-ogre-dependencies-for-windows-phone-f16159239e75\src\ois-1.2.0\Win32\..\includes\OIS.h
1>  The system cannot find the path specified.
1>          0 file(s) copied.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: The command "mkdir "H:\ogre\..\include\OIS"
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: copy "H:\assaframan-ogre-dependencies-for-windows-phone-f16159239e75\src\ois-1.2.0\Win32\..\includes\*.*" "H:\ogre\..\include\OIS" /y
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: 
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: :VCEnd" exited with code 1.
2>------ Build started: Project: SampleBrowserWP8, Configuration: Debug Win32 ------
2>LINK : fatal error LNK1104: cannot open file 'H:\assaframan-ogre-dependencies-for-windows-phone-f16159239e75\src\ois-1.2.0\dll\OIS_d.lib'
========== Build: 0 succeeded, 2 failed, 66 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========
http://pastebin.com/S5B2GLr1 - for the for full rebuild console output


-- edit

I tried removing the _d on the target name for OIS and it built a XAP! - woo! but it still errors

Code: Select all

1>------ Build started: Project: OIS, Configuration: Debug Win32 ------
1>  The system cannot find the path specified.
1>  H:\assaframan-ogre-dependencies-for-windows-phone-f16159239e75\src\ois-1.2.0\Win32\..\includes\OIS.h
1>  The system cannot find the path specified.
1>          0 file(s) copied.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: The command "mkdir "H:\ogre\..\include\OIS"
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: copy "H:\assaframan-ogre-dependencies-for-windows-phone-f16159239e75\src\ois-1.2.0\Win32\..\includes\*.*" "H:\ogre\..\include\OIS" /y
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: 
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: :VCEnd" exited with code 1.
========== Build: 0 succeeded, 1 failed, 67 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========

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

Posted: Tue Nov 06, 2012 6:15 am
by Assaf Raman
Remove the OIS project.

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

Posted: Tue Nov 06, 2012 9:35 pm
by lderan
It compiles and begins running on the emulator, but sadly more errors ;_;

Code: Select all

Finished parsing scripts for resource group Essential
Creating resources for group Essential
All done
Texture: sdk_bands.png: Loading 1 faces(PF_A8R8G8B8,2x32x1) with 5 generated mipmaps from Image. Internal format is PF_A8B8G8R8,2x32x1.
First-chance exception at 0x778E277C in SampleBrowserWP8.exe: Microsoft C++ exception: Ogre::UnimplementedException at memory location 0x0099DF04.
High-level program 05cbedc9-dca4-188b-e2a6-acad73e39f3f_VS encountered an error during loading and is thus not supported.
OGRE EXCEPTION(9:UnimplementedException): Cannot assemble/reflect D3D11 shader: 05cbedc9-dca4-188b-e2a6-acad73e39f3f_VS in shipping code
 in D3D11HLSLProgram::compileMicrocode at H:\sinbad-ogre-dc4874552a2b\RenderSystems\Direct3D11\src/OgreD3D11HLSLProgram.cpp (line 363)
First-chance exception at 0x778E277C in SampleBrowserWP8.exe: Microsoft C++ exception: Ogre::InvalidParametersException at memory location 0x0099EB58.
Unhandled exception at 0x713F4F23 (Msvcr110d.dll) in SampleBrowserWP8.exe: An invalid parameter was passed to a function that considers invalid parameters fatal.
The program '[2936] SampleBrowserWP8.exe' has exited with code 0 (0x0).
it stops at line 131 on invarg.c (Microsoft Visual Studio 11.0\VC\crt\src)

full output here - http://pastebin.com/f8aMnfKi

Apologies I am bit useless at debugging this sort of thing.

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

Posted: Wed Nov 07, 2012 6:37 am
by Assaf Raman
This mean you didn't create and add the shader cache (Cache.bin)

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

Posted: Wed Nov 07, 2012 11:20 am
by jarno
Hey, could someone save us some trouble and pass on the build results? And how long till the RC1?

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

Posted: Wed Nov 07, 2012 12:05 pm
by Assaf Raman
jarno wrote:Hey, could someone save us some trouble and pass on the build results?
I will create something for you.
jarno wrote: And how long till the RC1?
We are working on some new crashes (unrelated to WP8), and some issues with some of the samples (when running in WP8), when the issues will be resolved - we will release, I hope soon, will love some help - as my time will be limited this next few weeks.