Questions tagged [slimdx]

SlimDX is an MIT-licensed, open-source framework that allows developers working with managed languages like C# and IronPython to leverage DirectX and many of Microsoft's other gaming-related multimedia APIs.

See the SlimDX Homepage for more information, or follow development at the SlimDX Google Code page.

287 questions
19
votes
2 answers

Saving Surface to Bitmap and optimizing DirectX screen capture in C#

after a whole day of testing I came up with this code, which captures current screen using DirectX (SlimDX) and saves it into a file: Device d; public DxScreenCapture() { PresentParameters present_params = new PresentParameters(); …
Alex
  • 3,441
  • 7
  • 45
  • 78
16
votes
5 answers

Fast Vector Math in .NET - What are the options?

My 3D graphics software, written in C# using SlimDX, does a lot of vector operations on the CPU. (In this specific situation, it is not possible to offload the work to the GPU). How can I make my vector math faster? So far, I have found these…
LTR
  • 1,098
  • 1
  • 13
  • 35
13
votes
2 answers

Threading with the Kinect

I am writing a C# application that is using the Kinect, i am taking the output currently and writing it to a Shader Resource and rendering it as a texture, my issue is that the Kinect (apparently) only runs at 30fps, so it is throttling my…
Craig
  • 1,109
  • 1
  • 13
  • 26
13
votes
4 answers

Nvidia 3d Video using DirectX11 and SlimDX in C#

Good day, I am trying to display a real-time stereo video using nvidia 3DVision and two IP cameras. I am totally new to DirectX, but have tried to work through some tutorials and other questions on this and other sites. For now, I am displaying two…
Ryan Lucke
  • 131
  • 1
  • 3
13
votes
1 answer

SharpDX vs SlimDX for game development?

Which one of these offers the best API for game development? Which library is easier to use, faster, has more documentation?
Levi H
  • 3,038
  • 6
  • 27
  • 40
12
votes
2 answers

What is a good code structure for api-independent vertex processing?

Currently working on a 3D media engine using C# and I have come across a little conundrum. I have my rending loop figured out, I got a great plug-in architecture and content management system and even a material pipeline all planned out. Then engine…
zackery.fix
  • 1,698
  • 2
  • 11
  • 20
10
votes
1 answer

Now that Xna is unsupported, what is a better choice?

Xna is unsupported, and unfortunately I started game programming recently(~9 months). What is a better choice, DirectX or OpenGl. Now, I don't think DirectX or OpenGl have official libraries for C#, so which one would be better for a newcomer? I…
user2066764
  • 185
  • 1
  • 7
9
votes
3 answers

D3DImage using DX10

Is it possible to use DirectX 10 (I am using SlimDX) with WPF's D3DImage? The only examples and docs I can find only show using DX9 surfaces.
user153427
9
votes
3 answers

2D Drawing Performance (GDI+ vs SlimDX)

I am part of a team that has created a tool to view and interact with very large and heavily interconnected graphs in C#/WPF. Viewing and interacting with the graph is done through a custom control that takes in a set of DrawingVisuals and displays…
CBent
  • 111
  • 1
  • 2
  • 4
8
votes
4 answers

How to rotate, scale, and translate a matrix all at once in C#?

Okay, this is something that should be a simple matrix question, but my understanding of matrices is somewhat limited. Here's the scenario: I have a 1px by 1px sprite that I want to scale by some amount x and y (different amounts on each side),…
x4000
  • 2,717
  • 3
  • 25
  • 24
8
votes
1 answer

Rendering from WPF's internals to a Directx application

I have a WPF application that is intended for overlaying a HUD in a live stream. The original idea was to create a plugin for xsplit (a popular application for presenting live streams) to display the content of the WPF application. The problem with…
decaprime
  • 89
  • 4
7
votes
3 answers

SlimDX viewports in WPF controls

I am transitioning from WinForms/XNA to WPF/SlimDX because: a) all of the benefits of WPF over WinForms (but learning curve = ouch!) b) I would like to have multiple SlimDX viewports attached to Panels. XNA has 1 "game" screen. c, last and…
bufferz
  • 3,184
  • 4
  • 22
  • 35
6
votes
1 answer

DirectX11: Pass data from ComputeShader to VertexShader?

Is it possible to apply a filter to the geometry data that is to be rendered using Compute Shader and then use the result as an input buffer in the Vertex Shader? That would save me the trouble (&time) of reading back the data. Any help is much…
testalino
  • 5,274
  • 6
  • 31
  • 45
6
votes
2 answers

Visual Studio Graphics Debugger omits working pixel shader

I'm programming in C#, Visual Studio 2013 Update 5 RC, and using Direct3D 11 (via SlimDX) to render an animated scene. I was experimenting with unordered access textures in the pixel shader and it works nicely. I.e., my pixel shader has an…
6
votes
3 answers

SlimDX Device.Reset crashes with a "D3DERR_INVALIDCALL: Invalid call (-2005530516)" error

We recently upgraded from VS 2005 to VS 2008 (Windows XP). We use SlimDx in one of our projects. All was working ok after the upgrade, except my Recover function, which gets called on devicelost/device reset which crashes with D3DERR_INVALIDCALL:…
ababeel
  • 375
  • 1
  • 7
  • 22
1
2 3
19 20