Convert Xna Game to Sharpdx

Started by
4 comments, last by Stefan Fischlschweiger 9 years, 6 months ago

how convert my xna game to sharpdx

i using this sample to convert the xna to sharpdx

this is the link to sample

http://xbox.create.msdn.com/en-US/education/catalog/sample/collision_3d_heightmap_normals

Hello

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.

Justin Stenning | Blog | Book - Direct3D Rendering Cookbook (using C# and SharpDX)

Projects: Direct3D Hook, EasyHook, Shared Memory (IPC), SharpDisasm (x86/64 disassembler in C#)

@spazzarama

 

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

Hello


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.

Justin Stenning | Blog | Book - Direct3D Rendering Cookbook (using C# and SharpDX)

Projects: Direct3D Hook, EasyHook, Shared Memory (IPC), SharpDisasm (x86/64 disassembler in C#)

@spazzarama

 

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

Hello

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

This topic is closed to new replies.

Advertisement