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
7
votes
2 answers

Create a full 3d skeleton with Kinect SDK

This is for my first graphics subject at uni, and some parts of the implementation just aren't working for me. I can get the joints to draw properly, but I'm trying to write a function that puts in 'bones' between the joints. At this point the bones…
Vince Noir
  • 171
  • 1
  • 7
7
votes
4 answers

Debugging Shaders on Visual Studio 2012, can't find the Symbols

I don't know if many of you tried the new excellent feature of Visual Studio 2012 to debug Direct3D based apps. I successfully capture a frame of my app, then I want to debug the execution of a Vertex Shader: I click on the green triangle to debug…
Nock
  • 6,561
  • 1
  • 28
  • 27
6
votes
2 answers

How does one use a memory stream instead of files when rendering Direct2D images via SharpDX?

The setup Consider the given scratch program that uses SharpDX, a managed wrapper for Direct* libraries, to render a bitmap and save it as a PNG: namespace ConsoleApplication5 { using System; using System.Diagnostics; using System.IO; …
Nicholas Piasecki
  • 25,203
  • 5
  • 80
  • 91
6
votes
2 answers

Replace GDI+ DrawImage with PInvoked GDI and transparent PNG's

I've created an image service in C# which takes a base layer image (JPG), layers one more more transparent PNG's (32 bit), and then outputs a final JPG image. I'm trying to squeeze every last millisecond out of this function and my code is…
Dfaussio
  • 166
  • 2
  • 9
6
votes
3 answers

DirectX11 Swapchain and window losing fullscreen status

I just stumbled on this little annoying behavior, while adding full screen support on a sample program. Creating a full screen window works, but as soon as I move any window (from another application) on the output that contains my fullscreen…
mrvux
  • 8,523
  • 1
  • 27
  • 61
6
votes
1 answer

How can I draw a transparent 3D object with the SharpDX Toolkit?

I'm working on an application that uses SharpDX and the SharpDX Toolkit to draw simple 3D shapes, and the Geometrics.Desktop sample was very helpful in getting started. Now I'm trying to make some shapes transparent, and to keep things simple I'm…
NSFW
  • 557
  • 4
  • 12
6
votes
1 answer

SharpDX - System.Drawing interoperability

Is it possible to get something drawn with default .net paint methods (System.Drawing methods) to a SharpDX Texture2D object so that i can display it as a texture? Preferably with the SharpDX Toolkit. If yes, how? edit: what i am trying so…
clamp
  • 33,000
  • 75
  • 203
  • 299
6
votes
0 answers

Why does Direct X content for SharpDX not render when using Maximized Window mode?

I am using SharpDx to render DX content to WPF application. When I set the window mode to Maximized in VS2010 the content does not show up until I manually adjust the window size. If I set the window mode to Normal in VS2010 it works fine. This…
6
votes
2 answers

How to create bitmap from Surface (SharpDX)

I am new to DirectX and trying to use SharpDX to capture a screen shot using the Desktop Duplication API. I am wondering if there is any easy way to create bitmap that I can use in CPU (i.e. save on file, etc.) I am using the following code the get…
Shahed
  • 898
  • 1
  • 12
  • 25
6
votes
3 answers

A function like "glReadPixels" in DirectX / SharpDX

I'm searching for a way to read a pixels color at the mousepoint. In OpenGL it was done by calling the function "glReadPixels" after drawing the scene (or parts of it). I want to make a simple color picking routine in the background, for identifing…
lunatix
  • 817
  • 10
  • 25
6
votes
2 answers

Playing a sound from a generated buffer in a Windows 8 app

I'm porting some C# Windows Phone 7 apps over to Windows 8. The phone apps used an XNA SoundEffect to play arbitrary sounds from a buffer. In the simplest cases I'd just create a sine wave of the required duration and frequency. Both the duration…
Daniel Ballinger
  • 13,187
  • 11
  • 69
  • 96
5
votes
2 answers

List installed font names in Windows 10 Universal App

I am building a Windows 10 universal app in C# that has to list the names of the installed fonts on the system. The app was a metro/modern ui/windows 8.1 app and I used the SharpDX 'trick' there to get the names. SharpDX is not available (yet?) for…
Raf
  • 663
  • 1
  • 8
  • 21
5
votes
1 answer

FileLabels are not visible

I try to capture desktop screenshot using SharpDX. My application is able to capture screenshot but without labels in Windows Explorer. I tryed 2 solutions but without change. I tried find in documentation any information, but without change. Here…
Peter M.
  • 1,028
  • 2
  • 10
  • 27
5
votes
1 answer

Update a D3D9 texture from CUDA

I’m working on a prototype that integrates WPF, Direct3D9 (using Microsoft’s D3DImage WPF class), and CUDA (I need to be able to generate a texture for the D3DImage on the GPU). The problem is, CUDA doesn’t update my texture. No error codes are…
Soonts
  • 20,079
  • 9
  • 57
  • 130
5
votes
4 answers

Need SharpDXElement alternative. Workaround to sharpDX WPF flickering

I have a SharpDX project that is very near completion. It uses a Kinect for interaction. Because of this my project uses WPF both for the Kinect region and the KinectUserViewer object. SharpDX has worked great for everything so far, however, when it…
Asor
  • 61
  • 1
  • 2
1
2
3
43 44