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
2 answers

How can I predict how HLSL shaders affect performance?

For instance,if I render a flat surface,I get 1500 frames per second.With a simple blend map the frame rate drops to 700(double frame rate drop?!).In the Microsoft DirectX SDK example ''Parallax Occlusion Mapping'' the model is a small,no more than…
none
  • 39
  • 1
  • 3
0
votes
2 answers

Direct3D WVP Stretching issue

I've been working on my own 3D Engine using Direct3D. This went pretty good, until I ran into an issue with the World View and Projection Matrices. I'am using code from previous projects that I worked, but doesn't in the project. So I decided to…
Stardidi
  • 308
  • 2
  • 10
0
votes
1 answer

How to make sure there is a 1:1 pixel/texel ratio for a texture

I want to use Direct3D to display a texture on screen, not only that I want it to cover the whole window, but I want to be the actual size of the texture (i.e. every pixel on the screen to be mapped on one texel from the texture)
jondoe
  • 358
  • 4
  • 12
0
votes
1 answer

Flickering issue with VirtualSurfaceImageSource

I'm considering using VirtualSurfaceImageSource in my application, and I've implemented something similar to the Direct2D magazine app sample, but I've run into a problem which occurs when the virtual surface is several times larger than the display…
Danko Durbić
  • 7,077
  • 5
  • 34
  • 39
0
votes
1 answer

C++ D3DX Font and transformations (d3d9 and d3d10 solutions needed)

I want to render font in a way that takes account of the current transforms and similar settings, especially the projection transform and viewport. I'm thinking that the best way to do that is to have an off screen surface to render the text to, and…
Fire Lancer
  • 29,364
  • 31
  • 116
  • 182
0
votes
1 answer

What should we install to include "D3dukmdt.h" in my VC++ code?

I want to use D3DDDIFormat enumeration in my code. So I included "D3dukmdt.h" as given in the link "D3DDDIFORMAT But when I do # include "D3dukmdt.h" in my C++ file, I see that the header file D3dukmdt.h is not recognized at all. Can anyone…
codeLover
  • 3,720
  • 10
  • 65
  • 121
0
votes
2 answers

HLSL beginner needs some directions

Is there any example out there of a HLSL written .fx file that splats a tiled texture with different tiles?Like this: http://messy-mind.net/blog/wp-content/uploads/2007/10/transitions.jpg you can see theres a different tile type in each square and…
none
  • 39
  • 1
  • 3
0
votes
1 answer

How do I correctly implement texture pixel to texel correction in direct3d 9?

I have read a couple of articles that describe the necessity to move the texture one half unit of the vertex positions in order to get the correct mapping between texels and pixels. Though I think I understand the theory behind it, when I try to…
icecream
  • 973
  • 2
  • 12
  • 26
0
votes
1 answer

High CPU usage when on secondary display (windowed mode)

Our custom DirectShow Video Renderer uses Direct3D9. When displayed in windowed mode (covering the whole display srface) on the primary display/monitor it performs well with CPU usage low, but when it's displayed on the secondary monitor the CPU…
Lee_Nover
  • 334
  • 3
  • 8
0
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
  • 358
  • 4
  • 12
0
votes
1 answer

CreateIndexBuffer() crashes,some kind of pointer error.What could be causing this?

I get Unhandled exception at 0x004687b4 in D3DTest.exe: 0xC0000005: Access violation reading location 0x00000000. the error is at: m_d3dDevice->CreateIndexBuffer(sizeof(short)*CHUNK_PRIMITIVES*3,D3DUSAGE_WRITEONLY, D3DFMT_INDEX16,…
none
  • 39
  • 1
  • 3
0
votes
1 answer

How to texture a tiled 3D terrain in DirectX9 C++?

I have no problem with manipulating the mesh itself,but each tile(which is basically a square of 4 vertices and the whole terrain mesh is made of a grid of tiles)has to be able to be given a different texture of my choosing.So far I can only give…
none
  • 39
  • 1
  • 3
0
votes
1 answer

How to render a 3D model/graphic of a building in a ASP.Net MVC webapplication

I am researching the possibility to render a 3D model or graphic from a building described by data in a ASP.Net MVC webapplication (C#). Most posts on forums and on stackoverflow and articles on blogs and websites I find about things related are old…
Daniël Tulp
  • 1,745
  • 2
  • 22
  • 51
0
votes
1 answer

Full screen mode on dual desktop

I have an MFC application/dialog that goes into full-screen mode. I run it on a Windows 7 dual display with nVidia GT 330. I need to make it go-full screen on the second desktop (not primary display) from within the program, without any user input.…
dr_rk
  • 4,395
  • 13
  • 48
  • 74
0
votes
2 answers

How to fallback to software rendering in Java3D?

We are having some weird problems using Java3D over a Windows' remote desktop. The remote machine is a virtualized server, which can't use the (physical) server's graphic card. When I run the app, the following error pops: Unable to create DirectX…
Bruno Kim
  • 2,300
  • 4
  • 17
  • 27