Questions tagged [sharpdx]

SharpDX is an open-source third-party managed DirectX wrapper.

Filter by
Sorted by
Tagged with
0
votes
2answers
35 views

How can I install SharpDX for my project?

Unfortunately, as an experienced developer, I can not find the download link for SharpDX's binary files on SharpDX's download page here https://www.nuget.org/packages/SharpDX/4.2.0 I am very ...
0
votes
0answers
21 views

How to access a Texture inside of a Vertex Shader. SharpDX 4.2

This is a continuation of the question found here: vertex manipulation in instanced shader hlsl SHARPDX 4.2 Now that I was able to modify the positions of the vertex in a Vertex Shader through ...
0
votes
1answer
77 views

vertex manipulation in instanced shader hlsl SHARPDX 4.2

[SOLVED] - The project is here https://drive.google.com/open?id=1-kum0phM_iBMc8xRxYShmCNRWRs6W0Aw I am using the same vertex shader and pixel shader for my instances. I am sending ONE FLAT array that ...
0
votes
0answers
49 views

HLSL setting data on ONE Geometry instance - For chunk Terrain gen. SharpDX 4.2

I am just trying to send the size of an array from my c# script to my HLSL shader in order to initiliaze a vertex array inside the shader. It just ain't working. As I have read everywhere, we can't ...
0
votes
0answers
35 views

Render a basic Quad to screen?

I have been trying to accomplish this for quite some time with no success; I've looked at several relevant questions here on StackOverflow with no success; I've also followed 6 different tutorials ...
0
votes
1answer
41 views

Extrude only vertices where the assigned texture is transparent?

I am looking at implementing a water surface on my spherical object and have created a texture with transparent pixels where the water should be. However, I am currently confused on how I can extrude ...
1
vote
0answers
51 views

HLSL - GPU Performance Impacts of degenerate triangles

The background: After refactoring some code last night and realising I have had an issue that may of been impacting GPU performance. My particle system uses the geometry shader to expand a single ...
0
votes
1answer
536 views

How do I draw text using DirectX 12?

I'm currently tasked with porting a control from Direct 11 to DirectX 12. How do I draw text on the screen? How do I draw any 2D on a DirectX 12 device? Current Text rendering code is below: <...
0
votes
2answers
43 views

Swapping Y and Z causes problems with Camera

I am trying to swap the Y and Z axis in my program. Everything worked great when Y used to be the axis coming out of the plane. After having swapped y and x, I have been able to draw my terrain ...
0
votes
0answers
131 views

Crash on creating pipeline state - “the parameter is incorrect” - HRESULT 0x80070057

All input appears valid, although the DirectX12.ShaderByteCode() pointer is null - I don't know if that's indicative of anything; the buffer does contain data. Edit: Diagnostic hub output: ...
-1
votes
1answer
35 views

How do i rotate my view on its own center

PROBLEM I am trying to translate and rotate my view, the translation works fine but when rotating the rotation is happening on the center of the world(0,0,0) instead of the view position. EXAMPLE ...
0
votes
1answer
66 views

VSSetConstantBuffers1 does not appear to be working

I'm experiencing something very strange here when using VSSetConstantBuffers1. I have a projection * world matrix that I'm sending to a constant buffer to rotate a triangle on an axis. When I do ...
0
votes
1answer
160 views

Grainy texture from distance

I am using SharpDX, a C# wrapper over DirectX 11 to render terrain. While I am able to render terrain correctly, I noticed that moving around creates a lot of visual noise and makes the texture of ...
1
vote
1answer
118 views

Ugly Textures in the Distance

I'm here with another question about direct 3d 11 (sharpdx). My terrain engine is working good, but theres a problem with texture mip maps or filter which I can't figure out :/ The problem is basic. ...
0
votes
1answer
209 views

SharpDX DirectInput Force feedback actuators are missing

I am using a simple code to read input from a DirectInput device. I would like to add force feedback to the device, however when I run this test, I cannot find any ForceFeedbackActuator, however my ...
0
votes
0answers
65 views

A question about HLSL debugger in Visual Studio Graphic Diagnostics

Here 's the thing. I developed a graphic project using SharpDx. Every time I actived the graphic diagnostic and debuged some hlsl code in my shaders, It always showed me the disassembling code rather ...
0
votes
0answers
138 views

Sharpdx 2D Camera not moving

I am trying to move a camera to the right, but it isn't moving. i use this code to move: Camera.Position.X = gameobject.transform.Position.X; This is the camera ...
0
votes
1answer
87 views

SharpDX Y position inverted

I am currently drawing objects and it works perfectly, when i make x bigger the objects go right and when i make x lower they go left perfect, but when i make y bigger the object goes down and when i ...
1
vote
1answer
453 views

Pixel Shader stage did not run

I can't figure out why the pixel shader won't run. I'm using the Blinn-Phong per-pixel shader from here. Only change I've made is that I pass an aditional color per vertex which gets multiplied by the ...
1
vote
1answer
51 views

Multiple Mesh Renderes with Matrices. (Direct X11, C#)

im just confused: Im trying to render 2 cubes instead of one. So in my main class i have my WORLD matrix. Then if i render the mesh the camera is multiplying all matrices with the ...
0
votes
1answer
85 views

How the sharpdx set vertices by reading the vertex information files instead of coding the vertices?

During my developing, I always spend much time to fill up my vertex array by coding every vertex information when I have to create some complex models. It's quite inconvenient. It's will be very ...
0
votes
1answer
84 views

A question about SharpDx Colored Cube

Recently I start to study SharpDx, so I am a newbie for it. I try to create a cube which has difference color on each vertex such as the picture below. However, what I created after my coding is ...
1
vote
1answer
196 views

Device Disposing Memory leak issue

I have a memory issue after disposing all my D3D objects and lastly disposing the device. I want to free all memory and, depending on user interaction, creating a new device, but removing all memory ...
1
vote
0answers
58 views

Why do I are my quads outlined when rendered?

I have a 3x3 quad wall I am rendering to. I render to a 3x3 because the complete image exceeds the maximum single texture limit. So I've cut the image into a 3x3. The issue I'm having is that when ...
0
votes
1answer
162 views

Should I rotate the Camera using the View or World?

I have an issue with roll/rotation. I have a Camera defined to move along X and Y axis at a given Z for zoom. The camera is always pointed straight down the Z axis so there is not any yaw or pitch. I ...
0
votes
1answer
299 views

How to pan a perspective camera over a 2D scene with click & drag

I have an issue panning, my camera with the mouse. The camera travels on x and y. I'm using z to zoom. The camera travels over a single textured quad. I have the camera set up with a View(LookAtLH) ...
2
votes
0answers
53 views

How would one get the pixel value of a texture under the cursor?

I have a requirement to detect which pixel of a texture is under the cursor in the 3D world. I assume that Ray casting is involved however, after that I'm not sure how one would accomplish this. Can ...
1
vote
1answer
233 views

Processing large multi layered images with SharpDX

I'm currently working on an image processing project that pans and zooms on multi-layer high resolution images. The goal is colorize (including color, gain and noise) ...
1
vote
1answer
207 views

Merging multiple image with DirectX D3DImage best approach?

I'm currently rendering up to 6 images (7440 x 7440) together via a series of colorizing shaders (one each image) and then merging shaders (5 to merge colorizer result). I'm not getting the ...
2
votes
0answers
169 views

Performance of ClearRenderTargetView

While profiling GPU usage in VS2017, I've noticed a strange disproportion in performance of ClearRenderTargetView compared to ...
0
votes
1answer
120 views

Using DirectX(SharpDX) what is the best way to create a single large image from smaller images?

I'm looking for the best way to combine several images (1060 x 1060)each into on large image. I'm looking to create one texture to apply to a single Quad. I was thinking multiple quads and then just ...
2
votes
2answers
628 views

Shortest path from BitmapSource to DX11 Texture2D

Does anyone know a way to get from (WPF) System.Windows.Media.Imaging.BitmapSource to a DX11 Texture2D without going to System.Drawing.Bitmap? I'm trying to strip out all System.Drawing references as ...
1
vote
1answer
62 views

SharpDX(DirectX 11) N-tier layering of images

I have an project I'm looking for a better solution to. I have a need to render n images over each other the previous one. So I have loop if you will. This should simulate alpha bending via basic ...
3
votes
2answers
181 views

Why does rendering to a texture cause transparency here?

As a quick background, this is in the context of a custom game engine I'm writing in C# on top of the SharpDX framework. In the engine, when I render UI, I do so by creating a canvas object with its ...
-1
votes
3answers
188 views

Render an mesh topmost

I can render anything 3d with SharpDX. However, my mind is mixed what should I do to render a mesh topmost. (Example: menu and all things behind). How can I render something front of the all other ...
0
votes
1answer
152 views

Instancing mirrored geometry

I'm rendering mirrored geometry by flipping it's world matrix. Before rendering mirrored geometry I set CULL_FRONT rasterizer state (for normal geometry it's ...
0
votes
3answers
404 views

SharpDX Constant buffer not passing values

I'm trying to pass values to a Pixel Shader. I've added the following to the HLSL files. cbuffer QuadShaderValues : register(b0) { float3 PixelDropThresholds; float4 OverlayColor; uint ...
0
votes
1answer
77 views

Tile-Based Deferred Lights Flicker

I'm using Tile-Based Deferred rendering and I have run into an issue with my lights flickering. For a long time now I would just add all my lights at once and let the renderer do its thing eg. build ...
0
votes
1answer
103 views

Direct3D fails to render when on Laptop with nvidia optimus

I'm developing a Direct3D control which needs to run on a Dell XPS with a NVIDIA Optimus. I'm using SharpDX and C#. When I write code for the app on a workstation with only an NVIDIA graphics card it ...
0
votes
1answer
178 views

SharpDX C#, Quad renderer not rendering as expected

I've been working on a Quad Renderer and have gotten close. However, It still does not render correctly. Can anyone spot what I'm doing wrong or give me a better option. See the rendered results below ...
0
votes
1answer
669 views

Off-Screen Image processing with SharpDX

I need help with a image processing task... I'm using SharpDX which I am very new to. I have a device3D, device3DContext... I have a Texture2D for off-screen rendering... I have a RenderTargetView... ...
0
votes
1answer
109 views

Simple screen aligned renderer

I'm trying to create a super simple no frills off-screen process... I have the device, I can export the texture to Image... etc... I'm having one heck of a time just getting a simple Triangle Strip to ...
1
vote
1answer
1k views

SharpDX Texture to Image in C#

I currently have an image processing application that outputs processed images post pixel shaders have been applied. However, using the examples I've found on the internet, the colors are flip to BGRA ...
0
votes
1answer
331 views

Off screen image Direct3D processing with SharpDX, pixel shader and C#

I currently have a working app that can process images with a window handle. This of course makes use of the swap chain and so on... I need to process an image with pixel shader off screen without a ...
3
votes
1answer
583 views

Draw fonts in Hololens using SharpDX

I am using SharpDX to create an application in Hololens and I'm trying to understand how to use DirectWrite to draw variable text in 3D stereoscopic view. I have ...
0
votes
1answer
170 views

Why is my render engine only rendering one frame?

Just for background, I'm designing a soft engine in C# using the SharpDX DirectX wrapper library. I've gotten around to implementing the render engine, and I can render a texture to a face, except it ...
1
vote
1answer
435 views

Help Understanding Cameras/View Matrices in DirectX11 (C#)

So I'm designing a soft game engine in C# on top of the SharpDX API (a C# wrapper for DirectX). As I'm designing the camera, though, I'm running into some issues getting the 3D perspective correct. I'...
1
vote
1answer
1k views

How do I use SharpDX with the .NET Core framework?

I started a project to build a game engine. As a result of circumstance, I won't have the luxury of building the engine in C++, so I'm going to have to settle for C# with the .NET Core. Given that ...
0
votes
1answer
417 views

How can I send effects to joystick connected to my PC USB using C# and sharpdx?

I can get a list of the joysticks connected to my PC. But now I want to send effects for example to send a command that will make a button click for example the triangle button or the square button. ...