Questions tagged [direct3d9]
167 questions
1
vote
1 answer
ASSIMP meshes with directx9
Sadly, this question was never answered..
I am trying to load a .X file [ or really any other ] of a model with ASSIMP.
This is the code I'm trying to use:
LPDIRECT3DVERTEXBUFFER9 vbuf;
IDirect3DDevice9* dev;
Assimp::Importer imp;
aiMesh*…

jtst
- 312
- 4
- 16
1
vote
1 answer
2D Programming with Direct3D 9 - Test image is distorted
I am trying to build a simple 2D game using 2D sprites with DirectX 9, and I'm having problems getting the images to come out cleanly. I'd like to load bmp images and display them on the screen as is (no interpolation, no magnification, no filtering…

8bitcartridge
- 1,629
- 6
- 25
- 38
1
vote
1 answer
Lightmapping with Voxel Geometry
I seem to be in a rut at the moment while writing the rendering side of my game engine. My original plan was to implement, at the very least, dynamic per pixel lighting with HLSL and having a light buffer communicate with the shader for a maximum of…

Joseph Pla
- 1,600
- 1
- 10
- 21
1
vote
1 answer
How to use windowless in Direct3D 9?
I know directshow could use windowless via VMR-9. VMR-9 is based on Direct3D.
Could I write a windowless application using Direct3D directly?

Dean Chen
- 3,800
- 8
- 45
- 70
1
vote
0 answers
Particle Blend Issue with premultiplied alpha
I was trying to save some texture from 3D rendering scene,and then get them to reuse.The big problem is that rgb value can not match its alpha value.I need some picture without black edge,so I must use rgb colors to divide its alpha value(Image…

April
- 11
- 3
1
vote
2 answers
Does direct3d initialize a newly created texture
if you create a new empty texture e.g. with
IDirect3DDevice9::CreateTexture
or
D3DXCreateTexture
Is it guaranteed to be filled with zeros - as it appears to me by testing?
Does anybody have a link to a statement from microsoft about this? I could…

Ole Dittmann
- 1,764
- 1
- 14
- 22
1
vote
1 answer
Hooking IDirect3DDevice9::EndScene method to capture a gameplay video: can not get rid of a text overlay in the recorded video
In fact it is a wild mix of technologies, but the answer to my question (I think) is closest to Direct3D 9. I am hooking to an arbitrary D3D9 applications, in most cases it is a game, and injecting my own code to mofify the behavior of the EndScene…

Mikhail Mozolin
- 71
- 6
1
vote
1 answer
Can StretchRect be used with DF24 or INTZ surfaces? Can DF24 or INTZ be multisampled?
Can you StretchRect from a DF24 into another DF24 (ATI specific)?
Can you StretchRect from a INTZ into another INTZ (nVidia specific)?
Can you create DF24 or INTZ as multisampled surfaces?

Suma
- 33,181
- 16
- 123
- 191
0
votes
1 answer
What is the scaling algorithm used by ID3DXFont?
I'm trying to complement ID3DXFont functionality, rendering the text to the texture and then ID3DXSprite.Draw()-ing it as needed.
Old (direct) way:
ID3DXSprite *sprite;
ID3DXFont *font;
sprite->SetTransform(mw);
font->DrawText(sprite, ...);
New…

himself
- 4,806
- 2
- 27
- 43
0
votes
2 answers
Multiple Direct3D 9 devices and Alt-tabbing
I have an application that creates a Direct3D 9 device in fullscreen mode and then starts presenting. At a later point, after having created the first device, I temporarily create a new Direct3D device in windowed mode (on the same thread but for a…

dreijer
- 654
- 8
- 22
0
votes
1 answer
buffering direct3d draw operations
The question is 2D specific.
I am a constantly updating texture, which is a render target for one of my layers. The update is a whole redraw of the texture and is performed by drawing sprites and outputting text. The operation is performed…

Ulterior
- 2,786
- 3
- 30
- 58
0
votes
1 answer
How to get an off-screen plain surface from 'normal' IDirect3D9Surface
I'm working on a media player with Media Foundation. I'm trying to use post processing with DXVA-HD. However, when I try to do a VideoProcessBltHD using the HD device, it fails with E_INVALIDARGS. What I doubt is it is not somehow working correctly…

mots_g
- 637
- 8
- 27
0
votes
1 answer
Can I run multiple parallel ID3DXRenderToSurface?
Is it possible to create multiple instances of ID3DXRenderToSurface and have them rendering in parallel in threads? It seems unlikely, but as certain aspects of DirectX are still somewhat boggling to me I figured I'd ask.
It's no big deal if it…

Khatharr
- 119
- 2
- 8
0
votes
1 answer
Why would IDirect3DDevice9::Release return S_FALSE?
When I call the Release method for my Direct3D9 device it returns S_FALSE but I can't find anything that explains why this value would be returned.
From what I can gather, S_FALSE means that it has succeeded but hasn't had to do anything but I only…

DrYap
- 6,525
- 2
- 31
- 54
0
votes
0 answers
Incorrect texture mapping Direct3D 9
I recently started learning Direct3D. Wrote my first program to read and display content from an .obj file. There was a problem processing the texture. It doesn't display correctly. What's my mistake?
Link to my program and test model -…

Dayer
- 1