开发者

Cross-platform 3D (C#)

I'm working 开发者_StackOverflowon a game that should run on as many platforms as possible, and was wondering if there are any good 3D libraries that run on Windows Phone 7 and Mono (Windows and Linux). I would use OpenTK, but that is dependent on OpenGL, and Windows Phone only supports managed DirectX (XNA). Are there at least any decent wrappers out there?


Generally, you will have to stay in the context of XNA and Silverlight only, when coding for Windows Phone 7 - this is due to its ties to DirectX. Windows Phone 7 currently doesn't support OpenGL.


What about MonoGame? http://monogame.codeplex.com/ It brings XNA to other platforms.


I'm pretty sure that there are not yet any managed 3D libraries that support both Xna and Mono (ie Open GL) back ends. I would suspect your best bet would be to write your own minimal abstraction layer on top of Xna (that just accomplishes what you need), and then implement it in Mono + Open GL.

Either that or you could jump in and start implementing Xna's 3D API in either MonoGame or ExEn. I recall a thread on the MonoGame forums about someone having a very basic initial implementation of VertexBuffer running. This would obviously require pretty decent knowledge of OpenGL though.


I just made my own 3D library that runs on ALL the platforms -- Sourceforge source code here


Just as an FYI, v2.0 of MonoGame will add OpenGL ES 2.0 support on iOS and Android as well as and the default shaders from WP7, but on top of that it will also allow you to use custom shaders, unlike XNA on WP7. When v3.0 of MonoGame is released you can expect 3D support to be more robust.

I hope this helps.


v2.5 of MonoGame was released last week.

All focus is now on v3.0 release which will have 3D. The develop3d branch already has a working 3D implementation. We just need to tidy it up and make sure 2D isn't broken. If anyone is still looking for 3D in MonoGame, please checkout our develop3d branch, and help us make it the best it can be.

D.


The Axiom 3D Rendering Engine has support for many platforms and various GFX APIs, including Windows Phone 7, Windows, iPhone, Android, Linux and Mac OSX, using OpenGL, OpenGL ES, DirectX and XNA

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜