Questions tagged [sharpdx]
SharpDX is an open-source third-party managed DirectX wrapper.
179 questions
0
votes
1
answer
330
views
Draw Primitives using SharpDX.Direct3D9 with C# .NET Framework
I have a question, How to draw primitives? draw lines, rectangles, circles, text, etc...
For now I can draw text and Lines:
SharpDX.Direct3D9.Font
SharpDX.Direct3D9.Line
However, those lines look ugly,...
0
votes
1
answer
1k
views
Force Feedback on joystick device using SharpDX DirectInput API
The Goal (for context)
Get input from a USB joystick device in the Unity Game Engine and activate Force Feedback functionality on the joystick from Unity.
The Method
I am using the SharpDX.DirectInput ...
1
vote
1
answer
394
views
D3D11 ERROR ("invalid arguments") from HLSL shader
I am using MonoGame 3.8.1.303 with Windows/DirectX.
I am just rendering a TriangleList using DrawIndexedPrimitives, but I am ...
-1
votes
1
answer
74
views
SharpDX 3d Camera Rotation clamping Camera y rotation
Im trying to make some 3D graphics in C#.
Everything been working out great so far except for one thing.
I want a fps-like camera, that stops when looking down / up.
I Tried:
Clamping the "...
0
votes
1
answer
498
views
Is there any performance difference between Draw() and DrawInstanced(1)?
The background of the question is, does it make sense to introduce an if case when drawing a mesh for whether there is instancing or not?
This is using DirectX 11 ...
0
votes
1
answer
325
views
XInput (SharpDX) not returning 0 on thumb sticks when they're idle
When querying XInput for the status of the thumb sticks, it doesn't return 0 when the sticks are not in a moved position.
Instead, it returns an arbitrary value which is a small portion of the value ...
0
votes
1
answer
2k
views
How to create a texture SRV with different sRGB format from a render target in DX11?
Is it possible to bind a texture with a different format as render target and as shader resource view?
Specifically with a different _SRGB suffix. My goal is to render a shader into an R8G8B8A8_UNORM ...
3
votes
1
answer
2k
views
What is the proper strategy to manage vertex buffers?
I have created a large variety of shaders for my game engine for different use cases. The vertex input for the shaders depend on what I want to do with them. For example, if I want to just render the ...
0
votes
1
answer
358
views
Creating Compute Shaders throws E_INVALIDARG exception in SharpDX
I've recently been working on a small helper for creating and using compute shaders in C# along with Monogame/XNA. My end goal is simply to have compute shaders working in C#.
My main issue is as such:...
1
vote
1
answer
139
views
Polygon draw order issue
I'm working on a software and I'd to move the rendering API from SlimDX to SharpDX. I've done that but I noticed that the solid polygon are not drawn correctly i.e., even if the polygon is at the back ...
1
vote
0
answers
523
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
1
answer
771
views
Calculating 3D character movement based on YAW and Pitch
I'm not sure how to calculate an XYZ immediately to my characters left based on the direction they are facing.
I am learning to create a 3D game in Monogame on top of .Net Core 3.1 in c# using ...
0
votes
2
answers
1k
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 ...
-1
votes
1
answer
304
views
vertex manipulation in instanced shader hlsl SHARPDX 4.2
I am using the same vertex shader and pixel shader for my instances. I am sending ONE FLAT array that contains all the instanced chunk bytes that make the cube of the Minecraft terrain. My goal is to ...
0
votes
0
answers
179
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 ...