Stack Exchange Network

Stack Exchange network consists of 175 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
33 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
26 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
35 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
37 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
317 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
13 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
14 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
2answers
35 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
80 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
33 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
42 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
113 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
60 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
99 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
46 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
70 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
137 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 ...
1
vote
0answers
49 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 ...
1
vote
0answers
99 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
48 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
320 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
50 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
65 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
134 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
79 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
158 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
57 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
135 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
200 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
51 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
186 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
125 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
130 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
90 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
560 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
57 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
154 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
152 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
141 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
318 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
68 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
84 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
167 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
557 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
97 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
938 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
267 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
532 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
155 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 ...