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

Drawing 2D with SlimDX

Hello I'm having trouble rendering correctly sprite with SlimDX. It draws a little scaled just like .NET Drawing DrawImageUnscaled does. I'm not using any transformations. Init: Vector2 position; Sprite sprite; Size size; Texture texture; sprite =…
mnn
  • 1,952
  • 4
  • 28
  • 51
3
votes
1 answer

Marshalling C# Structs into DX11 cbuffers

I'm having some issues with (i think) the packing of my structure in C# and passing them through to cbuffers i have registered in HLSL. When i pack my struct in one manner the information seems to be able to pass to the…
Craig
  • 1,199
  • 1
  • 13
  • 27
3
votes
1 answer

Incorrect Clipping and 3D Projection when using SlimDX

I am working on a simple project whereby I wish to display a 3D object within a WinForms application using SlimDX. I have created a small project to do this, but I am encountering a problem where the object I have rendered is being clipped between…
Samuel Slade
  • 8,405
  • 6
  • 33
  • 55
3
votes
1 answer

SlimDX - Terminate Thread

I created new window and I used SlimDX.Windows.MessagePump.Run on a new thread. How can I stop that loop?
Hooch
  • 28,817
  • 29
  • 102
  • 161
3
votes
1 answer

NV_STEREO_IMAGE_SIGNATURE and DirectX 10/11 (nVidia 3D Vision)

I'm trying to use SlimDX and DirectX10 or 11 to control the stereoization process on the nVidia 3D Vision Kit. Thanks to this question I've been able to make it work in DirectX 9. However, due to some missing methods I've been unable to make it…
TheWanderer
  • 244
  • 2
  • 9
3
votes
1 answer

Drawing lines with rounded endings with Direct3D

Is there any way to draw a line using ID3DXLine with round endings? I am trying to draw a curve from number of line segments, but getting the empty areas where the line segments are connecting. Performance here is essential. Thanks! Any other fast…
stiopa
  • 31
  • 1
3
votes
1 answer

How do I set the value of a HLSL uniform variable with SlimDX?

I haven't been able to find the documentation for this, but it's probably pretty simple. I have a pixel shader which needs variables to be updated. The only thing I've come close with is the ConstantTable, but it's under Direct3D9 and not…
jnm2
  • 7,960
  • 5
  • 61
  • 99
3
votes
3 answers

How to make primitives correctly overlay sprites in DirectX (2D)

I've got a problem with rendering sprites and primitives in Direct3D9. I'm trying to make a simple 2D game using sprites, however I've found out that I'll also need primitives to draw simple squares, lines, etc. The problem is with overlaying. If I…
TomsonTom
  • 742
  • 7
  • 22
3
votes
0 answers

SlimDX rendering a visual to a bitmap

I want to render a viewport3d visual to an image using hardware rendering. How could I do that using SlimDX? I'm using WPF & VB.NET 4.0 and SlimDX. Any tips will help, thanks in advance. :) Here is the code I use to render a viewport3d, it is very…
bat3a
  • 31
  • 4
3
votes
1 answer

How to create media player using slimdx

How we will code a media player using slimdx n c# coding
Yashwinder
  • 59
  • 8
3
votes
1 answer

SlimDX Constant Buffer Creation Causes an Invalid Parameter Exception

I have the following code to instantiate a constantbuffer and bind it to the pixel shader. ConstantBuffers.EveryFrame is a struct in the ConstantBuffers class which holds all of the data I need to update on a per frame basis (currently just a single…
Nick Udell
  • 2,420
  • 5
  • 44
  • 83
3
votes
2 answers

How to enable vsync in DirectX10

I'm working on a apps that's based on DirectX10 by using SlimDX. I would like to enable vsync similar to DirectX9, but the fps doesn't seems to lock to 60Hz(which happens if I'm using Direct9). I'm setting vsync by using this SwapChain.Present(1,…
faulty
  • 8,117
  • 12
  • 44
  • 61
3
votes
2 answers

XNA vs SlimDX for offscreen renderer

I realise there are numerous questions on here asking about choosing between XNA and SlimDX, but these all relate to game programming. A little background: I have an application that renders scenes from XML descriptions. Currently I am using WPF 3D…
Grokys
  • 16,228
  • 14
  • 69
  • 101
3
votes
1 answer

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've ended up with is HORRIFIC performance. Is…
KairisCharm
  • 1,363
  • 1
  • 13
  • 32
3
votes
2 answers

Numerical inconsistency in .NET

I’m building a CAD-like application in C#. I’m using SlimDX as the graphics engine, and for the number-crunching part, I build custom libraries which ultimately rely on the System.Math class, naturally. Now, the thing is that the SlimDX libraries…
WHermann
  • 159
  • 1
  • 8
1 2
3
19 20