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

1464 questions
0
votes
0 answers

Direct3D 11 Applying texture to sphere

I'm trying to apply a texture to sphere. I have used a 3d modelling software to create the sphere with vertices, normals and texcoords exported as .obj file. I parse the file and create a vertex buffer with the data. IDE is Visual C++ 2012. The…
Ma Sa
  • 51
  • 1
  • 5
0
votes
1 answer

(Closed) C++ & Direct3D 9 - How to draw formatted text? (Like printf etc)

I've recently started some programming in C++ using DirectX. I'm not new to C++ as I've used Allegro & SDL before. So far, I can draw text to the screen. However, now I have a slight problem, where I cannot draw a variable to the screen. Ideally, I…
user2578223
0
votes
1 answer

2D DirectX 10 Game Development

I am attempting to create a 2D game using DirectX 10. I've been having lots of problems with figuring out how to actually get started to create such a thing. I've discovered mixed ideas, such as just use shaders and stick with Direct3D and I've…
Charsmud
  • 183
  • 1
  • 4
  • 19
0
votes
0 answers

How to load texture from file with transparent background in DirectX

Recently I've picked up a book and started to learn game programming with Direct3D and DirectX. It's been pretty good so far, but the problem is I can't get to load texture from file to backbuffer with transparent background color. Here source code…
Norin
  • 13
  • 4
0
votes
1 answer

Getting the Direct3D device capabilities in C# XAML project

Is there any way to get the current Direct3D devices capabilities from a Windows Store XAML/C# application? I am initialising a 3rd party 3D engine in the SwapChainBackGroundPanel, and trying to set some command line arguments based on the graphics…
Greg Quinn
  • 1,927
  • 1
  • 23
  • 26
0
votes
2 answers

removing #include causes error

I have a class called D3DGraphics in a header file called D3DGraphics.h. I have included d3d9.h and my Graphics file works absolutely file. However, recently I found a header file which was including D3DGraphics.h when it was not using it, so I…
Joel
  • 385
  • 1
  • 3
  • 15
0
votes
2 answers

Matrix.CreateRotation vs Vertex Shader

I'm trying to get my head around 3D development with XNA and I have a seemingly simple query that I can't seem to find the answer to. We have the vertex shader which, if I understand correctly, is for transforming vertices. But, I also have various…
Walter
  • 664
  • 1
  • 6
  • 19
0
votes
1 answer

Bitblt from directx application

I got that code to get the pixel color from current mouse position. It works well but the only problem is, I can't get it from an d3d application... I tried it few times, but it only get only black color - Red: 0 Green: 0 Blue: 0 Here's my code -…
Tom Weiss
  • 11
  • 4
0
votes
1 answer

Direct3D 9 functions return value

Since the function's return value is utilized for error message, how do the functions return the necessary information back to the caller? For example: IDirect3D9::CreateDevice method
zzz
  • 161
  • 4
  • 12
0
votes
1 answer

macro equal to function?

FAILED macro Macro (computer science) After I read the articles above, I still not very sure whether macro is just a function or anything else. Is macro equal to function? Example: // Create a Direct3D 9 device. hr =…
zzz
  • 161
  • 4
  • 12
0
votes
1 answer

How do I correctly initialize an XMVECTOR in a constructor?

I'm having trouble finding reliable documentation on what happens when you call the default constructor on an XMVECTOR. MSDN says that the XMMATRIX default constructor does not initialize the variables to 0…
Nico
  • 1,181
  • 2
  • 17
  • 35
0
votes
1 answer

How to detect if d3d device can be created for a certain width / height in windowed mode?

My game is in window mode which allows users to resize the game window almost freely, which means the the ratio of the width/height, and the size of the window can be arbitrary (though the window has largest and smallest restrictions) To make the…
karlzhang
  • 1
  • 1
0
votes
0 answers

Direct3D on .NET Control - Screen Refresh Rate

I am rendering to a System.Windows.Forms.Control using Direct3D 9. My render loop doesnt go faster than 120 FPS, which is the refresh rate of my screen. I tried changing the refresh rate and it did actually limit the render loop accordingly. Also, I…
Beta Carotin
  • 1,659
  • 1
  • 10
  • 27
0
votes
1 answer

Error C2228, though left of .x has a class

I am trying to call class function, while Visual Studio throws above error at me. I have been calling another function in constructor and it works there. What is worth mentioning, is that GameLoop is static. I have a strange feeling that this might…
Neomex
  • 1,650
  • 6
  • 24
  • 38
0
votes
1 answer

How to include Direct3D in a program?

I am learning Direct3D from directxtutorial.com. I am including it through a preprocessor directive in the code below. #pragma comment(lib, "d3d11.lib") #pragma comment(lib, "d3dx11.lib") #pragma comment(lib, "d3dx10.lib") This is not doing it,…
kkrenzke
  • 60
  • 3
  • 8