directx

directx mouse click simulation

How can I simulate the mouse click in a directx application? mouse_event and PostMessage with WM_LBUTTONDOWN don't work... so it must be something to do with the DirectInput I haven't found out nothing useful with google, so you may be knowing the answer... thanks in advance //update I wrote the text wrongly, what I want is to make ...

OpenGL performance difference on Linux and WindowsXP

I've noticed that a OpenGL app I've been working on has significant performance difference when run on Linux vs WindowsXP. Granted, there are a lot of textures and shadow buffers but I would estimate that the app runs about 10x slower on Windows XP. Any ideas? Any suggestions for porting the code to DirectX? Can that be done easily...

DirectX Font tutorial that doesn't use GDI

Does anyone have any tutorials/info for creating and rendering fonts in native directx 9 that doesn't use GDI? (eg doesn't use ID3DXFont). I'm reading that this isn't the best solution (due to accessing GDI) but what is the 'right' way to render fonts in dx? ...

How can I get a vector type in C#?

I want to use Vectors in a C# application I'm writing, sepcifically a Vector3. What's the best way for me to get a Vector type without writing my own? ...

Keeping track of an objects local coordinate space

Ok, so - this is heavily related to my previous question Transforming an object between two coordinate spaces, but a lot more direct and it should have an obvious answer. An objects local coordinate space, how do I "get a hold of it"? Say that I load an Orc into my game, how do I know programatically where it's head, left arm, right arm...

Writing a DirectPlay lobby server to establish regular TCP/IP connection

Greetings! Firs of all, I don't care much about DirectPlay per se, and am fully aware it's deprecated. However, I am currently looking into it for a quite simple reason: I love the way it's integrated in XP's built-in Windows Messenger 4.7 (the "old" one). Frankly, I greatly dislike Microsoft's move of removing the DirectPlay lobby clie...

DirectPlay8 only lists DirectPlay8 lobbyable apps

Hi, I know DirectPlay is deprecated and unintuitive, and thanks for wanting to inform me of that :) Now that we're done with that: DirectPlay8 example "Lobby Client" only lists the DP8 lobbyable applications (lobby servers), which is on my machine only "Microsoft Portrait". Is there a way to get it to list DP7 and older lobbyable appl...

DirectX or OpenGL

If you were writing the next 3d graphics intensive application in C# (like a 3d modelling and animation software), which one would be a better choice? If we consider C# as platform independent, then OpenGL seems tempting, but what about the performance, etc? Since the used language is C#, the performance is pretty crucial to consider. ...

Multi-headed display system

What tools, APIs, libraries are out there that I could use to create a system capable of rendering hi-res 3D scenes in real time in a display made of 4, 8, 9, 16, etc screens/projectors? For a setup with 8 projectors I should go for clustered solutions or should I stay with a single node featuring 4 dual headed video cards? Does someone ...

Is the DirectX input the right choice for keyboard handling in games?

What is the prefered way of handling keyboard input in programs like games? Is directX input the easiest choice? What are the other options? ...

Comparison between XNA and DirectX (C#)

In terms of PC development (excluding Xbox and Zune), What is the difference between XNA and C# DirectX? Does C# DirectX have a significant advantage over XNA (in terms of speed, royalties, etc)? How are the two compared to the speed unmanaged C++ DirectX? Where is the industry moving in terms of game programming? ...

AVI texture in direct-x with sound sync

I'm about to add "render AVI to texture" to our engine to get videos into materials, and realised I haven't done any video decoding since the Playstation1 (argh) so would like to know if anyone has any suggestions on how to get an AVI's frames output to a standard memory buffer while also maintaining sync with any Audio that might be pla...

WMV Streaming of a DirectX render

I've written a real-time visualisation app in DirectX. The thing is, it should be displayed on multiple computers, as a videostream. I'm guessing WMV will be the easiest codec to do it in, since it's MS and all that. So, how would I convert a series of DirectX screengrabs to a fluent 30fps WMV video stream? ...

Playing transparent video over screen with custom user input handling

I need to play animated characters over the screen on Windows. Basically, it will be character video with transparency and only non-transparent parts should be able to accept user input (e.g. mouse clicks), all other events should be passed through to underlying window. I've made a simple transparent DirectX window with video in it. But...

XNA, direct X , OpenGL

Hi, I have been wanting to give game programming ago for a long while and never got round to it, and i have finally decided to give it ago. I have decided to try and create a simple to 2D platform game. I have had a quick play with XNA and I do like it. What i am looking for tho is a comparison between XNA,directx,OpenGL. mainly the stre...

What does matrix*vector mean in contrast to vector*matrix

if I do positionVector*worldMatrix the position is transformed into world space. But what happens if I do it the other way around (worldMatrix*positionVector) in terms of 3d space? I noticed the result is different to the first one. I already googled about matrix, math they explain a lot but not this one, at least I couldn't find it. ...

Can one make real games with XNA and C#?

Can XNA and C# be used to create commercially feasible PC/XBOX games? Is it the best approach for creating 3D games with C#? If not, what would be? ...

Weird vertexshader/pixelshader glitch

i've got a little problem with my water effect as you can see here, it doesn't show up the right way. another screen with a diffrent texture applied shows the error in the transform something more clearly my HLSL code: V2P vs(float4 inPos : POSITION, float2 inTex: TEXCOORD) { V2P Output = (V2P)0; float4x4 viewproj = mul (m...

Realtime 1394 firewire video in a WPF app via directx or other method

Are there any controls that anyone is aware of that I can use to stream firewire video into a WPF app. I do not need camera control or capture just the video. I need WPF hosting because I'll be adding WPF content on top. I was hoping that with the addition of having direct X surfaces in WPF something like this might appear. Ideally l...

Efficient Line Drawing In Direct3D (Transformation2D?)

Background: I'm using the SlimDX C# wrapper for DirectX, and am drawing many 2D sprites using the Sprite class (traditionally from the Direct3DX extension in the underlying dlls). I'm drawing multiple hundreds of sprites to the screen at once, and the performance is awesome -- on my quad core, it's using something like 3-6% of the proce...