Questions tagged [directx]

DirectX is a collection of APIs for handling tasks related to multimedia, especially 3D graphics and game programming and video, on Microsoft platforms.

Microsoft DirectX is a collection of APIs for handling tasks related to multimedia, especially 3D graphics and game programming and video, on Microsoft platforms. Originally, the names of these APIs all began with Direct, such as Direct3D, DirectDraw, DirectMusic, DirectPlay, DirectSound, and so forth. The name DirectX was coined as shorthand term for all of these APIs (the X standing in for the particular API names) and soon became the name of the collection.

More information at Wikipedia article of DirectX

References & Tutorials:

5860 questions
2
votes
4 answers

Full screen rendering on widescreen monitors

My situation is as follows. I make games that use fixed size backgrounds (say 800x600). When players go fullscreen in a widescreen monitor, I add black bars to the sides, to make sure the game doesn't look stretched. There are several ways to do…
ggambetta
  • 3,312
  • 6
  • 32
  • 42
2
votes
2 answers

DirectX 11 Win7 versus Win8 difference in brightness/shader ambient lighting

The problem shows on all Win8 systems, all brands, all types of desktop, laptop, all-in-one, and tablets (tested on nearly every system at BestBuy which there's a ton of them so I can't be the first person to see this.) What is happening is shown…
Robert
  • 658
  • 7
  • 11
2
votes
6 answers

DirectX with VB.NET

Is there a set of documentation on DirectX (9 or above) that shows the objects, methods, properties, events and samlple code for the use of DirectX (9 or above) with VB.NET? The most recent SDK includes details for C++ and the "Windows DiectX…
IanG
  • 21
  • 1
  • 4
2
votes
1 answer

Pixel Shader can access Structured Buffer while Vertex Shader can't - is that a DirectX spec?

==================== EDIT: the solution ===================== I finally have found the problem, and since the answer might be important for beginners who are learning DirectX I post it here. (I’m using F# and SharpDX as the .NET wrapper to…
2
votes
1 answer

How to reset my DirectX 9 device?

Recently, I've found a bug in my 3D application that uses DirectX 9. The bug is that everytime I alt-tab or ctrl-alt-delete, the program freezes or seems to do nothing. I've looked around and found out that I need to reset my device by using…
Danny
  • 9,199
  • 16
  • 53
  • 75
2
votes
2 answers

Get the precise screen refresh rate on Windows without DirectX?

I know of two ways of getting the screen refresh rate on Windows. The first is the simple EnumDisplaySettings function, which fills a struct that contains a rounded screen refresh rate value in fps. The second is using DirectX, which, during…
NmdMystery
  • 2,778
  • 3
  • 32
  • 60
2
votes
2 answers

Turning a DirectX sprite Solid White

I have a sprite of my main character. I normally draw it with a color modulus of ARGB(255,255,255,255). However, I would like my sprite to be drawn more white. I can make the sprite be drawn any color by changing the color modulus, except for…
Tyler
  • 21
  • 4
2
votes
1 answer

Sharing texture between DirectX 11 and DirectX 10

As everybody knows, DX11 no longer support text writing to the screen. I wanted to do that by creating texture with DX11 and share it for DX10, so it could draw to it with ID3DX10Font interface. Then blend everything with DX11 shaders. I've got an…
Patryk Lipski
  • 163
  • 10
2
votes
2 answers

compute shader with numthreads (1,1,1) runs extremly slow

I am just beginning to learn DirectX programming, using F# and SharpDX as .NET wrapper. As a test case I render the Mandelbrot set. The computation is done using 2 compute shaders. The first shader computes the depth for each pixel (function…
2
votes
1 answer

How can I show a live stream of video data in my app?

I get a video feed (mpeg2-ts @ 500kb/s) over the network, but I'm uncertain on how to go from here. The videofeed is now collected in a rather fast growing byte array, and I need a hint on how to feed a video renderer with these bytes. I've used…
rozon
  • 2,518
  • 4
  • 23
  • 37
2
votes
2 answers

sphere texture mapping error

i use D3DXCreateSphere method to create sphere mesh. and i want to apply an earth texture on it. i calculate the texture coordinate in pixel shader with following code: sampler ShadeSampler = sampler_state { Texture = (ShadeTex); AddressU…
cloud
  • 505
  • 1
  • 8
  • 21
2
votes
3 answers

How to install DirectX in quiet mode?

I want to install the DirectX 9c user package in quiet mode. Is there any option like /quiet /q /qb etc. None of these worked. Note: With this file DXSETUP.exe /q not the extractor file directx_9c_redist.exe /q ( this works fine.)
Rick2047
  • 1,565
  • 7
  • 24
  • 35
2
votes
2 answers

How to handle multi touch in windows phone 8 app

I can not find an example how to handle multi touch in windows phone 8 app ( in game on c++ and directx ). May be anyone can help me? Thanks!
2
votes
1 answer

C++ DirectX11 Execution Warning #355 and #356 = incorrect stride size

I'm having some trouble finding the source of my error. Everything works fine with the app yet I'm getting spammed with these 2 warnings: D3D11 WARNING: ID3D11DeviceContext::DrawIndexedInstanced: Input vertex slot 1 has stride 12 which is less than…
Eizo Zalman
  • 25
  • 1
  • 4
2
votes
1 answer

DWM Screen Capturing with DirectX IDXGIOutput::GetDisplaySurfaceData

I am trying to capture DWM's DirectX surface by using DXGI and GetDisplaySurfaceData() using Direct3D 10/11. However, when I am taking ownership of the adapter's output with IDXGIOutput::TakeOwnership() before calling to GetDisplaySurfaceData(),…
iank
  • 336
  • 4
  • 8