I need to automate a build process that makes use of an app that initializes Direct3d as part of its initialization - even when it never needs to create a window.
I'm trying to automate this task using Windows Task Scheduler (on XP), and I've configured the task scheduler service to allow interaction with the desktop.
The problem I'm r...
This is a follow-up to a previous question I posted, this time with a better description, I hope.
I have made a pair of glasses that have a pinhole camera attached onto them that records the person's eye movements. The camera sits below the eye and is hence looking UP at the eye. There is also a slight rotation around the Y-axis (i.e. t...
Hi,
How is it possible to draw an overlay over an game with DirectX 9 or 10?
I found code with depricated DirectShow code, but it will not run.
Thanks for tipps.
...
There is a 2d-game based on Direct3D. This game has a lot of graphics and animations. What is the best way to extract animation image sequences from the running game (e.g. using memory dump)? Is there any special tools for such purposes?
...
Alright, so I wrote a custom VMR9 Allocator/Presenter which seems to work fine. However, when I attempt to copy video frames from the Allocator/Presenter surfaces into my application surfaces, the video appears to flicker. Audio playback is fine so I'm fairly certain it's not an issue of the machine being bogged down or anything. This...
An interesting bug came up that I'm having no luck with. In a windowed Direct3D9 program using native code, I handle a device lost using something similar to the following:
void MyClass::RecoverFromDeviceLost(LPDIRECT3DDEVICE9 deviceToRecover, D3DPRESENT_PARAMETERS devicePresentParams )
{
HRESULT hr = deviceToRecover->TestCoopera...
Hello I have taken on a spare learning project and I am tackling direct3d in vb.net
So far I have found initialization code and can draw a black screen or what ever color I want and I have played around with customizing things and learning about what I can find.
However my next attempt in my game loop is to at least render an object ...
Are there any libraries for loading and processing/disassembling the Direct3D (10,11) shader bytecode files generated by fxc?
I know that many developers (and hardware vendors) have internal tools to load and process the D3D shader bytecode formats, but since the shader bytecode format is private and binary-only as of D3D10, I wonder wh...
I use Sprites to draw images in a D3D window. I draw an image on every sprite within a rectangle (0, 0, width, height) and use Matrix.Transformation2D to place the image in the rendered view.
Example:
using (Sprite s = new Sprite(device))
{
s.Begin(SpriteFlags.AlphaBlend);
Matrix tranz = new Matrix();
tranz =
...
Hello,
I'm trying to read 3D models which were created for a DirectX applications, which are defined in the following way :
In the file header, the Flexible Vertex Format (FVF) of the mesh is given (actually, I have any combinations of D3DFVF_{XYZ,DIFFUSE,NORMAL,TEX1,TEX2} in the meshes I tested)
Then, n vertices are given in a linear...
Any idea how to do it? I am drawing a rectangle that is supposed to be a half-transparent window. I managed to do the transparency by drawing a half-transparent texture, but I also want to blur whatever is under the window.
Normally (eg. using GDI) I would create a bitmap of the area, blur it and paint it as the background of my window...
Do I need to use one vertex buffer per mesh, or can I store multiple meshes in one vertex buffer? If so, should I do it, and how would I do it?
...
So I'm trying to implement some Direct3D post-processing, and I'm having issues rendering to textures. Basically, my program looks like this:
// Render scene to "scene_texture" (an HDR texture)...
...
device->SetRenderTarget(0, brightpass_surface);
device->SetTexture(0, scene_texture);
// Render "scene_texture" to "brightpass_texture...
hai
When i am running the sample code from windows mobile 6.0 tutorial for creating a 3d device
am getting a message "operation cannot be completed the file cannot be found" ,i Am using visual studio 2008.In my computer "d3dmref.dll"is not existing.What can be done for this?
maya
...
I know mixing OpenGL and DirectX is not recommended but I'm trying to build a bridge between two different applications that use separate graphics API:s and I'm hoping there is a technique for sharing data, specifically textures.
I have a texture that is created in Direct3D like this:
d3_device-> CreateTexture(width, height,
1, D3DUS...
I'm trying to replicate the Photoshop filter multiply with Direct3D. I've been reading and googling about the different render states and I've got the effect almost working. The problem is that it's ignoring the alpha value of the textures.
Here's an image that explains the sitution:
http://www.kloonigames.com/petri/stackoverflow_doesn...
Hi,
I want to project a grid on the xz-plane like shown here:
http://habibs.files.wordpress.com/2009/07/2-1.jpg
To do that, I created a vertex grid with x and z range [-1|1]. In the shader I multiply the xz screen coordinate of a vertex with the inverse of the View-Projection matrix. Then I want to adjust the height, depending on the n...
I'm working on a 3d game just for learning.
I have a 3d world generated from a heightmap and various mesh based objects overlayed onto that world.
I want the player to be able to target objects in the world which I can do, but I want to draw a targetting circle on the terrain or object that the targetted thing is standing on. If you've...
I'm sure this is on the web somewhere, but I'm having trouble with the search terms (getting lots of non-relevant stuff.) Anyway, I've got a Direct3D9 application. When it runs in full screen, on Vista and Windows 7, and you hit Alt-Tab or Win-Tab, my application just shows up blank in the thumbnail/preview/live view (not sure of the cor...
What might stop IDirect3DDevice9::SetTransform from working? I've looked at alot of tutorials for using transformation matrices in Direct3D9, including this one here. And as far as I can tell, they all do it the same way.
I'm trying to write some code just to translate a texured polygon. I call SetTransform with a matrix initialized wit...