Jump to content
  • Advertisement
Sign in to follow this  
Pedro Alves

Convert Xna Game to Sharpdx

This topic is 1508 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement

A lot of the SharpDX Toolkit implements an API that is comparable to XNA. You should take a look at the SharpDX Toolkit samples and documentation. 

 

Here is a post that talks through a conversion from XNA to SharpDX back when the SharpDX Toolkit was first released - keep in mind that the toolkit has evolved a bit since then so the various surprises that this guy had may not be such an issue now. 

Share this post


Link to post
Share on other sites

i thiking buy this book Direct3D Rendering Cookbook to learn how use the sharpdx

my problem its i can´t transform the 2d image in 3d

like sample the xna make

Share this post


Link to post
Share on other sites


i thiking buy this book Direct3D Rendering Cookbook to learn how use the sharpdx

 

The book shows how to use Direct3D with SharpDX at a low level and does not show how to use the Toolkit which was originally developed as a further abstraction to provide a familiar API for XNA developers.

Share this post


Link to post
Share on other sites

what you suggest to learn sharpdx

some the sample its for directx 3D 11.1 and Directx 3D 11.2

i using Directx 11 becouse my SO don´t support directx 3D 11.1 and Directx 3D 11.2

Share this post


Link to post
Share on other sites

I've ported a project from XNA to SharpDX myself. 

Basically what I did was create a new SharpDX project and then copy the XNA source files into it, then changed all the Framework references.

After that I corrected whatever errors were left.

There were some issues I ran into though:

1. Some functions from XNA don't exist in SharpDX or work differently (e.g. Gamepad and PlayerIndex objects are missing)

2. Shaders for XNA may not work in SharpDX (I'm still using BasicEffect for that reason, my own Shader just renders black)

3. I had problems getting textures to work (Now they do =)

 

Among others.

If you run into any obstacles, feel free to contact me.

 

Coming from XNA, the SharpDX.Toolkit dlls are your friend. They provide XNA like classes, e.g. Game and Model

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!