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.

288 questions
6
votes
2 answers

Playing sinus through XAudio2

I'm making an audio player using XAudio2. We are streaming data in packets of 640 bytes, at a sample rate of 8000Hz and sample depth of 16 bytes. We are using SlimDX to access XAudio2. But when playing sound, we are noticing that the sound quality…
AkselK
  • 2,563
  • 21
  • 39
5
votes
1 answer

SlimDX/DirectX9/C# - How to access pixel-data in a Texture

This is my first question ever on StackOverflow, hurray! I can honestly say I use StackOverflow on daily basis for both my work and personal programming mysteries. 99,9% of the time I actually find the answer I need on here too, which is great! My…
Lennard Fonteijn
  • 2,561
  • 2
  • 24
  • 39
5
votes
1 answer

Multiple Render Targets not saving data

I'm using SlimDX, targeting DirectX 11 with shader model 4. I have a pixel shader "preProc" which processes my vertices and saves three textures of data. One for per-pixel normals, one for per-pixel position data and one for color and depth (color…
Nick Udell
  • 2,420
  • 5
  • 44
  • 83
5
votes
2 answers

Big and/or open source games based on SlimDX

Are there any major titles or open source games based on SlimDX framework out there? I understand that it's pretty much just a wrapper on top of DirectX, but it would still be interesting to see it used in a mature environment. I am looking for some…
Egor Pavlikhin
  • 17,503
  • 16
  • 61
  • 99
5
votes
5 answers

Direct2D / GDI+ and slow Windows forms drawing - What can be done?

I'm working a lot with Visual Studio 2008, .NET C# 2.0-3.5 and Windows Forms and I have noticed, like many before me, that GDI+ is extremely slow in drawing Controls. Note that I do not deal with images (JPG, GIF etc) very much. Images are only as…
Ted
  • 19,727
  • 35
  • 96
  • 154
5
votes
1 answer

Multisampling doesn't work in exclusive mode

I would like to enable multisampling when drawing triangles like on the following picture: I found a way to do with SlimDX in another question but it doesn't work in exclusive mode. Here is my code: void Form1_Load(object sender, EventArgs e) { …
Martin Delille
  • 11,360
  • 15
  • 65
  • 132
4
votes
3 answers

WPF, XNA, SlimDX ... suggestion for a CAD-like desktop application? (C#)

This is what I have to do: To build a CAD-like application that loads a point cloud (i.e. thousands of 3D points representing a 3D object) from file, allows the users to manipulate the points (i.e. change the shape by moving the points), do a lot…
LazNiko
  • 2,083
  • 3
  • 25
  • 39
4
votes
2 answers

API agnostic Vector3, Matrix, etc.?

I'm trying to keep my game logic API-agnostic. In doing so, I don't want to use Unity3D's Vector3 struct, or XNA's, etc. What's the best way to do this? It seems like it would be awfully cast-heavy if I rolled my own Vector3 struct and just wrote…
George R
  • 3,784
  • 3
  • 34
  • 38
4
votes
2 answers

Using DirectInput with XBOX One controller and window focus on Windows 10

I am trying to use DirectInput to capture XBOX One controller input signals. I am tying it to a C# WinForms application. The issue I am having is: When the form has focus, it captures inputs just fine. When the window loses focus, I don't get any…
Andy
  • 12,859
  • 5
  • 41
  • 56
4
votes
2 answers

SlimDX and WPF via D3DImage

I've written some code using SlimDX and WPF where I would expect the end result to be a red screen. Unfortunately all I get is a black screen. This is on windows 7. Can anyone see anything major I'm missing? The reason I'm using a separate surface…
Sekhat
  • 4,435
  • 6
  • 43
  • 50
4
votes
1 answer

SlimDX stops loading big textures after a while

My app from time to time initializes a bunch of DirectX stuff and loads scenes, sometimes containing some large textures (up to 200–300 MB per texture). At first, everything works fine, but after a while FromMemory() just stops working, but only for…
Surfin Bird
  • 488
  • 7
  • 16
4
votes
1 answer

playing sound with SlimDX and DirectSound (C#)

(apologies if this is a duplicate ... i posted but saw no evidence that it actually made it to the forum) I've been trying to get SlimDX DirectSound working. Here's the code I have. It fills the secondary buffer from a wav file and then, in a…
blearyeye
  • 255
  • 4
  • 14
4
votes
2 answers

DirectX - halfs instead of floats in vertex buffer

Recently I decided to compress my vertex data to make rendering more efficient, and I came across a solution - using half (specifically, half4 and half2) instead of float for storing my vertex data. My vertex struct is given below: …
RaZeR RawByte
  • 238
  • 1
  • 10
4
votes
2 answers

Rendering text with DX11

I am trying to figure out how to draw text on screen in SlimDX. Initial research is not encouraging. The only concrete example I found was this: http://www.aaronblog.us/?p=36 I am trying to port this to my code, but it's proving extremely difficult,…
CdrTomalak
  • 479
  • 1
  • 4
  • 15
3
votes
1 answer

Creating a texture from a RGBA value with SlimDX

this is my first post to stack overflow! I'm using SlimDX for a game that my team is making and I've run into an issue. I'm trying to create a ShaderResourceView from RGBA values in a Color4 object. I've searched looked for answers to my issue and…
TrupaJay
  • 71
  • 2
  • 5
1
2
3
19 20