.NET 3.5 SP1 is here! It's time to break out your DirectX skills. This article provides the information necessary to get started using a new DirectX interop feature in WPF called D3DImage.
.NET 3.5 SP1 is here! It's time to break out your DirectX skills. This article provides the information necessary to get started using a new DirectX interop feature in WPF called D3DImage.
Normal maps are used for realtime 3D rendering (mostly in games) to improve the visual quality, but compressing them makes the 3D content look ugly, this tool helps to fix that problem.
This brief article describes how to use managed Direct3D to render texture bitmaps with alpha channels and transparency key colours onto vertices in C# with the aid of a MatrixStack.
Introduction to amplification and mesh shaders, the new programmable stages available in modern GPUs, and how to use them to implement view frustum culling and object LOD selection on the GPU using the Diligent Engine API
If you haven't looked at this, it's a good reference:Improving the Performance of Direct2D Applications[^]This one is also useful:Direct2D: Hardware Acceleration in Windows 7 Plotting[^][Update]For XP and OpenGL have a look at PicZoom: A Photo Viewer Created in OpenGL[^]Best...
There's isn't a best one. Which one is right for you depends on what you want to do.If you want to make games on a mobile platform, you'll probably want to do it in the languages best suited for the platform (Java/C++ for Android, Objective C for iOS, and C# (I think) for Windows Phones,...
GPUToaster is correct, this has been discussed @ the Creators Club[^]..X formats are not designed for "editing" type procedures, if you want to do this you will need to be working in DirectX, or OpenGl, NOT XNA. Xna is designed for displaying, not making.
Alternatives to enhzflep's solutions, if you don't have access to/want to change the texture ...1. Multiple textures - first is your map, second is your line2. Stencil 'Shadows' - render the line 'above' the map, then cast a shadow from it, perp'l to the mapagain, comfy chair, coffee
Hi,Nowadays technologies are so developed that they free developers from having to cover much of the 'technical' aspects of their job and let them concentrate on the core issues they have. One of such helpers is the core concept of object-oriented languages, and C++ too, which of course is -...
DirectX is the way alternative to GDI, a faster one. Moreover, even though GDI and DirectX can be used together, they poorly live together. To see it, it's enough to put some GDI object on top of, say DirectX-based video and see what happens. For resolving such clashes, a layout manager exists,...
Descriptors and descriptor heaps are key components of a new resource binding paradigm introduced in Direct3D12. This article describes an efficient system for managing descriptor heaps.
To learn how to create plug-ins for Windows Media Player, see the Windows Media Player SDK[^].This should outline what you can and can't do with a plug-in in WMP.
Which version of the DLL that your program is using depends on which build of the library your program actually linked to.You may either need to check your linker settings and make sure that in Release you are not linking with the debug lib or check your code for any #pragma comment(lib,...
will my final resulting .exe still work on an end user's system using the latest (2010) DirectX end user runtime?Yes. When you link with a .lib file it is actually put into your .exe or .dll fileFunctionality from previous versions of DirectX are always available in the runtime for...
Most likely you forgot to provide the corresponding .lib file in the Link tab of your project properties.Find out which .lib you need for this interface and just fill it in the Link tab.Otherwise, it might be a version issue: check that the version of DirectX you use in your code matches...
Here's a post with someone who had the same problem:http://www.gamedev.net/topic/7112-linking-error--iid_idirectdraw2/[^]It mentions what .libs you may be missing.
Without knowing the software, or the brand of the projectors, it's impossible to say that there is an available SDK that provides this functionality. It's entirely possible that no provision has been made to control this aspect of the projectors.I'm assuming that the connection between the...
So run it under the debugger and make sure all of the pointers are valid (not null). The error you cite generlly means you're either accessing a null pointer, or overflowing a boundary.
XNA will not help very much if you have a WPF application. There are two problems which are not easy to overcome1) WPF applications are event driven while XNA applications run in a continuous rendering loop. Getting those two worlds together does not work out of the box. You will have to...
If you want skills that'll translate into the games industry on desktop computers NOW then learn C++ and about DirectX on windows. Every games shop I've worked in has been exclusively C or C++, apart from mobile phone games which were J2ME.One problem with C++ is that consoles (apart from...
Hello. I am currently working on a rendering engine which is meant to render character animations. Right now I am working on vertex blending to make the body parts move with the bones.For each vertex declaration, I have a short that represents the first bone's weight, and 2 shorts...
No, there is no general solution to this via DirectX.The reason for this is that the Window you're trying to capture may have no existance in DirectX at all. If it belongs to an application that doesn't use DirectX then from the DirectX point of view there is nothing special about that area...
Hello,I'm a high-school student seeking to learn about 3D programming. I have experience with C# and C++, OOP and more.I don't have any intentions of making high-grade stuff with 3D, but I do want to learn something that I might use in the...
Hi,I would suggest you to visit the following links to know the difference between WPF, DIRECTX and XNA.http://forums.xna.com/forums/t/5278.aspx[^]http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=257213&SiteID=1[^]Hope this helps ...
AFAIK the vertex buffer cannot be read back. If you are trying to modify the UV sets then try duplicating Buffers. Because you will not get any performance difference.Try using search engines. :)
Use XNA, this has all the stuff that you need without going into the 3d portion of the API..and in the long run if you want to do things like sparkles, music, explosions.. or whatever else to augment your game you would have easy access to that stuff through XNA.GDI, and it pains me to...
The answer is simple: you can't.At least not the easy way. The Viewport3D control makes it possible to display 3D content in simple way, but there are many restrictions. For example it's not possible to draw lines (thus it's not possible to render a wireframe object, although there are...
Nothing against XNA, but WPF would be better for this. A card game may need not much of a GUI, but some may be needed and that would be a pain, especially for somebody who just got started.With WPF you get the user interface and also the cards (including transformations) with far less overhead.
What all tools are available for porting Windows-based Active X control which uses DirectX, to Linux platform? I have explored to some extent and zeroed onto two options - WineLib and JAVA. Which one is better choice? Are there any other options available?
Hey guys,I am trying to play a video in a Form with DirectX 9 but it doesn't work. :(I have no experience with DirectX so I thought I have to start with a simple videoplayer.I've got a video in my "Content" folder of the project which conatins an ".avi" file.Heres my code:private...
The Loader lock exception is pretty common in VS when you use DX 9. In your project properties see the exceptions dialog and disable that exception. If you have no other exceptions in your application it will run fine!Good luck!
You can find how a linker works in any decent book on system programming.Here is a nice simple introduction, but you won't see much detail: http://en.wikipedia.org/wiki/Linker_(computing)[^].Main idea of behind a traditional linker is separate compilation. A separate units of code are...
I’m trying to make a very simple application which would display different images on each eye. I have Asus VG236H monitor and NVIDIA 3D Vision kit, the stereo 3D shutter glasses. The I’m using C#, .NET Framework 2.0, DirectX 9 (Managed Direct X) and Visual Studio 2008. I have been searching high...
Just as an experiment try using:CheckDeviceType( D3DADAPTER_DEFAULT, D3DDEVTYPE_REF, D3DFMT_X8R8G8B8, D3DFMT_X8R8G8B8, false );The reference device is just what it says it, it should behave exactly the same as a fully compliant DirectX compatible graphics card. If CheckDeviceType works...
I happened to give some answers based on my joystick experience recently. It is not very trivial matter.Please look at them:How to Interface Joystick to WAF[^],How to Interface Joystick[^],Creating A Joystick Event?[^].Not everything is exactly relevant to your problem but very...
Addition to Dave's answer.Found a bunch in CPHuman Emotion Detection from Image[^]Pupil or Eyeball Detection and Extraction by C# from eye image[^]Face Detection in C#[^]Face and Eyes Detection Using OpenCV[^]Efficient Face Detection Algorithm using Viola Jones method[^]Face...
The following links might help:http://www.daniweb.com/software-development/cpp/threads/275082[^]http://www.toymaker.info/Games/html/directx_9_0c.html[^]http://www.drunkenhyena.com/cgi-bin/dx9.pl[^]
I have found the problem.This is the solution. (you don't find any solutions for this problem). private Device device; private Texture texture; private Material material; private Sprite sprite; Surface s; SurfaceDescription...
Do you mean you need to rotate an image? Use OpenGL and let your GPU do the work.If you're writing high performance image processing software, then I'd recommend that you learn OpenGL or DirectX and one of the GPU Technologies like OpenCL, DirectCompute, and or CUDA.CUDA seems to be the...
hello , i had a project from VS2010 and i want to compile it in VC6 for supporting winXP, i had used DSound in my project , when i include dsound.h it was something wrong , the error is : d:\program files\microsoft visual studio 10.0\vc\include\vadefs.h(48) : error C2144: syntax error :...
Sorry, your questions and comments (please see above) suggest that such problem is well above your head. You need to pick much simpler assignment.Let's start from the input which is other than MIDI. The input is the digitized (sampled) dependency between the current in the coil of the...
SA, don't be so sarcastic :)Why don't you download this software[^]? With this you can make any 3D models you may need and export them to DirectX or many other formats.The dowside is, that you will have to read the manual and practice a while before you might come up with a model that is...
This is how it is done in c# for directx 9, 10 and 11:http://spazzarama.wordpress.com/2011/03/14/c-screen-capture-and-overlays-for-direct3d-9-10-and-11-using-api-hooks/[^]Here an article that also has a vb.net example:Capture Sample with DirectX and .NET[^]Good luck!
I can think of 3 solutions for this task. Don't know which would be the best/most appropriate for your needs.1. Use the logical XOR operation to non-destructively draw the line. Repeat to remove line.2. Load the image, draw over it, re-load when line is no longer needed3. Load the...
Here is a site for programming games in C# and XNA: http://www.freewebs.com/campelmxna/tutorials.htm[^]. It is not very hard. A group did a simple game program at my school using C# in only a week or so.
There is no comparison. Media Foundation is the next generation multimedia platform for Windows that enables developers, consumers, and content providers to embrace the new wave of premium content with enhanced robustness, unparalleled quality, and seamless interoperability.DirectX Video...
You not mentioned what type of application you need to embed it,here's some for you..http://www.dotnetspider.com/resources/42801-How-Play-Videos-C-NET-WinForm.aspx[^]http://www.dreamincode.net/forums/topic/111181-adding-video-to-an-application/[^]
You should have an underlying data structure with methods to change the data. Usually that is called the business logic layer.It should also declare and fire the appropriate events to inform your UI of any changes.[Edit]It's done something like that:public static class...
You might want to look up the Windows MediaFoundation API if you're a COM/C++ developer which is the way DirectX works best. There is a sample media player that goes with it that is really small and simple and plays swf files. I know I have it somewhere because I was using it as a reference...
Please see: http://www.codeproject.com/search.aspx?doctypeid=1&q=%28Webcam+OR+%22Web+camera%22+OR+%22USB+Camera%22%29+%22.NET%22[^].You will find some decent solutions.—SA
"How to draw sprites, lines and texts, etc... more faster in 2D?"I asked this question.Someone told me "Use shader"But I have no any knowledge about shader :SSomeone know how to apply shader to render more faster?Please answer
I am trying to create directshow virtual source filter. Which is to deliver the video sample of what the renderer currently displays. Exactly like what e2evcam filters does. I tried using the sample of push source filter example from the sdk, its accessing the image from the particular location...
Given the plane vector [n] at a given point [p], and you have an object model at the absolute origin, and you want to render the object at point [p] aligned with the plane, then you must find the following transformation:T1 = rotate the absolute x-z plane around the absolute y-axis by the...
The Murl Engine is a fresh and free solution for cross-platform development. It is focused on games and multimedia applications and is currently supporting Android, iOS, Windows, OS X and Linux* platforms.
Easiest way is to use the WindowsApiCodePack, which will let you just ask windows for the duration - there is a description of how to do exactly that here: How to get the length (duration) of a media File in C# on Windows 7[^]
As a follow-up to Adaptive Volumetric Shadow Maps for DirectX 11, we present a port of the same algorithm adapted for Android devices that support OpenGL ES 3.1 and the GL_INTEL_fragment_shader_ordering OpenGL extension.
Have a look at this: VipsWiki[^]According to the author "It will automatically load, process and write an image in sections using many CPU cores" - so it hopefully should help you. (Libvips - VipsWiki[^])I haven't tried it myself, but it's probably well worth a look.
Ummm...it seems you have no idea how .ZIP files work. Either that or you're doing a terrible job of describing the problem. The original path is not saved in the .ZIP. If you add folders to a .ZIP the RELATIVE path is saved. That means the files are unzipped to a path relative to where the...
This article describes several strategies to update GPU resources in Diligent Engine (a modern low-level graphic library) as well as important internal details and performance implications related to each method.
This article introduces the problem of resource state management and synchronization in modern graphics APIs such as Direct3D12 and Vulkan and describes a solution offered by Diligent Engine.
I notice that you did not set your normals, they are all zeroes. You can try setting the topology as trianglelist before setting input layout. direct3DDeviceContext->IASetPrimitiveTopology(D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST); direct3DDeviceContext->IASetInputLayout(mInputLayout.Get()); ...
Your question is totally unclear :confused:. Could elaborate a bit on what you are trying to achieve (and please don't rephrase your question in another, provide additional information).
that is:there're two storage formats of .x file(txt and binary ),and now i have txt storage format .xfile,which starts as follows:xof 0302txt 0064Header```and what i want to say is:how can i get binary storage format .x file from the txt storage format file?like this:xof...
hello, can someone help me with this?i am new in programming :(( now, i try to use directx for my gamei found the problem that the display picture is blurscreen doesn't show clear image.first, i compared with my previous program which doesn't have any problems.i found that my...
hello,can anybodody suggest me about scene's management,please?usually, i use if statement and flag to control scenes.however, when objects are too many, my way is kinda of messy.then, i think of use pointer to point function buti am not good at pointer, kinda of confusing.in...
extern IDirect3DDevice9* g_pd3dDevice;void MainFrame::TakeScreenShot(){ // f***ing find a way to do this alreadY GRR O_O IDirect3DSurface9* pSurface; g_pd3dDevice->CreateOffscreenPlainSurface(800, 600,D3DFMT_A8R8G8B8, D3DPOOL_SCRATCH, &pSurface, NULL); ...
Hi, I'm working on a small project C# project where I want to play MP3 files on a specific output device. I already found a project here where this was possible for WAV files using DirectSound (The ultimate Managed DirectSound 9 Tutorial. Part 1: a full introduction to Playback[^]) but this...
I don't think DirectSound has any built-in MP3 decoder. You'll have to use a third-party library to do that. The BASS audio library[^] has a good reputation and a .Net version that you can use.
downloaded the VideoCapture tutorials, opened tutorialDS3.zip, but cannot build it because the csPlayCap.resx file is missing. Any help locating it will be deeply appreciated.Thanks in advance.jmealing3@verizon.net
My bad! There are no controls on the form, so just create a dummy project with an empty form, move the form to the correct directory and rename it to csPlayCap.resx. The tutorial grabs the camera output and streams it straight onto the form. :sigh:
Hello!I have texture from png-file with alpha channels. I draw these texture as sprite.On the emulator everything works very well, but on the device i get full transparency or non-transparency. Alpha values larger than certain value (about 30) will all interpreted as...
I checked DirectX on WM 6.5 emulator. DirectX works bad on it too.It means that Sprite don't draw alpha on WM 6.5.Does anybody know how to solve this problem?
you can use scene graphs to manage your scene..this can be helpful for you to render specific objects..you can use libs like open scene graph and many available on interenet.
I am having with this code. Any idea?using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;using Microsoft.DirectX;using Microsoft.DirectX.Direct3D;namespace RailwaySimulator{ public partial...
Where is the error actually occurring?Is there any more information with the message, or just "Error in the application"?Is it on any particular line? Or does it just happen as soon as you start to run the app?Have you tried putting a break point at the start of Main, and single stepping...
I want to know whether directx support to play sd audio file?for details: DirectSound has a interface of IBaseFilter that support to play WMA file(by CLSID_CAsfAcmHandlerObject)、support to play Wave file(by CLSID_WAVEParser),then support to play sd audio file(by what???)
I actually just have a rather small question, but I have had the HARDEST time finding information about it.Assuming we have a 3-axis joystick being connected via USB to a Windows XP computer, and it is being handled by directx, my question is how is the data for the axes...
This is a problem commonly called as Hidden Line Removal (HRL). There there are trivial tricks to simulate HLR (in OpenGL), one of which is using polygon offset and drawing the offseted object with background color in solid mode and the original object in wireframe mode. However this will...
To find information regarding the DirectX SDK and Windows Media Format SDK a quick Google (or Bing) search finds the MSDN pages for them which also contain sample code;Windows Media Format 11 SDK[^]DirectX Developer Center[^]Also a quick search of this site found;Various methods for...
Hi All,Basically im trying to make something the same as the below project.Play Audio Files with DirectSound and Display its Spectrum in Real Time - Part 3The main difference is that where he plays an mp3, wav etc file. I want to capture the Audio Output and use that instead (while...
. "BADIMAGEFORMATEXCEPTION". is not a valid Win32 application. (Exception from HRESULT: 0x800700C1). this exception occurs when i m trying to run my code. i m using visual studio 2005. i have included all namespaces required. but i m not able to include certain dlls i.e ...
Hi,I have written a simple app using DirectX 10. Everything works fine. But I have moved my app to other computer and try to run it. Then info has popped up that I need a D3DX10d_42.dll file. I don’t want to install DirectX on that computer. So I have copied this dll and it's fine. My...
Hi I am new to C++ world, I am trying to compile a project which is developed in 2000, which works in directx9.0.I am getting fatal errors c1083:fatal error C1083: Cannot open include file: 'dxerr9.h': No such file or directory fatal error C1083: Cannot open include file:...
HelloI am trying to make a fullscreen DirectX application with C#. In my mainloop I call Application.DoEvents() that Windows can process the KeyEvents... If I do so, I get a "InvalidCallException". I don't have the problem when I run the application in non-fullscreen-mode.Could anyone...
Can you take out the Application.DoEvents() call and have it work in full screen?It you can't, then you need to change your present parameters.Ex.presentParams.Windowed = false;See the following link[^].It might help if you provide more information on the exception as well.
If I ommit the Application.DoEvents() call, the app is working in fullscreen mode, but the OnKeyPress(KeyPressEventArgs e) is not working anymore since windows seems not to have any resources left vor event-handling.If I turn on the Application.DoEvents() call, I get this...
Hi, I am trying to work in project which was developed in 2000, in VC++, when I try to build the project in VS2008, I get multiple error related to directx, i added path to directx through tools-> project and options-> VC++ directories, adding path to directx. Stil I get numerous errors...
muralekarthick wrote:Error: 108 fatal error C1083: Cannot open source file: '.\dsutil.cpp': No such file or directory c1xxWhich part of this message do you have a problem with? You have the expected path, the name of the file and the fact that it is not where the compiler expects it. Take a...
In Win7 touching edit box on screen then I can get a small picture to let me call osk (on screen keyboard). But in DirectX app all objects are pictures not true edit box, so I get nothing. I can just call osk by ShellExecute, but I want like an usual app in win7. So how can I call osk in DirectX...
Wiki[^] says yes:Wikipedia wrote:OGRE is fully multi-platform, with OpenGL and Direct3D support. It can render the same content on different platforms without the content creator having to take into consideration the different capabilities of each platform. This reduces the complexity of...
Hi, I tried to recreate the BitmapMixer sample from Directshow.NET in VS 2010 (The original sample works fine) and got the following errors in the Form1.csError 1 The name 'MainForm_ResizeMove' does not exist in the current context C:\Documents and Settings\TLNA\my documents\visual studio...
I got the code below from the bitmapmixer sample (DirectShow.NET) and i tried to reimplement it. The original sample works fine. In my version when I try to compile i get errors.private void AddHandlers() { // Add handlers for VMR purpose this.Paint += new...
Your previous question already covered the problem.All the methods and/or names present in the error messages need to be reachable by the compiler either through definition in your code or by reference to the assembly and namespace.Cheers
Ive tried out using the direct3d classes for the first time. My goal is to create a 3 dimensional land where you can basically walk around (what they call camera views). How do I initialize a class in where I can just write a code like the Gdi drawing surface actions? You dont need to give me...
Hi Everyone.Im building an project using Visual studio 2008 express c#. Basically im trying to catch audio via directsound on Window 7 x64 using the below code but it is giving me the error:BadImageFormatException is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)Can...
Hi Daniel, I would like very much to try your DirectShowTutorials but the file which I have downloaded from codeproject.com I cannot open, probably it is corrupted. Please could you send it me. Many thanksJano Kluson[Email-id removed to avoid spam]
It looks like you want to ask this question to an author related to his/her article. I would suggest you to please use the forum present at the end of the article in order to reach author and get quick response. Rarely you will find authors reading this forum. Please post the same at the...
you use slimdx : http://slimdx.org/you have to get the handle of the form / usercontrolyou couple the eventsyou then create the device using that handleyou have made a gameloop (build/render/messages/handle events)you have create a custom interface for each object (like a 3d...
evening,I'm not good in english, so I try to explain my question as simple as I can.I got a .x format mesh which was exported from 3ds max, and used uvw onwarp mapping.Could I get the w value from vertex buffer when I load this x file into memory?or any other way to get...
how do i switch the lights ?? the code for this proj is below.//main.cpp#include "base.h"int starttime = 0;bool btype= true;bool btorus = false;bool bsphere = false;bool bcube = false;bool bteapot = false;bool bcylinder = false;int dirx;int diry;int...
In reference to Rob Graham: Hmmm, I googled this "attempting managed execution inside OS Loader lock" problem and found this answer in CodeProject!!!!!Anyway, I had the error message on another third product DLL. My program had been compiling and working fine. Then I did a full build and...
Hi,I want to program a simple card game in VB.NET. When I first did it in 2003 (In regular VB) I used PictureBox. But now a want a bit more advanced version were cards can rotate. The more I look into the subject the more I get confused. GDI is more advanced but does not have rotation....
I have read presentation from NVidio about NVidia 3D Vision.I have got monitor, video board, glasses.I use the render video filter to display video in full screen with the simple video player.In this filter the image is drawing using Direct3D surfaces.I load it from IMediaSample to two...
Here is what is expected by enquirers:1. TRY first what you want to do!2. Formulate what was done by you that looks like an issue/not working. Try them and tell if you face issues.Members will be more than happy to help like this.
There are Primitives types enum in DirectX that contains Point, Line, LineList, LineStrip, Triangle, TriangleFan, TriangleStrip...I can find only Triangle in WPF 3D.Then how to draw point, line , or wired object using WPF.If I do not supply material then I cannot see anythingThanks
My second filter displays stereo image, when video consist of two images: left and right together.The question is: "Why sometimes aplication hangs when switching mode to windowed on the line with gImageSrc->Release();?"The code of rendering function is here:HRESULT...
Hello.I have an error, when switching to winowed mode, in the line, where the surface is releasing:gImageSrc->Release();Can you help me?The surface is IDirect3DSurface9* gImageSrc = NULL; local_handle_result = direct_3D_device->CreateOffscreenPlainSurface( ...
Hi,Thanks for suggestions. I checked all the rules for stretchrect and following them also. Here after creating the plain surface i tried to write as image file, its also not coming correct as the main screen. some junk data is coming with the main screen data. Not getting where i am doing...
hi,ss i checked the surface modification and i was able to see the changes by saving to the .jpg file also. ones i come to stretchrect method i am getting the error.One more doubt I have if I take a plain surface object, is that object contains the updated surface or its an just a plain...
I make video renderer filter with saving video resolution of video film. In windowed mode it works fine. In fullscreen mode (NVidia 3D Vision) image is rendering in the center of screen with source video resolution of video film with half of the width of source video film, when the images are...
Hi,I am using directx graph plotting in my wpf application. I am using using D3DIMAGE for using the directx screen in wpf window. But i am facing the flickering issues for the Menu's that fall under directx area.If any of you faced and solved this problem please give me suggesion.Thanks...
I have used local_handle_result = direct_3D_device->CreateRenderTarget( local_view_port_size.cx*2*ratio_x, local_view_port_size.cy*ratio_y, D3DFMT_A8R8G8B8, D3DMULTISAMPLE_NONE, 0, TRUE,...
Hi,I am developing a DirectX application in C# and I want to draw a Mesh object which is composed of about 240 vertices. I use DirectX 9.0c. Although, I have enabled AutoDepthStencil, and I clear my ZBuffer properly, I get an incorrect visual result. Some of the surfaces, that must reside...
Actually, cull mode is CCW. And I ve created mesh data and normals for that cull mode. There are two images which show the screenshots of problematic render. Below are the links:The front view of the object : http://img152.imageshack.us/i/frontb0.jpg/The rotated view (which is obviously...
Hi Guys,I'm porting a video capture project from c# to vbnet, but i've some problem to understand this code and i can't to translate to VBNet.I'm using DirectX.Capture and DShowNET librariesThe original code and sample is...
Should go something like this:private Sub button1_Click(object sender, System.EventArgs e) handles button1.Click AddHandler me.capture.FrameEvent2, Capture.HeFrame(this.CaptureDone) me.capture.GrapImg()End Subprivate Sub CaptureDone(System.Drawing.Bitmap e) ...
Hi John, i tried your solution but the debug says this error:AddHandler .CaptureInfo.FrameEvent2, AddressOf.CaptureInfo.HeFrame(Me.CaptureDone)'HeFrame' is a type in 'DirectX.Capture.Capture'Argument not specified for parameter 'e' of 'Private Sub CaptureDone(e As...
Why IDirect3DSurface9::LockRect works very slow?What parameters should i use to make IDirect3DSurface9::LockRect work fast?I use Render Target surfaces because of StretchRect.
I have used DYNAMIC texrures (D3DUSAGE_DYNAMIC) for 1 call. So i have got 34 % speed increase.local_handle_result = direct_3D_device->CreateTexture( cxImage, cyImage, 1, D3DUSAGE_DYNAMIC, D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, ...
Your issue has to do with the instance of class video. You have tell it where it can render the video (video.Owner = ). Second the code you posted looks a bit weird as the declaration and initialization of Video v is inside the class and not inside a method. I don't know if that was what you...
Fast gdi animation:http://www.daniweb.com/code/snippet241875.html[^]If that doesn't help you can try to create a wpf UserControl and use System.Windows.Forms.Integration.ElementHost to integrate that with your forms application. Slide.Show[^] could be used as a starting pointIf you...
How can i present 2 video images with NVidia 3D Vision for DirectX 10 and 11?For DirectX 9 it works.Stereo 3D NVidia 3D Vision is enabled in control panel.For 3D Video with DirectX 9 there is a presentation.What about presentation about 3D Video with DirectX 10 and 11?
I am using DirectX.Capture and DirectShow. Using existing project DirectX.Capture Class Library[^].I want to add water mark in it. Is it possible? If yes, how?
There is no such thing as "crashing". What exactly happens and when? Catch exception, dump exception information, make sure you indicate in what line(s) exception is thrown. What do you mean "again"? Release is not called when m_3d_device is NULL; when it's called on already released problem,...
Hey i m using this project DLL Source For Buffer-based MP3 Decoding[^]to decode a mp3 in a livestream and so i want to play it. but how can i write the output to a stream in directsound. Please help i cant find anything... have been using google 4 four days now
I suggest you use pure WPF 3D capabilities instead.It is not clear why using interoperability (System.Windows.Interop.D3DImage). However, if your still need it (legacy or other reasons), you need to show your code.—SA
HiI'm beginner in game programming and I need some good resources to start(some books or video tutorials and examples). I need the fastest way to learn it(XNA and DirectX games or even something else). So if you can give me something to start with fast I'll be grateful. Yeah and I would like...
I need a function that return if a certain point is inside a directx 3d model(.x)...I have tried but i can´t get it to work so i need some help.Something like this:public bool IsInsideModel(Vector3 point, Model model){ //This would of course be nice but i don't think such...
The good news: it can be done. The bad news: A precise test is computationally expensive and therefore probably too slow to be of any use in real time rendering.First off, it works only on convex objects. Concave objects would have to be broken down into two or more convex objects and then...
Hello all,I have search everywhere. I am trying to create a joystick event similar to a mouse click etc but all I can find is joystick polling (using a timer to check the state of the joystick.)I am using vb.net and DirectX input. Is it possible to create a class that can create a...
DirectX input for joystick work is a different way. You can create an Event (EventWaitHandle for .NET API) object which is set by the joystick driver interrupt on every input event. You can write code which fires events.Here is how: Create the input event object. Create a thread; in this...
Its a long time ago at DX7. At this time we have to gain a new back- and frontbuffer if the viewport size has changed. But thats no problem: the meshes and textures still exist anyway.But dont ask me for code, im afraid that i couldnt find it.Regards.
private void openMJEPGFileItem_Click( object sender, System.EventArgs e ) { URLForm form = new URLForm( ); form.Description = "Enter URL of an MJPEG video stream:"; form.URLs = new...
The only feesible solution I was able to find was to combine the two classes. If anyone else finds a better way PLEASE let me know I like to keep my code compartmentalized(or however you spell it).Thanks again for taking a look at my situation and thank you Richard for your help.--Steve
I should only add to the post of krmed that this linking libraries are called: - static link library - MSDN: When an application uses a function from a static-link library, the linker copies the code for that function into the application's executable file, and - dynamic link library (DLL) -...
yes, but with a different approach. A pixel shader from what I have read takes 1 pixel in and provides either none or some pixels out, whereas your function modifies a whole surface at once. The actual pixel shader function would effectively do one iteration of the outer loop; and global...
Hi, I wanted to find a way to capture DVD/CD playing video data before actually it gets displayed. I have read some where that using direct-x we can achieve this but not sure. Please let me know if it is possible.Any pointer or hint will be highly appreciable.
How can Direct2D and Direct3D can be alternative to each other? (Yes, I would recommend usign Direct2D and/or Direct3D.) It depends on character of graphics you want to create. Of course you can always model 3D objects and render them as 2D projections; depending on the problem, it may or may...
Hello,We had an application that used DirectDraw for drawing many pixels directly to the video memory at a high rate.As there is no more MS support for DirectDraw, we want to refresh this code.Does anyone any suggestion what is the best replacement? Direct2D? Dierct3D? DIB?We are in...
A friend of mine found the problem. The bytes in the stereo signature were in reversed order. Here is the correct order: byte[] data = new byte[] {0x4e, 0x56, 0x33, 0x44, //NVSTEREO_IMAGE_SIGNATURE = 0x4433564e; 0x00, 0x0F, 0x00, 0x00, //Screen width * 2 = 1920*2 = 3840 =...
I need to load a mesh(.x) file in vc++windows forms and display in the form window. Can any one guide me how to load and display (.X) files in vc++ windows formsThanks,Venky
Hi all,I am using directx to plot graph in WPF. Here D3dIMAGE i am using to render directx interface. My plotted graph is correctly visible in normal CRT monitor but same is not visible properly in Touchscreen monitor. Here vedio driver is same and board is same and only monitor is giving...
Do you use raw DirectX in WPF? Why? WPF itself provides you with everything to do plotting; its implementation is already based on DirectX. Just use WPF imaging capabilities and stay out of trouble.Plotting is a routine type of problems for WPF; WPF is perfectly equipped to solve...
Hi All.all of a sudden IDirect3D9::CheckDeviceType fails no matter what fomrat i give to it, even D3DFMT_UNKOWN.even if it says not supported, i set it to the format i gave to it aand it works.anybody know how to fix this?Many Thanks in Advance---edit---i tried using a slightly...
Hi allI was wondering and I know it is stupid but is there a way to make DirectX (directinput) not to see my mouse and/or keyboard, and I do not mean code wise like to code an app that doesn't use Directinput. I mean OS wise, to sabotage my PC so that any app using directinput can't see the...
I am trying to add a tiled texture to the floor. The texture does not show up, instead all the vertices are showing, and the ball now has a floor that follows it's bounce. Any help would be appreciated.//within winmain pGrid->CreateDirectXMesh(pd3dDevice); ...
I can't see what's happening inside of DrawDirectXMesh but If you can only see the vertex points instead of the actual faces that I can only assume it's rendering with D3DPT_POINTLIST instead of D3DPT_TRIANGLELIST. It might be easier to set up the vertices for the floor yourself and then render...
I set private Video MyVideo=null; .......(Omit some of the irrelevant) MyVideo.Owner = panel1; I want to play full screen by double-clicking to play goal, so with panel1_MouseDoubleClick () function to achieve, but in a real play, panel1 double-click event has been impossible, it...
I set the video's owener to a panel control.When I change the size of the control panel when I want the video aspect ratio remains the same.For example, the original ratio of 4:3 video to video, then I resize the control after the video playback screen size is still 4:3.Not filled part of the...
Hi there,I've just started using directx for my windows mobile application and i ran into a little problem that i could not solve so far.I'm trying to draw a polygon with complex coloring (like linear gradient) and i thought that if i create a rectangle 'behind' the polygon with the wanted...
C # video player by using directx, set its owener to a form panel control.I want to use the mouse hook to capture mouse double click event, but I do not know how to restrict in the playback screen when I double-click for the appropriate action.No matter where I am now double-click will perform...
OK i got a viewport3d and i have slimDX sdk, i searched through the code to know how to render the viewport3d using slimDX, and found nothing, basically i'm trying to hardware render a viewport3d which has some 3d object, to an image to save.or if anyone got a better solution than slimDX,...
I use C# and directx to develop a video player, I want to achieve the rotation, such as 90 degrees, 180 degrees so that how to achieve it? Thank you. I put the video owener set inside a panel control.
Hello everyoneHow do i access the TRANSFORMED pixel data for a texture, after it has been transformed by D3DXMatrixTransformation2D() and texture->SetTransform()?I'm trying to do 2D pixel perfect collision detection and it's impossible if you can only access the untransformed pixel data...
Let's put it this way: is it even possible to D3DXSPRITE->Draw to an off-screen surface? or just to the backbuffer?if somebody can link a tut or post complete code that'd rule
The Article is:DirectX.Capture Class Library[^]I could't find the DirectX.Capture.dll and DShowNET.dll dlls.Where can I fid it ?Thanks for your answers in advance..
You should post your question at the bottom of the article in question. It is good that you have linked to it, but the author will not see your question here unless they just happen across it.You may or may not get a response from him though, as the last time Brian left a message was back in...