Hello, So I was testing my matrix class and the results look questionable and the inverted matrix isn't returning the vertex to it's original value (a seperate issue). Given a perspective projection at 45 degrees with a near of 1 and a far of 1000, the camera at the orgin looking down z and a vertext along z axis at 0, 1 and 1000, What would their resulting depths be?

Member Avatar
Member Avatar
+0 forum 10

Hi, I have run tuner from DirectX filter graphs. My Tv Tuner Card does not provide I/Q samples(Low frequency) as Realtek RTL2832u based USB Tuners so i need to get RF samples directly from TV Tuner Analog Audio out pin and store it in hard disk for digital signal processing post processing. I am unable to find any information on this topic also the Directx (Graphedit) application does not allow TV Tuner output pins to be connected to its Sample Capture filter. Please provide info with source code example.

Member Avatar
Member Avatar
+0 forum 1

Hello, So I'm aware that OpenGL is Column major and DirectX is Row major, but how does that translate into a basic 1D array? So given the below visual matrix, what would the first 3 in the array of each platform and which 3 would be the x,y and z translation of each platform? |AA BA CA DA| |AB BB CB DB| |AC BC CC DC| |AD BD CD DD| What I'm trying to find out is if I was given a matrix pulled from either platforms, would a formula for one work with the other (x,y,z translation index stay …

Member Avatar
Member Avatar
+0 forum 4

Hello guys. I'm play a vide with Microsoft.DirectX.AudioVideoPlayback in C#. i'm tried to 'freeze' the last scene from video. I don't succeed, so I decide to show a picture with last sceen. And I don't succeed again. I have this code: private void button1_Click(object sender, EventArgs e) { Xvid.Owner = c1; //c1 is the panel, Xvid is the video; c1.Size = new Size(80, 80); Xvid.Play(); Xvid.Ending += new EventHandler(c1back); Xvid.Audio.Ending += new EventHandler(c1back); } private void c1back(object sender, EventArgs e) { c1.BackgroundImage = Xpic; c1.BackgroundImageLayout = ImageLayout.Stretch; } Anybody knows how can i do? HEELP :(

Member Avatar
Member Avatar
+0 forum 1

I wrote this function I plan on using to load in .obj files from Blender into a DirectX application. The problem I'm having is that when when the model is loaded, it appears that every other triangle face is missing in a pattern, for every quad, only 1 traingle is visible. I've been trying to debug it for a while and still can't find the issue. According to the debugger it's loading the exact amount of vertecies & faces as Blender says are in the model. I was having this issue before when using a triangle face method to load …

Member Avatar
Member Avatar
+0 forum 2

hi, i need to past *.x 3d model file into vb6 script. can someone recomend some comprehensively teaching online redaction about? it will be good if there could possibly find way of puting multiple objects in. ex three to see the regle. thanks, i will publish the resultats, for next discussion when passin through... :\

Member Avatar
+0 forum 0

I want t play a video in a Window in my C# application. Looking aroundthe Internet I've found some info on how to use DirectX to accomplish that. But I've also come across comments that DirectX is deprecated, meaning that it's no longer recommended as the way to play videos. So, what IS the recommended way to play videos in a C# application windows? In particular I need to intercept each frame of the video before it actually gets displayed.

Member Avatar
Member Avatar
+0 forum 1

Ok, so I'm not having a problem but I didn't know where else to place this question. I'm just now "re-learning" C++, I never got into GUI programming before and it's been almost 4 years since I last touched this language. Anyways, my question is simply, do you code a GUI or do you design it? What I mean by this is, there are a lot of tools out there with a nice design view of what you're doing. You can drag and drop buttons onto a window, you can drag and drop a browserController and a bunch of other …

Member Avatar
Member Avatar
+0 forum 3

Hi, Im using DX9c and learning from Frank Luna's book to try and handle OnLostDevice and OnResetDevice, when switching to fullscreen and back (and alt+tabbing). If I dont draw anything I am able to go from windowed to fullscreen, and back, with no trouble. But adding a draw and flush then pressing the fullscreen key causes the following msgbox error: (at the m_pSprite->flush();) > Unhandled exception at 0x56E5B1FC (D3DX9_43.dll) in DXTB 14.exe: 0xC0000005: Access violation writing location 0xCCD020CC. Although I do enjoy getting stuck on problems I have been rearranging my code and typing like a monkey for 1 week …

Member Avatar
Member Avatar
+0 forum 1

I am looking to develop a small development library that will enable me to speed-up construction of architectural and environmental visualisations (landscapes, cities etc). Super Graphical realism is NOT the priority, but i would like what i do to be relatively future-proof (i know how fast things change in the graphical world). The market for the visualisations this library will create is niche and hardware will be restricted to ensure working. My question, is whether using DirectX 8 is a good idea in terms of graphics cards in the future. I will have to update hardware / Windows in the …

Member Avatar
+0 forum 0

Hey Guys! I wonder how to put a texture on a specific position in DirectX. for example: I want a function that allows to set a Texture on an 2D Position and set the width and height like this pseudo funktion: x y w h DrawTexture(pDevice, 25, 25, 200, 100); Well, some Code: LPDIRECT3DTEXTURE9 texture = NULL; DWORD color = D3DCOLOR_XRGB(16, 16, 16); const BYTE Image[64] = {color,color,color,color,color,color,color,color, color,color,color,color,color,color,color,color, color,color,color,color,color,color,color,color, color,color,color,color,color,color,color,color, color,color,color,color,color,color,color,color, color,color,color,color,color,color,color,color, color,color,color,color,color,color,color,color, color,color,color,color,color,color,color,color}; void DrawTexture(LPDIRECT3DDEVICE9 pDevice, int x, int y, int w, int h){ D3DXCreateTextureFromFileInMemory(pDevice, &Image[64], sizeof(Image), &texture); //Some Magic :( pDevice->SetTexture(0, texture); } does someone has an …

Member Avatar
Member Avatar
+0 forum 1

Hi! I'm new in this forum. I was reading some other posts about Directx and so. Now I have a problem with Lightning in Directx. I wanted to do some graphics like minecraft's ones, with cubes. And when I got my cube class ready, i drawed one cube and that happend: ![box1](/attachments/small/3/box1.jpg "align-left") I have SetRenderState(D3DRS_LIGHTING, FALSE) set, so i dont know why this happens... Can someone help me? Why could this happen? Thanks!

Member Avatar
Member Avatar
+0 forum 1

Hello, I am currently building a rendering engine in native C++ using Direct3D 10 and the Win32 API. The engine will have 2 separate windows, one being the rendering window and the other being a control window which is used to load models, animaitons, etc. It is also used to send the rendering window to other displays on the system. Right now the program will use EnumMonitorDisplays to get all active displays on the system, then give the user the option to send the rendering window to any of the active monitors. It is currently able to show the monitors, …

Member Avatar
+0 forum 0

Ive just recently switched to visual studio c++ express. I am Creating some shapes with dx9 and i came upon this problem with my indices: error C2064: term does not evaluate to a function taking 24 arguments here is the code where i am getting the error: [ICODE]short indices[100]; indices[100] ( 0,1,2, 2,1,3, 4,5,6, 6,5,7, 8,9,10, 10,9,11, 12,13,14, 14,13,15 );[/ICODE]

Member Avatar
Member Avatar
+0 forum 21

Good day, geeky guys. :cool: I have some reactions and questions about DirectX and OpenGL... Suppose (for example only,) I was hired by a big game company to spearhead game developer teams then, I want the game we will produce, to make it versatile in any computer regardless of computer architecture and whether it's a PC or Mac. ...oh, yup. I was making a comparison. Because as far as we know, that most commonly, it's the DirectX that most games have been chosen. And currently used. But one day, when I was surfing internet (and Google searches) I came across …

Member Avatar
Member Avatar
+0 forum 6

I am learning directx from [URL="http://www.directxtutorial.com"]directxtutorial.com[/URL] and when I have compiled one of the samples and run it then close it I get an error message saying "Unhandled exception at 0x010a1883 in test.exe: 0xC0000005: Access violation reading location 0x00000000.". What does this mean? I have checked that I have typed out all the code correctly and that it's exactly the same as on the tutorial. Here it is: [CODE]#include <windows.h> #include <windowsx.h> #include <d3d11.h> #include <d3dx11.h> #include <d3dx10.h> #pragma comment (lib, "d3d11.lib") #pragma comment (lib, "d3dx11.lib") #pragma comment (lib, "d3dx10.lib") IDXGISwapChain *swapchain; ID3D11Device *dev; ID3D11DeviceContext *devcon; void InitD3D(HWND hWnd); void …

Member Avatar
+0 forum 0

Hello... I've been a VB.NET developer for quite some time, but I decided to start making games. I bought a book called "Begginig C# game development" by Ron Penton... I've read the first half of the book that's about how C# works and stuf, but in the second half we get into making my first game... Now, the problem is: he shows me how to make the game in Direct3d/DirectX but I only have XNA installed... I've heard that Direct3d/DirectX is becoming obsolete so I was wondering if what the book says still applies exactly the same to XNA, if …

Member Avatar
Member Avatar
+0 forum 1

Hello, I have what seems to be a very common problem but after doing much research and trying to fix myself, I am unable to resolve the issue. I receive the following error when compiling my win32, directx 9 program: e:\...\game.cpp(228) : fatal error C1004: unexpected end-of-file found I receive this error and a bunch of preceding syntax errors. This occurs in three different files within my project...I'm using visual c++ 2008 express and DirectX SDK 2010(june)...shouldn't matter... Here is the code from game.cpp: [CODE]#include "Game.h" #include "Entity.h" #include "dxManager.h" #include "diManager.h" /* Init the one and only ProjectManager */ …

Member Avatar
Member Avatar
+0 forum 5

I've been Programming in C++ for a year. I am done with Basics and all other OOP concepts(like inheritance,polymorphism and STL) I want to be a game programmer, but i don't know what to study now? I've heard about OpenGL, DirectX, GUI libraries as a result i m confused to choose which topic. Should I go for OpenGL or DirectX or GUI libraries or maybe something else. If you think this is too early for me to learn these things then plz mention a good topic to me. Thanks

Member Avatar
Member Avatar
+0 forum 4

I recently started reading Beginning DirectX 10 Game Programming written by Wendy Jones, and I'm about 60 pages in on the chapter about sprites, and I feel like I haven't learned anything, half the code they throw at me I can hardly decipher, and even if I do that, how am I supposed to remember it all? I feel like all I'm doing is copy-pasting without learning anything. P.S. I only have some basic C++ knowledge.

Member Avatar
Member Avatar
+0 forum 2

hi i am trying to make a program that whilst ingame (magicka if anyone is interested) reads what is pressed on the keyboard and the simulates a combination of keyboard key down and keyboar key up and mouse press. eg if i press NumPad0 it would simulate Key Press A, Key Press S, Key Press F or if i press NumPad1 it would simulate Shift Down, LButton Press, Shift Up i have already managed to read what is pressed on the keyboard and know just need to know how to simulate pressing my combination i have read about DirectX's SendInput …

Member Avatar
Member Avatar
+0 forum 7

Hi guys, I'm trying to hook the keyboard in vb.net. Who can show me an example where you press button "F2" and a message box appear (MsgBox("You've pressed F2")). I need to hook the keyboard to make some action when DirectX application is running (I've Already tryed with "registerhotkey" but do not works in dx app). Thanks in advance. P.S. Sorry for bad english...

Member Avatar
Member Avatar
+0 forum 4

Exactly that. Using NAudio or DirectX, can someone show me how to convert a wav file to mp3. Mp3 to wav seems trivial, but unfortunately i need wav to mp3. Thank you for your help

Member Avatar
Member Avatar
+0 forum 2

I know alot of you are gonna get mad that i started a thread on directX books when clearly at the top there already is a thread on direct X books, but this is different. I need books on Vector Algebra and Matrix Math/Algebra. I'm learning DirectX9/10 and i have to say its not going as smoothly as i would like it to. I'm looking to buy a book on amazon called... [url]http://www.amazon.com/Introduction-3D-Game-Programming-DirectX/dp/1598220535/ref=sr_1_2?s=books&ie=UTF8&qid=1301262072&sr=1-2[/url] That one... Is that a good book to start with? I'm comfortable with command line type programming. I've read C++ Primer Plus Fifth edition by Stephen Prata …

Member Avatar
Member Avatar
+0 forum 1

[code] 1>------ Build started: Project: DirectXtutrials, Configuration: Debug Win32 ------ 1>Build started 3/24/2011 5:24:05 PM. 1>InitializeBuildStatus: 1> Touching "Debug\DirectXtutrials.unsuccessfulbuild". 1>ClCompile: 1> main.cpp 1>ManifestResourceCompile: 1> All outputs are up-to-date. 1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup 1>C:\Users\Konnor\Documents\Visual Studio 2010\Projects\DirectXtutrials\Debug\DirectXtutrials.exe : fatal error LNK1120: 1 unresolved externals 1> 1>Build FAILED. 1> 1>Time Elapsed 00:00:07.66 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== [/CODE] So that's whats wrong with my code. The source code doesn't matter because i've tried multiple source codes and it still doesn't work. I'm trying to learn directX 10 and for …

Member Avatar
Member Avatar
+0 forum 4

Which one of these things are best for developing games or others? Which is easiest? Which one can you use to make some money off of?

Member Avatar
+0 forum 0

Hi guys, I'm planning to make a car game & for that I'll use Microsoft Visual C++ 2010 for programming, directX 10 for the graphics, & Nvidia PhysX engine for the physics. The problem is that I can't find any tutorial of directX and Nvidia PhysX, I only find of openGL and Nvidia PhysX and I would want any link for a tutorial or any example to download for Nvidia Physx and directX. Also, I would be grateful for any advice for this project. Thanks in advance for any reply.

Member Avatar
Member Avatar
+0 forum 5

So I have this problem, I have just started learning DirectX 9 with the Strategy Game Programming with DirectX 9.0 book, I have a header including this code: [CODE]class TileClass { private: int*m_iValue; int m_iNumLayers; float *m_fRotX; float *m_fSize; public: TileClass(); ~TileClass(); int iGetValue(int layer); void vSetValue(int value, int layer); float fGetRot(int layer); void vSetRotation(float fRot, int layer); float fGetSize(int layer); void vSetSize(float fSize, int layer); void vSetNumLayers(int layers); };[/CODE] And I'm including the header in my .CPP file, I have also included this code as the book told me to: [CODE]// Constructor TileClass::TileClass() { // Initialize internal vars m_iNumLayers …

Member Avatar
Member Avatar
+0 forum 2

Hi to all! I want to write a c# application that plays an audio/video AVI file, and shows in overlay an aplha rectangle realtime generated (from a serial port). I'd like stability and good performance and i'm evaluating various libraries (EgmuCV, DirectShow, WMP,...) but i've not decided yet. Please someone knows what the right way is? Thanks, Vanni

Member Avatar
Member Avatar
+0 forum 1

Hey I've just started using C# and wanted to start employing DirectX as well however before I can start all the tutorials I go to say I have to add a reference to the library. Now I've installed and reinstalled the June 2010 DirectX SDK a few times but the .dll's won't appear in the "Add Reference" table in Visual C# Express 2010. Please Help :confused:

Member Avatar
Member Avatar
+0 forum 2

The End.