Questions tagged [direct3d9]
167 questions
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
- 18
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,247
- 1
- 29
- 51
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.
- 23,435
- 23
- 108
- 157
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
- 191
- 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
- 25,338
- 6
- 61
- 78
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
- 805
- 1
- 10
- 24
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
3 answers
Compiling DX 9.0c app against March09SDK => Cannot run with older DX 9.0c DLLs => Problem :)
I'm unable to do a scenario from subject.
I have DirectX 9 March 2009 SDK installed, which is 9, "sub"-version c, but "sub-sub"-version is 41, so libs (d3dx9.lib d3d9.lib) are linking exports to dxd3d_41.dll.
What happens when I try to run my app on…

Jox
- 7,132
- 14
- 49
- 63
0
votes
2 answers
win32 thread unexpectedly terminates in activeX (C++)
I'm developing an ActiveX video player. It is in-process component in a DLL. I'm using Visual Studio 2010.
I need it to have a separate thread, which would start once, when the component is loaded, create Direct3D9 object and Direct3D9 device, then…

wl2776
- 4,099
- 4
- 35
- 77
0
votes
1 answer
D3D9 Alpha Blending on the surfaces
I have a surface (OffScreenPlain or RenderTarget with D3DFMT_A8R8G8B8) which I copy pixels (ARGB) to, from a third party function. Before pixel copying, Bits are accessed by LockRect.
This surface is then StretchRect to the Backbuffer which is…

Indy9000
- 8,651
- 2
- 32
- 37
-1
votes
1 answer
c++ directx 9 textute filtering error using IDirect3DDevice9::SetSamplerState
i have a issue when i use IDirect3DDevice9::SetSamplerState
void Draw(GraphicsDevice *gDevice, float gameTime)
{
// here's the problem
IDirect3DDevice9::SetSamplerState(0, D3DSAMP_MIPFILTER, D3DTEXF_NONE);
//Simple RGB value for the…

alabdaly891
- 159
- 1
- 8
-1
votes
1 answer
Does someone know of some fixed pipeline shader tutorial or samples?
I am making a game with 3d gamestudio a8 free edition. The free edition doesn't support shader, it only supports fixed pipeline shaders. There are some samples in the wiki of 3d gamestudio (click here) but I want to know of there are more samples…

Aaron de Windt
- 16,794
- 13
- 47
- 62
-1
votes
1 answer
AccessViolationException while passing byte[] or memory stream to external unmanaged method
I'm using SlimDX in a managed Windows application ( Win. XP, .Net 3.5 ). SlimDX handles all unmanaged DirectX API calls. I'm trying to call the following method found in SlimDX framework: SlimDX.Direct3D9.XFile.CreateEnumerationObject(Stream…

P. Avery
- 779
- 1
- 16
- 34
-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