Questions tagged [sharpdx]

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

31 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
118 views

Flicker when drawing multiple shapes over image based texture

I'm rendering video frames with multiple color filled shapes over it using SharpDx and D3D11. Rendering seems to be fine when just rendering the video frame and is as expected. Now if i draw a ...
3
votes
0answers
60 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 ...
3
votes
0answers
244 views

Performance of ClearRenderTargetView

While profiling GPU usage in VS2017, I've noticed a strange disproportion in performance of ClearRenderTargetView compared to ...
3
votes
0answers
158 views

Simulating wind (vertex bending)

Right now I'm using the Crytek vegetation bending technique, vertex colors control how much force is applied to the branches, leafs and trunks. I have it working and it looks nice but I'm just using ...
3
votes
0answers
580 views

Struggling with simple orthographic projection for a 2D setup

I'm trying to build a simple setup for 2D using SharpDX. Basically I want to supply my vertices in classic Cartesian coordinates: X-right, Y-up, starting with (0,0) in bottom-left corner. I've had ...
3
votes
0answers
349 views

Nothing drawn in Window, not even the clear color

A few years ago I have followed RasterTek's Direct3D11 tutorials to create a simple application in C++. I'm not trying to convert this very simple sample to C# using SharpDX. I've got the Window (...
2
votes
1answer
213 views

Retrieving shared video memory using SharpDX

I am trying to retrieve the total available video memory using SharpDX via DXGI, using the Description of the best available adapter. The DedicatedVideoMemory is correct (1GB in my case), but the ...
2
votes
0answers
3k views

SharpDX: Render to bitmap using Direct2D 1.1

I have a command line application that I am currently using SharpDX (Direct2D 1.0) to render to PNG files. This is a window-less application. It's currently creating a ...
2
votes
0answers
348 views

Chunk Texture3D GPU generated vertices

I read GPU Gems 3 from NVidia about procedural terrain. It's quite interesting but not applicable for me because I only read the online version without the shipped ...
1
vote
0answers
169 views

Optimized way to show Unity RenderTexture in WPF using SharpDX

I'm writing a Unity plugin which uses WPF for UI , Plugin runs in same process of Unity and has direct access to unity's memory. Unity Code : ...
1
vote
0answers
106 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 ...
1
vote
0answers
62 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 ...
1
vote
0answers
278 views

Cascade Shadow Map Problems DirectX 11

So after fixing all my lighting and shadow problems that my new terrain system showed me that I had I have an issue with my shadow maps, I have had it since my XNA days but because of my world setup, ...
1
vote
1answer
586 views

SharpDX Error 'The Parameter is Incorrect', how to debug from dx?

I have written some code to handle a DX device. When the code is finished and makes it's call to DX the DX engine is complaining. What I'm looking to understand is how one goes about debugging on the ...
1
vote
0answers
534 views

How to draw SharpDX 2D Bitmap Outline

i want drawing bitmap outline Now Drawing ...
1
vote
0answers
142 views

SharpDX - Character Skinning Different in Windows Phone 8.1 Emulator and Real Device

I have an engine written using SharpDX, that can load a character mesh and animation stored in a FBX file, then it renders a scene and animates a character. It is written as an Universal Windows Store ...
1
vote
0answers
323 views

How can I use a SharpDX.Toolkit.Game in multiple WPF controls?

I've implemented a Game class in a WPF app. It works and the animation renders. I have task to implement another several Controls with SharpDX in the same application window. Each new Game object ...
1
vote
0answers
528 views

Geometry shader: Dynamic output?

I'm currently using a geometry shader to generate grass blades out of single root points that are layed out in a grid. For each root point, I generate a grass blade with, right now, a constant number ...
1
vote
0answers
1k views

Why do I get an 'invalid call' error when creating an R8G8B8 volume texture?

I'm trying to create a VolumeTexture in C# with SharpDX, but it fails: ...
1
vote
0answers
252 views

Pixel Shader : Backbuffer is 'Black'

After Fiddling around I am pretty sure this is not a Shader issue. Edit 4: The only diference I can see is that BasicEffect calls these methods before drawing: ...
1
vote
2answers
642 views

SharpDX instancing with D3D11

Could anybody provide working code using SharpDX with D3D11, which does instancing and uses SharpDX's content pipeline? I have several problems there. I came to understand that one should use a ...
0
votes
0answers
113 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
342 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: ...
0
votes
0answers
144 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
247 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
1k 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
0answers
700 views

Faster way to do multi texture blending(HLSL, triplanar texturing and overhang mapping)

Right now I'm doing a lot of lerping to blend my textures based on height(under water, mid ground and height ground), normal.y >= 0.0 for the under side of the terrain, fractal blend map for a marble ...
0
votes
1answer
828 views

Zoom at a specific point using Orthographic camera

Currently I can perform Zoom which seems to be working fine but essentially what I'm really trying to do is zoom on a position offset from center as currently when I zoom then zoom is performed at the ...
0
votes
0answers
505 views

SharpDx from Nuget

I'm trying to get the SharpDx DLLs from Nuget instead of accessing the DLLs directly, and it is a nightmare for me - I've spent several hours on this task already. If I do this: Create a clean ...
-1
votes
1answer
40 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 ...
-1
votes
3answers
230 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 ...