Best way to display rounded corner image with sprite
I need to display image with rounded corner with sprite. What is the best way to do this. ...
I need to display image with rounded corner with sprite. What is the best way to do this. ...
I want to detour EndScene from an arbitrary DirectX 9 application to create a small overlay. As an example, you could take the frame counter overlay of FRAPS, which is shown in games when activated. I know the following methods to do this: Creating a new d3d9.dll, which is then copied to the games path. Since the current folder is sea...
Currently I'm using a pixel reader via AutoItv3 to perform some actions in a program that is running direct X; A game. Right now the program works fine but as an exercise I've been rewriting it in python. Right now I can do: import ImageGrab # Part of PIL image = ImageGrab.grab() #Define an area to capture. rgb = image.getpix...
I am trying to cut a mesh in half or at least be able to delete faces from it in real-time. How to go about doing this i wonder? Lock the vertex buffers, memset the selected face or vertex to 0, does not work for me. has anyone a solution or a tutorial on this i really want this feature in my program! Cheers ...
I'm trying to resize a d3d window from an external application, from my application. I can resize the window, but the d3d engine still thinks its 1024x768 or w\e res your running at. I was thinking a DLL inject, but how would i go about resizing the window. I did some research and i'm pretty sure i need to change the BackBufferWidth an...
Is there a set of documentation on DirectX (9 or above) that shows the objects, methods, properties, events and samlple code for the use of DirectX (9 or above) with VB.NET? The most recent SDK includes details for C++ and the "Windows DiectX Graphics documentation" file doesn't contain these details. ...
My situation is as follows. I make games that use fixed size backgrounds (say 800x600). When players go fullscreen in a widescreen monitor, I add black bars to the sides, to make sure the game doesn't look stretched. There are several ways to do this, though, and I wonder what's the best approach : 1) Find a resolution that closely mat...
I am a newbie to DirectX SDK, Platfrom SDK and DirectShow. I downloaded latest Platform SDK and DirectX SDK August'09. I tried to build sample project in folder: Microsoft Platform SDK\Samples\Multimedia\DirectShow\Capture\PlayCap\ And had following building errors: LINK : fatal error LNK1181: cannot open input file 'D:\Program F...
I have a multithreaded .Net C# application, it uses Direct3D 9/10 and XAudio2. (Direct3D is accessed by only one thread, same for XAudio2. Direct3D isn't the problem cause the error is manifest in either DX9 or DX10 mode without any change in its behaviour.) Sometimes (there are some areas that gives this problem randomly) this applicat...
I'm trying to create an application in C# that uses a joystick. I went to "http://www.codeproject.com/KB/directx/joystick.aspx" and basically copied the example exactly but I keep getting the follow error: "is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)". The application is currently a console app for testing pu...
Where else is the stream number used other than in these two places: GetStreamSource and SetStreamSource? ...
I've been having difficulty identifying the correct parameters for the PresentParameters and DirectX device, so that there can be both vertex-level gouraud shading and the use of a z buffer. Some triangle meshes work fine, others have background triangles appearing in front of triangles which are closer-to-camera. An example of this is ...
draw the two lines with intersect each other and need to find the intersect point in c# using directx? ...
In Photoshop you can control how pictures are scaled up and down as 'image interpolation', it has different options like 'Bicubic', 'Bilinear', 'Nearest Neighbour' and such. I was wondering if I could do something similar in DirectX? Basically if I slap a texture on a quad and stretch the quad how can I control how the texture on the qu...
I've been unsuccessful at getting a simple cube geometry with shading turned on to display correctly. This is c# code, but the values are being passed through SlimDX directly to C++ code. pParams.BackBufferWidth = 0; pParams.BackBufferHeight = 0; pParams.BackBufferCount = 1; pParams.BackB...
I have a renderer using directx and openGL, and a 3d scene. The viewport and the window are of the same dimensions. How do I implement picking given mouse coordinates x and y in a platform independent way? ...
Hi, I want to create a FLV stream generated from images taken from my directx application, to end up on a webpage. My current plan is (have been) to send screenshots as JPG:s from the dx app, to a client running on Linux. This client converts the JPG:s to a MJPEG stream. And ffmpeg converts the MJPEG stream to FLV - ending up in Flash P...
I have a renderer written in C++ and directX. I now want to write a (level / scene / UI) editor and if possible / realistic I would prefer to write the interface to my editor in C#/.net Is this at all feasible, without going down a route of managed c++? Can I expose the necessary interface from my renderer to a C# app, without managed...
How does one interface a joypad under Windows? Is there a WinAPI method, or must DirectX be used? Can anyone provide some pointers as to how to get started? Thanks! ...
Hi, I am working on a CAD application and thinking of using WPF for rendering my entities. But it seems like WPF doesnt support drawing 3D lines. Is there any ways for drawing 3D lines in WPF? I dont like to create a mesh for each line entity I need to draw as I am afraid, this would cause a major performance hitch for me as I would have...