Questions tagged [direct3d9]

161 questions
0
votes
2 answers

Direct3D9 BackBuffer to PixelArray

I'm trying to hook a DirectX game. I successfully loaded my hook and I'm able to save images/backbuffer to the disk using: HRESULT Capture(IDirect3DDevice9* Device, const char* FilePath) { IDirect3DSurface9* RenderTarget = nullptr; HRESULT…
Brandon
  • 20,445
  • 9
  • 73
  • 162
0
votes
1 answer

Deadlocks and crashes when debugging after upgrade to VS2012

My app uses a C++/CLI class which extends System.Windows.Forms.UserControl and wraps a native C++ class which does Direct3d9 rendering using the Effects framework. Everything was working great until we upgraded our solution from VS2010 SP1 to…
dario_ramos
  • 6,536
  • 7
  • 50
  • 104
0
votes
1 answer

IDirect3DDevice9 Release deadlock

What could cause this? I use direct3d9 from a dll on windows 8. No calls originate from DllMain. All calls to the api and winapi for my window are done from the same thread. All ressources associated with the device were freed.
typ1232
  • 5,304
  • 6
  • 32
  • 49
0
votes
1 answer

How do I render a fullscreen frame with a different resolution than my display?

I am in the process of teaching myself DirectX development while going through all the tutorials on http://directxtutorial.com/. I have run into a problem that I believe is related to me having multiple monitors. My display is 1920 x 1080. When…
Brandon
  • 261
  • 1
  • 7
  • 17
0
votes
2 answers

LNK2005 errors using Direct3D9

I am trying to set up a basic application at the moment and I want to use Direct3D9 as the API to draw primitive shapes. For example, I want to create a circle which will be drawn by the circle object and a triangle in the triangle object etc. My…
Chris
  • 181
  • 1
  • 13
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
  • 131
  • 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
  • 131
  • 4
  • 12
0
votes
2 answers

drawing coordinate system axes in corner of screen in direct3d

I have a direct3d environment in a MFC window and i would like to draw the coordinate system axes in the corner of the screen, as any 3d software has. I thought this would be no problem, but issues occurred when i started moving the camera around.…
0
votes
1 answer

What is the best way to have lights in Direct3D 9

The current method i use drops the fps to 30 when having 5 lights. What is the best way to have lights like in a AAA title. They have lights everywhere but runs smooth. What i use now…
Dilhan Geeth
  • 167
  • 1
  • 10
0
votes
0 answers

How do I include an animated fbx-file(or contents thereof) into a 3D-world using a Proxy-DLL?

I want to insert an animated 3d object in a fbx-file via proxy-directx-dll into a d3d9 game. I want it to fit in such that light being thrown in the game is affected by it which makes it throw a shadow. I want it to appear and the animation to start…
Brutus Cruciatus
  • 404
  • 3
  • 16
0
votes
1 answer

Direct3D11 GL_RGBA4 equivalent?

Is there an equivalent GL_RGBA4 texture format for D3D11, I can't seem to find it. There is DXGI_FORMAT_B5G6R5_UNORM and DXGI_FORMAT_B5G5R5A1_UNORM 16 bit formats, but not the 4444 one. Even D3D9 has all of them, so I don't understand why D3D11…
zezba9000
  • 3,081
  • 1
  • 24
  • 45
0
votes
2 answers

FXC error "maximum temp register index exceeded"

I'm working in HLSL, and I'm getting this error from one of my shaders: error X4505: maximum temp register index exceeded The line that's causing this is: int count = Passes[input.Tex.y].y; Passes is defined as: cbuffer Style { float3…
Justin R.
  • 21,845
  • 21
  • 102
  • 147
0
votes
1 answer

Sprite object no longer renders when put in to a Vector

Creating a small 2D game, using Direct3D 9 and C++. I have come across a problem I have not seen before. The game is a shop based one so I have a customer class. I have created the object in the game and it renders and behaves how I want for the…
Chris
  • 181
  • 1
  • 13
0
votes
1 answer

Direct3D uploading video textures

I am trying to play video on Direct3D 9 device, using: nVLC - for fetching the RGB32 frames from file SlimDX - Actually displaying frames on video device using textures. Here is my code to receive RGB32 frames; …
Erti-Chris Eelmaa
  • 22,879
  • 5
  • 54
  • 76
0
votes
1 answer

Copying data of a IDirect3DSurface to another IDirect3DSurface which are created with two directx devices

There is a window with its own Direct3D device, lets call it mainWindow. mainWindow and its things are created by some other people. They have given me some Direct3D Surfaces (IDirect3DSurface9 pointers) which they are drawing on the mainWindow. I…
Deamonpog
  • 757
  • 1
  • 7
  • 21
1 2 3
10
11