Answer Questions
RonMoreno new Microsoft.DirectX.AudioVideoPlayback.Audio(Stream)?
1) Is there a way to play an audio file from an array in memory (or a stream) without having to save it as a file first I have all my sounds in memory and don't want to save them as separate files. 2) A long time ago (when the SDK was still beta) I noticed that my game would pause (about 1/5th of a second) whenever I started playing an MP3. I tried many things to fix this (including starting and pausing it, or pre-seeking), but n ...Show All
Ole Tsu Drawing lines with adjustable color in Managed DirectX (C#)
How would I go about drawing the outline of a box with Managed DirectX (C#) which I can easily change the color of I have a vertexbuffer set up with the relevent vertex's, and can draw an outline using linestrip. However, I can't work out how to change the color. Currently it uses a texture, which means I need to load in a bitmap of the relevent color, which limits the range of colors and requires resources. I ...Show All
Sean Olson I am going into development of games(help needed)
Hi there all, I am a programmer for Windows 32bit and now due to a new project issued by a friend of mine, i had to go into Game Development. The following are a few questions that i am going to ask so that i understand more about Developing games. 1) What programming language am i going to use 2) What IDE environment will I be using 3) How will the graphics be supported Tips and tricks welcome too. ...Show All
samdalil Visual C++ Express Edition and DirectX: Time to give Visual C++ 6.0 the heave-ho!
This is just a short, friendly post to encourage all of you still using an 8 year old C++ compiler to consider using today's new release of Visual C++, including the free Visual C++ Express Edition. Why move away from Visual C++ 6.0 The list of improvements is extremely lengthy, even for the express edition, but here's a few key reasons for those of you writing DirectX-based software: 1) The latest SDKs no longer with with Visual ...Show All
Lou Immendorf Sprite.Draw2D not working as intended?
I have made a InterfaceImage image for a GUI, using the D3DX Sprite class. But I got some strange behaviors that doesn't seems to be explained in the MSDN. TheImage.Draw2D(TheTexture, Rectangle.Empty, new Rectangle(Left, Top, Width, Height), new Point((int)(Left / ((float)Width / (float)TextureX)), (int)(Top / ((float)Height / (float)TextureY))), Color.Transparent); TheTexture: a Texture object TheImage: a Sprite object Top, Left, Width, Heigh ...Show All
Eugene_B Creating a new texture fails with "first chance exception"
I have an application in which I create a texture to later write directly into. It works fine on my development machine, but on the target machine it fails with A first chance exception of type "microsoft.directx.diretct3d.invalidcallexception" occured. The code looks like this texture = new Texture (renderer.Device, 720, 576, 0, Usage .None, Format .A8R8G8B8, Pool .Managed); The pixelformat is the same as the device. ...Show All
bmbsa error 1304 and error 2350
Hi durirng the install process it gives the error messages listed in the subject but i get them the following way: during the coping of the files it comies up with and "Error 1304.error writing to file microsoft.xna.ui.xnastudiopackage.dll verify you have access to that directory" it tels me to cancel or rrtry and i clikc retry as i am the computer admin and it then pops up with the "internal error 235" and i am forced to cli ...Show All
Barry M DirectX7 SDK Lost Forever?
I am very distressed at the moment. I simply cannot find the last release of the DX7 SDK anywhere ! I may just be ignorant as to where to find it on MSDN Downloads but I just can't find it anywhere. Anyone who knows where I could find a download of that priceless treasure please let me know. If you're really that desperate to get your hands on it then I recommend going to your local library and digging up a suitably old game programming b ...Show All
Lajash DirectX and winforms
im using the sampleframework in window mode and was wondering if there was a way to lock the form so it cant be resized thanks You could specify in your class that inherits from form that the border style is FixedSingle e.g. FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; I hope this helps. Take care. There's a couple of 'interesting' things happening here. 1st you can't reliably cal ...Show All
JaBa XFileManager.FromFile
Has anyone attempted to work with the XFileManager class in DirectX managed I searched the boards and have not found reference to it. I am having problems with the FromFile method. More specifically, if I take a valid .X file (that I can successfully load into the DirectX Viewer) and attempt to load this same file using the FromFile method of the XFileManager, it throws a XFileErrorCodes.ParseError exception. XFileM ...Show All
adam kromm Font.DrawText() bug
I'm not sure if this has been fixed in the latest sdk (downloading it now) but there seems to be a bug in the direct3dx Font.DrawText() method. When you use the DrawTextFormat.WordBreak format the lines get broken at punctuation marks as well as whitespace so that fullstops (periods), commas, apostrophes etc. at the end of words can get split to the next line which is really undesirable behaviour. I currently have the oct 2005 sdk so I'll see ...Show All
Cla82 managed directx fullscreen
All of the managed directx sdk tutorials are in windowed mode. Could someone post a simple example of fullscreen managed directx Thanks. Try the Managed DirectX samples from the sample browser rather than tutorials 1-6. The EmptyProject has such a button. But Jack is correct, its just a boolean in the present params, or a boolean in the CreateDevice call if you use the sample framework. ...Show All
Marcus Schoo LoaderLock was detected
Hi, I have installed DirectX 9 SDK (October 2005) and Visual Studio 2005 RC1. When I try using directx classes for capture audio, I have a problem. The code i have wrote is: Dim d As DirectSound.Device Dim ds As DirectSound.CaptureDevicesCollection ds = New CaptureDevicesCollection For Each d In ds Me .ListBox1.Items.Add(d.ToString) Next When I run the application I get ...Show All
Michael S. Packaging a DirectX Game
Hi, I've recently started programming using DirectX and C#. I created a game and it runs fine on my development machine (.Net 1.1, DX SDK). But when I compile the game for a release, and move it onto a machine that only has the DirectX runtimes, it fails to find any of the neccessary libraries and will not start. I've tried telling to to "include resources" when it compiles, in which case it copies a bunch of .dll's to the release directo ...Show All
Dan Stevens Is DirectX good enough for creating modeling tools?
this may seem a silly question. yet all the modeling tools i see on the commercial market and free tools use opengl. is this choice due to opengl having the ability to be used on no windows OS or is directx not upto the task I suspect you are correct about the modelling tools preferring to go cross platform. Other than the cross platform issue there is no reason why D3D could not be used for modeelling tool ...Show All
