Answer Questions
Maxime Bombardier Double buffering a panel in c++.net
Hi Im fairly new to c++.net and im writing an application which models little creatures represented by coloured squares which move around in a panel. Ive been having problems with screen flicker, and reading around it seems double buffering is the answer. Unfortunately though, I cant seem to find any help on implimenting it in c++ (seems to be lots in c# which I tried to adapt but it didnt work). Any help would be appreciated, especially if i ...Show All
draykula MDI application with Managed DirectX
Hello Please explain me how should I use Managed DirectX in MDI application step by step if it possible. I have done following steps: 1) In MDI parent window the 3D Device is created. 2) In new child window I create additional swap chain using parent window device. 3) On OnPaint event in child window following code is executed: Surface buff=this.FSwapChain.GetBackBuffer(0,BackBufferType.Mono); SurfaceDescription desc=buff.Descrip ...Show All
xBrioUser Re-using LPDIRECT3DSURFACE9 as LPDIRECT3DTEXTURE9
Hi! I have created a texture and as surface as hr |= D3DXCreateTexture( this ->direct3DDevice, ( unsigned int )img.sx, ( unsigned int )img.sy, 0, 0,D3DFMT_A32B32G32R32F, D3DPOOL_MANAGED, & this ->texture ); and a surface as : hr |= this ->direct3DDevice->CreateRenderTarget(( unsigned int )img.sx,( unsigned int )img.sy,D3DFMT_A32B32G32R32F, D3DMULTISAMPLE_NONE,0, true ,& this ->renderSurface0,0 ); I have render into my ...Show All
Thian DirectX/MFC with VC6
oh lord, what's the deal with you guys ! all i'm trying to do is get basic joystick control working in my mfc app. it should not be this hard! i was happy in vc6 and it all worked nice until i wanted to access directinput for the joystick. first i have to upgrade to the vc8 express because the directx libs that you provided to work with vc6 have corrupt debug information. then i fuddle and search for hours trying to get my app migrated to vc8 ...Show All
afrc2 Passing a reference to a function?
I'm trying to put all my device configuration in a separate class from my GameEngine class, but I'm not sure the best way to get the created device back. Currently I have a function that does the capatilities checking, creates the device and returns it. Is there a way to pass a device variable reference to the function instead of creating a whole new one in the function As opposed to creating a device, returning it from the function then ...Show All
Fawad Hamid Device Lost Problem
I am having a problem with losing the device that I'm not sure about. The window can be minimized, lose focus to another app, and be resized with no problem. The problem occurs if in WinXP the user hits cntl-alt-del and then goes back (either by canceling or by unlocking later). The device can't seem to recover properly from this. Sometimes I can even continue drawing to the device after coming back but resizing it immediately breaks it (when yo ...Show All
PaulTromans Force Feedback not working with Feb2006 SDK
Hi there, I just went out and bought a new Logitech "Rumblepad2" gamepad. I've installed the most recent drivers for it, and the Feb2006 DirectX SDK. In the control panel -> Game Controllers I can get it to rumble without a problem, so it does work. In there its possible to test at least 10 different rumble effects. I'm developing in VS2005/WinXP Pro. When I tried the MSDN example of force feedback (located here: http://msdn.microso ...Show All
Agony noob heP
hi... i whant to start game development, were do i start... i dont whant to start makein AOE III but just some thing that gets me on the right track, and that i can see progression Dang, Andy beat me to it. I think he's trying to steal my job N00bs are more than welcome here. Remember, EVERY single graphics "expert" was a n00b at one point or another. However, we _do_ recommend doing simple searches before posting q ...Show All
Ronald Wessels MechCommander 2 Fix Guide
For anyone who is interested in the MechCommander 2 stuff I just wanted to let you know I've posted a guide with all the bugs we've found in our Shared Source Release and how to fix them. You can find the guide at: http://blogs.msdn.com/mklucher/articles/629796.aspx If you have any comments please let me know! GameOS, Texture API.cpp, gos_UnLockTexture. The STOP if !IsLocked() is missing the actual argument (present in the fm ...Show All
TravisXXX D3DXSaveMeshHierarchyToFile dont save Texture
I'm saving my animation with D3DXSaveMeshHierarchyToFile Everything works perfectly...exept that the material as no texture I go to the file and define the Tiny texture manually in the material and all works fine I don't use the last parameters, I just put NULL It seems that others had the same problem, the material saved is not what is loaded... The last parameter seems complicated Is it maybe that the Mesh is not in the Frame Root But t ...Show All
klaser123 basic rendering problem with scene mesh
Hi, I am rendering my scene mesh finally thanks to two very helpful replies from this forum! :] Everything renders basically ok, but where the walls of my scene mesh's "buildings" meet the "ground", there are these waving rows of little triangles that don't render on the bottom edges of the walls. If I move the camera, these triangles move with it, and sometimes something renders through a wall really briefly."Park be ...Show All
Steven13174206 Flying bird using DirectX
I'm 3d beginner. I need to make a flying bird using DirectX. I don't know if to draw such a complicated object in DirectX or to create it using some external tool, like 3dmax, and to make it flying with DirectX. In any case, I don't know how to start (I have latest Direct SDK and Visual Studio 2005). Instead of using 3d max (Very Expensive, unless you have it already, or have money to burn) I would look at ...Show All
Vasco Veiga - MSFT Hardware Simulation
Hi, I am developing a game (using VS 2005, C#, and Managed DirectX) as a final project for programming course. Although the game runs fine on my PCs, several of the people who have tried it (including my professor) have complained that it works sluggishly or not at all for them. I suspect that the system requirements of my program are simply too high, but because both of the computers I have ready access to are fairly high-end, I don't ...Show All
NightFlight Computer Hangs
K ne time i play a game or even watch a video with surround sound, my comp. hangs and i have to reboot it manually. comp. spec's pentium 4 - 1.6ghz 384mb of ram 128 mb ati 9550 creative soundblaster audigy 2 zs 40 gb hard drive NEC DVD+/-RW Logitech X-530 windows xp home with all this i should be able to play games,movies/surround sound no problem but everytime i do have a problem which kinda sux cuz i pay so much for this stuff and it hangs, be ...Show All
Linda Shao XACT interactive audio information?
I’m desperately looking for some information on how to use XACT that goes beyond what’s in the current documentation. I am a composer and sound designer, and the interactive audio features are what I’m really excited about. Could you possibly point me in the right direction Thanks! Without anymore details I can only point you toward the beta program . To the ...Show All
