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.
0
votes
0answers
6 views
SlimDX and Multiple Architectures
I am trying to build a project that can be built in both x64 and x86. I am using SlimDX to be the interop to DirectSound. I cannot change this, as it is part of a bigger application.
I am trying to ...
1
vote
0answers
33 views
How can i send feedback/effect to joystick from C#?
I found this answer but I'm using SlimDX and the answer is using DirectX:
Answer with directx
Maybe I should install the directx sdk ? If so from where to download it ?
What I did so far with my ...
2
votes
1answer
25 views
Render to texture fails after resize
In a graphic application i am rendering an image to a texture, then i use that texture on a 3d model.
My problem is the following:
When the application starts everything is fine, but if i resize the ...
0
votes
1answer
22 views
SlimDX Wrong Joystick State on startup
I use SlimDX and DirectInput to handle a XBox 360 Gamepad for Windows. Everything is working fine but I have the following problem:
When a button is pressed while starting the application, the button ...
0
votes
1answer
66 views
How to use JNI4NET when your C# library depends on existing managed dll?
My .NET program I want to use in Java depends on SlimDX, a managed wrapper over DirectX. I add it to the project references as normal without hiccup.
However, when it comes to using JNI4NET's build....
0
votes
0answers
58 views
Chroma Key Not Perfect, Using HLSL in DirectX 9
I'm trying to apply chroma key effect using pixel shader in DirectX 9, but not able to achive it in perfect manner. Images grainy with some green patches on it and edges is also not smooth and the ...
0
votes
2answers
91 views
how to lower cpu impact when dealing with slimdx
i am making an app that overlays other d3d games,
the app is working perfectly except it has a huge performance impact on the cpu
taking 21.4 % of the cpu when rendering only a single line !
i am ...
0
votes
1answer
65 views
SlimDx Events on button pressed
I am using slimdx to interpret xbox controller button presses. I poll every 200ms to read the xbox button states and all works for me. I use
JoystickState state = Joystick.GetCurrentState();
...
0
votes
0answers
36 views
Blackmagic SDK YUV Image size not proper
I Made a small application using Blackmagic SDK to render the captured frame in on a D3D9 Texture.
The problem is that when I get pixelFormat = _BMDPixelFormat.bmdFormat8BitYUV then frame is not ...
0
votes
0answers
26 views
Direct2DException while running my SlimDX App
I have been learning SlimDX from this article
https://katyscode.wordpress.com/2013/08/24/c-directx-api-face-off-slimdx-vs-sharpdx-which-should-you-choose/comment-page-1/#comment-25683
I tried to ...
0
votes
2answers
64 views
Applying a pixel Shader to a texture within a sprite with SlimDX Direct3D9
So, I am very new to Developing with DirectX, I'm slowly getting there... But!
I have this which instantiates the Direct3D9 runtime, creates a device and loads a Pixel Shader. - I can confirm the ...
0
votes
1answer
76 views
Convert Pixel Buffer to B8G8R8A8_UNorm from 16Bit
So I have, from an external native library (c++) a pixel buffer that appears to be in 16Bit RGB (SlimDX equivalent is B5G6R5_UNorm).
I want to display the image that is represented by this buffer ...
1
vote
1answer
145 views
Convert SlimDX.Direct3D11 Texture2D to .Net Bitmap
Converting an .Net Bitmap to a SlimDx Texture2D works very fast like this:
http://www.rolandk.de/index.php?option=com_content&view=article&id=65:bitmap-from-texture-d3d11&catid=16:blog&...
0
votes
0answers
61 views
How to render loaded image?
I am new with SlimDx and with graphics development in general.
My goal is: load image from disk and render it. However, after going over the tutorials on the official site: https://slimdx.org/...
0
votes
0answers
42 views
SlimDX Direct2D issues with multiple UserControls
I am trying to create an application using SlimDX Direct2D. It is supposed to have multiple UserControls using Direct2D to draw specific shapes. I have trouble with design of it. I understand that I ...
0
votes
0answers
23 views
Order/Priority of named axes used in SlimDX on DirectInput devices
This question is based on the assumption that there is a standard order in which named axes are assigned.
So far my findings are the following based on the devices I own and can test with.
x
y
z
...
0
votes
0answers
87 views
SlimDX Surface to Microsoft.Direct.Direct.Surface?
I want to save Surface to GraphicsStream(Microsoft.DirectX) what looks like :
public Bitmap GimmeBitmap(Microsoft.DirectX.Direct3D.Surface s)
{
GraphicsStream gs = SurfaceLoader....
0
votes
1answer
229 views
Desktop capture using directX 11
I'm trying to capture desktop image using Direct 11 with SlimDX. But I don't know how to get the back buffer with directX 11 for the monitor desktop. I tried this with C# like this.Why doesn't it get ...
1
vote
0answers
28 views
Windows. C#. XBox360 Controller prevent default Guide Button popup panel and show my own
I want to use XBox360 Controller in my app. I can get user input with SlimDx.dll. But I cant catch 'XboxButton' or 'GuideButton' pressed. I want catch it to prevent showing default panel (see ...
0
votes
1answer
43 views
SlimDX When Game WindowFullmode Throw Error
DxScreenCapture.cs
public class DxScreenCapture
{
Device d;
public DxScreenCapture()
{
PresentParameters present_params = new PresentParameters();
...
-1
votes
1answer
113 views
Drawing scatter plot is too slow with GDI
I am drawing a scatter plot with the help of GDI.
But, when there are many lines, it takes about two seconds to draw.
I looked into using SlimDX and SharpDX and utilized their 2D.
It only decreased ...
0
votes
1answer
42 views
DirectX10/ShapDX Custom control
I am trying to create custom control with directx10/direct2D output (panel, not a form). I do all rendering in the overriding OnPaint method, however I have read somewhere that it is wrong and ...
0
votes
1answer
937 views
C# WinForm - SharpDX.Toolkit.Graphics draw 2D Texture
I would like to implement hardware acceleration for a C # WinForms application. Reason is that i have to draw 150 x 720p images and the 5 picturebox control's takes too long (scaling+drawing of images)...
-1
votes
1answer
67 views
Save joystick list
How can I save and load List of SlimDX.DirectInput.Joystick to/from a file?
I tried
using (Stream stream = File.Open("joys.xml", FileMode.Create))
{
var bformatter = new System.Runtime....
0
votes
2answers
239 views
Transform point coordinates from 3D space to a generic 2D plane in SlimDX
I need to project a SlimDX.Vector3 (X, Y and Z components) in a generic 2D plane (defined with SlimDX.Plane, with 3 Vector3). Please note that the plane is generic, and it is not the screen plane (...
-1
votes
1answer
116 views
View Projection matrix calculation using slimdx
I'm using slimdx to build a small visualizer, however, i recently stumbled into a problem. When i transform the triangle with the mvp matrix it disappears.
Constant buffers are loaded properly ...
0
votes
1answer
40 views
Cannot Clone Bitmap after Stream Disposed
I load a bitmap from a DataStream. I try to return the loaded bitmap from a method, and later use it as a source to clone a new bitmap. Unfortunately, the Clone() call results in an ...
0
votes
1answer
171 views
Screen Capture in PNG Format Works, but not BMP Format
I'm using the code below to capture the screen with a game running
public static Bitmap CaptureScreen()
{
DxScreenCapture cap = new DxScreenCapture();
var surface = cap.CaptureScreen();
...
1
vote
1answer
464 views
C# + SlimDX / XInput - how to poll when button is pressed?
I need to interface with Xbox 360 controllers and my limited knowledge leaves me stuck with C#. I don't want to use XNA (and require users to have it installed) for this simple thing, so I'm using ...
1
vote
0answers
261 views
Get shared back buffer from SwapChain
I have a WPF application with SlimDX control in it (DirectX 11). I create a SwapChain on init:
var description = new SwapChainDescription()
{
ModeDescription = new ModeDescription(WindowWidth, ...
1
vote
0answers
685 views
Fast real time Screen Capture (60 fps or better)
I have tried using GDI+ and SlimDX to capture the screen.
Surprisingly, the good old GDI+ was faster for me, for unknown reasons (averaging 38-50ms for a screenshot).
SlimDX is slower, averaging ...
5
votes
2answers
357 views
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 ...
0
votes
1answer
106 views
SlimDX Access Buffer data
I have a Buffer with some of my vertex data. I need to be able to access the data in this Buffer to extract a single vertex from it. I'm trying to do that like this:
Surface surface = mBuffer....
0
votes
0answers
128 views
Present IMFSample
I'm working on a WPF project that need to use Media Foundation to capture video from webcam.
Now I can get IMFsample from webcam everytime I want, I had used SLimDX to get IMFMediaBuffer (get it from ...
1
vote
1answer
257 views
How to play a wave file using SlimDX.DirectSound?
public partial class Form1 : Form
{
SecondarySoundBuffer m_DSoundBuffer;
DirectSound m_DirectSound;
string fileName = @"F:\\guitar-classical-E-octave0.wav";
public void setting()
{
...
0
votes
1answer
375 views
SharpDX.Vector3.Transform method doesn't seem to rotate vector correctly
Here is a simple example program
Vector3 eyePos = new Vector3(0, 1, 0);
Vector3 target = Vector3.Zero;
Quaternion lookAt= Quaternion.LookAtLH(eyePos, target, Vector3.Up);
Vector3 newForward = ...
0
votes
1answer
79 views
Fit image to ShaderResourceView and preserve aspect ratio
I'm loading an image into a ShaderResourceView to be used as a background image. This is what I'm currently using:
ShaderResourceView.FromFile(_device, imagepath);
It loads the image into the ...
0
votes
1answer
93 views
How can I get the Multisampling capabilities of a graphics card with SlimDX in C#?
I want to give the user choices for MSAA options in a game. I want to be able to check which Multisampling options that their machine can provide and display only these ones. The application I am ...
0
votes
1answer
65 views
Pixel Shader performance in Directx9 not equivalent to Opengl ES2.0
I am using a drop effect by the help of pixel shader in directx-9 to be specific SlimDX.Direct3D9 written in hlsl used for transition between two images. I have written the same pixel shader in glsl ...
0
votes
2answers
216 views
Replacing blank with “NA” or “MISSING” text
I am trying to replace blank spaces in data with the "MISSING" or "NA" text.
CoalesceEmpty([Product Type].[All Product Type].[ ],"MISSING")
I have tried the above code, with or ...
0
votes
0answers
202 views
Appcrash when mixing Direct2D and Direct3D (SlimDX)
In my Direct3D 10.1 application, I'm trying to mix D2D and D3D drawing code. While the drawing code works fine, the app invariably crashes (in module d3d11.dll, with code c0000005) after an ...
0
votes
1answer
78 views
How can I debug native code using Visual Studio EXPRESS
I'm working on an application that uses a managed wrapper of the DirectX API. My IDE is Visual Studio C# 2010 Express. I need to be able to debug the DirectX API calls, however, the 'express' version ...
1
vote
1answer
234 views
Direct2D performance
So, I've been working on a project for a while now in DirectX11, but some people have been suggesting that I should be doing it in Direct2D. So, I've been playing with the idea in my project. What I'...
0
votes
0answers
130 views
Check if a single point is within a camera's view
I've researched frustum culling and most solutions present ways to find bounding boxes on mesh objects. My point isn't a mesh and has no size, it's simply a coordinate in 3D worldspace. The goal isn'...
0
votes
1answer
362 views
Determine screen coordinates from point in DirectX world
I have a point in space represented by a 4x4 matrix. I'd like to get the screen coordinates for the point. Picking appears to be the exact opposite fo what I need. I'm using the screen coordinate to ...
0
votes
1answer
171 views
SlimDX Throws An undetermined error occurred when trying Texture2D.ToStream()
Using SlimDX and trying to get a memory stream from a texture. I get the error: E_FAIL: An undetermined error occurred (-2147467259). This should be simple, right?
Here is my device declaration:
`...
1
vote
1answer
93 views
How to invert the y coordinate of a 4x4 matrix?
I'm working in SlimDX and I start with an x,y,z coordinate. I'm converting a point in a right hand coordinate system with Z in the vertical positive position to a right hand y vertical positive(...
0
votes
1answer
256 views
SlimDX Direct3D11 Device Creation
I have a problem in my app (WinForms [i hope it is not a problem because the link below refer to WPF]),
All my problem describes same as here :
Fast Video Display WPF
to display a lot of video ...
0
votes
1answer
162 views
Use Direct3D9 CreateSphere with Direct3D11 device
I'm new to SlimDX and working in a legacy system. There's a Direct3D11 device being used, but I'm trying to use CreateSphere from:
SlimDX.Direct3D9.Mesh.CreateSphere(Direct3D9.Device,...)
Is there ...
1
vote
0answers
39 views
How to create a draggable object using SlimDX?
Using SlimDX is it possible to make an object that I can drag? Given that the language is being used in 3D games I'd have to assume yes, but I don't see any examples on it. What would be involved?
...