Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sharpdx]

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

0
votes
0answers
23 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
0answers
29 views

Stencil Rendering?

I may not be searching this properly, but I can't seem to find a decent tutorial on what I'd like to achieve. The only thing that seems to be close is this tutorial on reflections using the stencil ...
0
votes
1answer
34 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 ...
0
votes
0answers
30 views

Render a basic image to screen SharpDX?

I am working with SharpDX (DirectX11) and I'm refactoring some old code. I'm having a hard time finding tutorials on this and need to render a basic image to a ...
1
vote
0answers
31 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
221 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
0answers
12 views

How do I calculate the dimensions of the image in the viewport?

The Situation: I have a quad in 3D space the is texture with an image. The Problem: I need to calculate the width and height in pixels at the Z depth the quad is at.
0
votes
0answers
12 views

How can I keep my cameras synchronized in two different 3D environments?

The Situation: I have two identical controls that render an image to a quad in 3D space. The camera can move on the x, y, z axis' however the Camera position and target are always sync'd to each ...
0
votes
0answers
44 views

Creating a DirectX 11 Render Target crashes when a video recording tool is running

A player told me he wanted to make a video of my game, but when he starts the game it crashes every time. I bought the same video recording tool he is using to test it myself. I could reproduce the ...
0
votes
2answers
29 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
60 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
31 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
36 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
97 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 ...
0
votes
0answers
49 views

Problem with DirectX Rendering Terrain Mesh

I am learning how to render 3D using DirectX (using SharpDX for C#). I am generating a terrain mesh by utilizing the vertices and connectivity in a TIN (Triangulated irregular network). For the most ...
0
votes
0answers
10 views

Can I get the pixels in width and height of the displayed area in the view port at differnt z axies?

What I am trying to do is simulate magnification. Currently I have a camera that moves in and out along the z-axis. The camera does not tilt. I'm trying to determine how far or close the camera is ...
1
vote
1answer
91 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
0answers
42 views

Calculating statistics within rendering pipeline to reuse vertex buffers

I've created a 3D drawing application using SharpDX that allows to the client visualize spectra data as a waterfall chart. The data can be displayed using different color palette such as "Jet" or "...
0
votes
0answers
64 views

C# Sharp DX Cube model not showing up

i have a problem in my engine :/ I tried to fix it for the last 3 hours, and i found some posts too, but none of the solved it. I think i did everything right and tried out many things but it just ...
0
votes
1answer
117 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
102 views

How to transfer the shaderresourceview into image using sharpdx?

I had a texture which format was R32G32B32A32_Float, and I got it's shaderresourceview. If I want to transfer it into a image object, then how to do it? Is there any demo or code?
1
vote
0answers
41 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
48 views

Passing in 2 arrays into HLSL pixel shader

I am in the process of learning how to use DirectX (using SharpDX). If you know DirectX they are both similar SharpDX is just a wrapper for DirectX. I was able to show a triangle using an index ...
1
vote
0answers
86 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
44 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
259 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
47 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
55 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
0answers
287 views

SharpDX WPF D3DImage Flickering

I am experimenting with sharpDX and WPF and try to render my scenes to a WPF window. I use a D3D11 device and create a shared resource to which I render and then create a D3D9 device to copy the ...
0
votes
0answers
118 views

Improve performance by depth checking drawn objects

So I draw many LINE_STRIPS and they all get rendered on top of each other. I would love to make this more effecient, but I just can't figure out what I have to do. I have performance issues and I ...
0
votes
1answer
68 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
137 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
52 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
107 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
164 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) ...
3
votes
0answers
48 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
174 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
110 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
115 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
75 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
513 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
54 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 ...
4
votes
2answers
144 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
134 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
137 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
277 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
66 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
80 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
153 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
484 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... ...