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
2
votes
1 answer

How to fix this weird transparent areas in 3D model?

something is not working as it should. If you take alook at the screenshot you will see that the result is weird. The floor of the pavilion is rendered correctly, but the columns are kinda transparent, and the roof is completele weird. I used…
user9392881
2
votes
1 answer

DirectX - Access denied when creating swap chain for CoreWindow

I'm currently trying to create a swapchain for a CoreWindow using the latest SharpDX as DirectX wrapper and UWP as project base framework. The documentation on that is so sparse it's unbelievable. Nonetheless I could find a snippet which looked…
SharpShade
  • 1,761
  • 2
  • 32
  • 45
2
votes
1 answer

Using font files from local disk

I'm developing a UWP app with C# to preview font files from the user's local disk. I'm using SharpDX libraries to read the .ttf file content and query the different font properties. My question is: How can I set a TextBlock FontFamily to the loaded…
Leisvan
  • 105
  • 1
  • 7
2
votes
1 answer

Grayscale 8BPP bitmap for SharpDX.Direct2D1.Bitmap

I am currently making a 2D application using SharpDX.Direct2D1. Here is my setup for my 2D deviceContext that works correctly. m_swapchaindesc = New SwapChainDescription() With m_swapchaindesc .BufferCount = 2 .ModeDescription…
user7970127
2
votes
1 answer

Resizing swapchain causes Bitmap not to be usable (SharpDX, directX)

I want to resize my swapchain on screen resizing on my windows form application. When I do that, I need to dispose my older deviceContext, buffer, target etc... Look at the code below : Public Overrides Sub Resize(Width As Integer, Height As…
user7970127
2
votes
2 answers

MF SinkWriter Write Sample Failed

I'm trying to encode the ID3D11Texture2D to mp4 using MediaFoundation. Below is my current code. Initializing Sink Writer private int InitializeSinkWriter(String outputFile, int videoWidth, int videoHeight) { IMFMediaType mediaTypeIn =…
kripto
  • 69
  • 1
  • 10
2
votes
0 answers

SharpDX 3 loading .DDS to apply onto a 3d model (C#)

I'm attempting to create a model viewer for a game to try and learn SharpDX but the game uses .DDS files and the viewer can only read .BMPs. I've looked far and wide on the webs and the only things I can find are load them but don't seem to work for…
2
votes
0 answers

Playing a transparent video on screen

I have tried to look around internet if there is a way to play a video transparent and without a window on screen (Like some kind of overlay, hud [Can't name it] or those legit Softonic 'animated christmas tree for desktop') I first tried Windows…
Pineapple
  • 51
  • 8
2
votes
1 answer

SharpDX.Windows missing?

First and foremost, I apologize if this is the wrong place to ask this question, I just can't find the answer anywhere else. I've imported the SharpDX references into my C# project, however, the SharpDX.Windows reference isn't there. I've tried…
Intrinsic Nerd
  • 97
  • 1
  • 11
2
votes
0 answers

Can I create Fill and Eraser tools for winrt app like paint app in windows by Win2d or sharpdx?

I tried to create Fill and Eraser Tools by GDI but this way is too slow for windows phone devices and work with large photos with this method is too hard for this divices. I search for Alternative soulation for Image Processing and find Win2D and…
2
votes
3 answers

How to get pixel color of Direct2D bitmap on SharpDX

I use SharpDX and I don't understand how to get pixel color at bitmap. I found CopySubresourceRegion method, but it working on Direct3D. I've strange idea: I can create RenderForm and drawing my bitmap on form. Then get graphics of form. Then create…
Mark Khromov
  • 283
  • 1
  • 11
2
votes
4 answers

SharpDX 3.0.2 D3D11 - How to load texture from file and make it to work in shader?

I have 0 experience with D3D. I am currently reading Frank Luna's book about D3D11 and trying to make examples working in C# using SharpDX though w/o effect framework. I stuck with texturing now. I don't understand how to load texture from file and…
2
votes
2 answers

Reading from a DataStream in SharpDX causing memory leak

I'm trying to get pixels from a SharpDX.DataStream. I do this 25 times per second and it's causing a huge amount of memory usage. I think I'm missing some sort of cleanup. As soon as I start calling the GetColor method, memory usage starts rising.…
Robert
  • 642
  • 7
  • 11
2
votes
0 answers

Video rendering using SharpDX, Direct3D9 (HW Accelerated)

Small background story: A friend of mine and I are trying to make an arcade game simulator. We have got the 'wireframes' already set up (asset loading, gamestates, etc.), but we're completely stuck on video rendering. Example (The pendulum /…
Arena
  • 360
  • 3
  • 10
2
votes
1 answer

FillGeometry much slower on UWP compared to desktop?

The UWP version of our app runs with a much slower framerate (6 fps vs 24 fps) compared to the desktop equivalent. Note that both versions were tested on the same hardware. Both versions are built using SharpDX, the only difference is how the…
bright
  • 4,700
  • 1
  • 34
  • 59