Questions tagged [sharpdx]

SharpDX is an open-source project delivering the full DirectX API under the .Net platform, allowing the development of applications with high performance 2D and 3D graphics rendering as well as real-time sound.

SharpDX is an open-source project delivering the full DirectX API under the .Net platform, allowing the development of applications with high performance 2D and 3D graphics rendering as well as real-time sound.

For more information, see http://sharpdx.org/

656 questions
3
votes
1 answer

How to use xbox one controller in C# application

There already exists a large amount of information for using an xbox 360 controller in C#, but I didn't find as much info for an xbox one controller. I need very basic operation out of it, specifically the joystick and trigger values. The majority…
Xander Luciano
  • 3,753
  • 7
  • 32
  • 53
3
votes
2 answers

What's the deal with Monogame, SharpDX, and XNA?

I've been doing research on good tools to create games with, and I came across Monogame, Sharpx, and XNA. I have some questions regarding each: When I create a new windows project (which advertises that it uses DirectX 12), the code template looks…
Eric
  • 444
  • 7
  • 19
3
votes
0 answers

Oculus Rift in .Net

I'm trying to use Oculus Rift DK2 with .Net in order to display live video stream I'm able to sample the video (rtmp) using Emgu or ffmpeg, and then display it with SharpDX on screen. But I'm struggling to make oculus rift to display it. Now I'm…
Guy Levin
  • 1,230
  • 1
  • 10
  • 22
3
votes
1 answer

Embed button control into existing Direct3D application

I would like to overlay own content above a Direct3D v9 game (made by a third party). Overlay Interactive Button Specifically, I would like to overlay a clickable button control, like Steam does, for instance, though I'm attempting a much simpler…
Cel
  • 6,467
  • 8
  • 75
  • 110
3
votes
1 answer

Does the D2DERR_RECREATE_TARGET error really imply I have to keep track of everything my render target creates?

I randomly get this error (D2DERR_RECREATE_TARGET) many times an hour and after reading on that error, it seems I can't avoid it. I am using SharpDX which is "an open-source project delivering the full DirectX API under the .Net platform". According…
Mickael Bergeron Néron
  • 1,472
  • 1
  • 18
  • 31
3
votes
2 answers

Impossible to compile hlsl shaders after updating to Sharpdx 2.6.2

I have a C# project that used SharpDX 2.5.0 and everything was working fine. I moved to the newest stable release of SharpDX, 2.6.2. My project compile fine but fails at runtime because it cannot compile the shaders. I'm using this line of code…
Ndech
  • 965
  • 10
  • 21
3
votes
1 answer

Is there a SharpDx Template, for a Windows Universal App?

I tried to write a game for Windows and Windows Phone 8.1, with SharpDx. But when I try, to add a Windows Phone 8.1 Version to my already existing Windows 8.1 Game, I get a few errors and the App doesn't work. Now the question: Is there an SharpDx…
Matt126
  • 997
  • 11
  • 25
3
votes
1 answer

Why does DrawTextLayout ignore brushes from SetDrawingEffect in SharpDX?

My goal is to draw text in a single layout with certain ranges different sizes and opacities. The ID2D1RenderTarget::DrawTextLayout method seems to be the way to go. The documentation for the defaultForegroundBrush parameter: The brush used to…
jnm2
  • 7,960
  • 5
  • 61
  • 99
3
votes
0 answers

Strange smeared edges pattern using HLSL for YUV to RGB conversion

I'm trying to write a YUV to RGB shader in HLSL. Specifically, it converts the Yuv420p format which consists of an NM plane of Y values, followed by an (N/2)(M/2) plane of U values and then an (N/2)*(M/2) plane of V values. For example this 1280x720…
Asik
  • 21,506
  • 6
  • 72
  • 131
3
votes
0 answers

Camera RAW image processing with Windows Store app

I want to create a Windows Store app in C# to process to camera RAW images. It looks like I can load the RAW images using Microsoft's Windows Imaging Component (WIC), but when then I want to manipulate the images in a Windows Store app, I run into a…
3
votes
1 answer

Send feedback/effect to joystick from .net

Thanks to this answer https://stackoverflow.com/a/13734766/637142 I am able to know when a button is pressed or when the steering wheel is rotated. Now my question is how do I send an effect to the device? For example when I am playing a game if I…
Tono Nam
  • 34,064
  • 78
  • 298
  • 470
3
votes
1 answer

SharpDX / DirectDX: Transparency, normals and rendering order

I'm rendering several cubes created with geometry shader (I load only locations and color), each with different alpha value. The problem is, that after enabling of alpha blending, visibility of the cubes changes with angle I look at them. Objects…
Seldon
  • 45
  • 5
3
votes
1 answer

Does Media Foundation work on Windows 7?

Even though this is a very simple question, I cannot seem find a definitive authoritative answer to it. All the sample code I have found is meant to run on Windows 8, but I remember having read somewhere that Media Foundation was included in…
Panda Pajama
  • 1,283
  • 2
  • 13
  • 31
3
votes
1 answer

DirectX: World to view matrix - where is my misconception?

I'm starting with DirectX (and SharpDX, therefore programming only in C#/hlsl) and am trying to build my own camera class. It should be rotatable, allow forward and backward moving and also "sideways" movement (the classical first person movement…
5-to-9
  • 649
  • 8
  • 16
3
votes
1 answer

How to call method on a pointer to a C++ object using OpCodes.Calli

When calling a method on a C++ object from .NET using the .calli IL-instruction, how do you resolve the pointer to the actual method you want to call? I realize that this is going to be platform dependant. I know the excellent SharpDX library uses…
thr
  • 19,160
  • 23
  • 93
  • 130