Questions tagged [direct3d]

Direct3D is a high-performance, COM-based API for accessing graphics hardware (GPUs) in a device-independent way on Microsoft platforms.

Direct3D is a high-performance, COM-based API for accessing graphics hardware (GPUs) in a device-independent way on Microsoft platforms.

It is typically used for video game development, in contrast to the OpenGL API, which is more often used in data visualization tasks.

There are several versions of the Direct3D API, each of which corresponding to a different generation of graphics hardware.

  • Direct3D 7 incorporated hardware-accelerated transformation and lighting (NVidia Geforce, ATi Radeon).
  • Direct3D 8 added limited support for programmable graphics hardware (pixel and vertex shaders) using a specially-designed shader assembler syntax (NVidia Geforce 3, ATi Radeon 8500).
  • Direct3D 9 greatly improved support for programmable shader hardware, allowing for fairly complex shader programs (NVidia Geforce FX, ATi Radeon 9500), as well as incorporating a high-level language for writing shader programs (HLSL, basically identical to NVidia Cg).
  • Direct3D 10 featured a completely restructured API while removing support for fixed-function hardware and assembler shader programs (NVidia Geforce 8). While previous versions of Direct3D were backwards-compatible, Direct3D 10 works only on capable hardware.
  • Direct3D 11 added support for different levels of graphics hardware functionality, unifying support for "modern" (fully-programmable) as well as "legacy" (fixed-function or partially-programmable) GPUs.

Microsoft's XBox game consoles' GPUs are programmed using a variant of Direct3D (a Direct3D 8 variant on the original XBox, and an improved Direct3D 9 variant on the XBox 360, with added support for some Direct3D 10 features such as tesselation).

More information at http://en.wikipedia.org/wiki/Direct3D

1354 questions
-1
votes
1 answer

Comparing two images *using the GPU* in C#

Whether its is using OpenCV (prefer not to), DirectX, Direct3D, OpenGL, etc., I want know if it is possible to get the difference of two images using the GPU. So not caring about whether the target machine has a Nvidia CUDA card installed or not,…
John
  • 727
  • 3
  • 10
  • 23
-1
votes
1 answer

How to read the 3D chart data with directX?

I am reading a open source project, and I found there is a function which read 3D data(let's say a character) from obj file, and draw it . the source code: List verts=new List(); List norms=new…
MemoryLeak
  • 7,036
  • 22
  • 80
  • 127
-1
votes
1 answer

C++ DirectX Create Device Unresolved Externals Symbol

I made a dll for DirectX tools and got stuck with a compilation error (As the title says : Unresolved External Symbol Direct3DCreate9 called from initDevice) when creating the device. I narrowed down the code to a single line and a single function…
Or Betzalel
  • 2,141
  • 11
  • 41
  • 58
-1
votes
1 answer

DirectX 11 Blending transparent objects, not desirable result

I'm trying to implement transparent objects in D3D11. I've setup my blend state like this: D3D11_BLEND_DESC blendDesc; ZeroMemory(&blendDesc, sizeof (D3D11_BLEND_DESC)); blendDesc.RenderTarget[0].BlendEnable =…
user1760770
  • 335
  • 4
  • 14
-1
votes
1 answer

Direct3D (v10) Multiple World Transformations

In my code I am trying to run two (at the moment, probably more in the future) matrix transformations on my world matrix. Like so: D3DXMatrixRotationY(&worldMatrix, rotation); D3DXMatrixTranslation(&worldMatrix, 0.0f, -1.0f, 0.0f); where rotation…
-1
votes
1 answer

how to convert XMVECTOR to D3DVECTOR and to D3DCOLORVALUE in DirectX 9?

I learn DirectX (DirectX 9) from www.directxtutorial.com and using visual studio 2012 in windows 8. d3dx9 (d3dx) replace by other header like DirectXMath, therefore I replaced all that is needed, but there is a problem - convert XMVECTOR to…
Arlu
  • 41
  • 1
  • 9
-1
votes
1 answer

Project a grid in screenspace on the world xz plane

I want to project a grid on the xz-plane like shown here: To do that, I created a vertex grid with x and z range [-1|1]. In the shader I multiply the xz screen coordinate of a vertex with the inverse of the View-Projection matrix. Then I want to…
Erik
  • 11,034
  • 17
  • 75
  • 120
-1
votes
1 answer

3D level editor for concepts/sketches

I used to work with the Hammer editor of Valve for my Portal 2 mod, however if I just want to draw a basic concept or sketch for chambers while brainstorming, the editor has just too much features so I can not focus on what I really need and have to…
Christian Ivicevic
  • 8,325
  • 7
  • 30
  • 61
-1
votes
1 answer

"this declaration ahs no type specifier" and "expected a declaration" errors in same function

I have this code: HRESULT __stdcall IDirect3DDevice9Hook::BeginScene() { if(dwD3D9DllBaseAddr && dwD3D9DllSize) { dwD3DDev = (DWORD)pD3DDevice; _asm mov eax, dwD3DDev _asm mov ebx, [eax] _asm mov eax, [ebx+164] _asm…
user1365830
  • 171
  • 1
  • 11
-1
votes
2 answers

How can I split a window in two in windows api

The basic idea is to split the window in 2 so I can paint with 2 pictures with GDI or eventually use Direct3D to display 2 different scenes. How can i achieve this only with windows API
jondoe
  • 338
  • 3
  • 11
-2
votes
1 answer

Failed to create DirectX Device and Swapchain

I have issue with Error if (FAILED(D3D11CreateDeviceAndSwapChain( nullptr, D3D_DRIVER_TYPE_HARDWARE, nullptr, createFlags, requestedLevels, sizeof(requestedLevels) / sizeof(D3D_FEATURE_LEVEL), D3D11_SDK_VERSION, …
-2
votes
1 answer

Can put xml reader function into D3drenderer.cs?

Below is the standard d3drenderer.cs file coding: using System; using System.Collections.Generic; using System.Windows; using System.Windows.Controls; using System.Windows.Interop; using System.Windows.Media; using System.Windows.Threading; using…
Coolguy
  • 2,043
  • 9
  • 40
  • 74
-2
votes
2 answers

What is the D3D12 equivalent of Direct3DCreate9(D3D_SDK_VERSION)?

So I am currently coding a D3D12 engine and was wondering what the D3D12 equivalent of this D3D9 function is ? direct3D = Direct3DCreate9(D3D_SDK_VERSION);
Arjan Singh
  • 161
  • 3
  • 10
-2
votes
1 answer

how to simulate rolling dice animation for windows phone 8.1 using C#

I want to create a 3d rolling dice animation for Windows phone 8.1/10 in C#. What will be the best way to do it. Can we do using expression blend?
-2
votes
2 answers

ComPtr to IntPtr

I'm an absolute zero at C++. But I need to write a small c++ class for managing a d3ddevice. My C# code is: public class HCPPUtils { [DllImport("HSpectrum\\Assets\\HCPPUtils.dll")] private static extern int…
puckkk
  • 11
  • 4
1 2 3
90
91