Answer Questions
Marcus2 Positioning a caret with an ID3DXFont
I made a caret object, just a small blinking quad, and I'd like to have it show up at the end of a string. I can't figure out a way to know what the exact length of a given string is. Is there any way to get the logical width of a single character from a font The average width from GetTextMetrics doesn't cut it, but it must be basing that on individual character widths somehow. It's amazing how a little thing like this can eat up ...Show All
Miha Markic ShadowMap HLSL render loop woes
Below is a portion of my render loop. It uses the ShadowMap.fx file from the ShadowMap sample. If I remove the code in blue (comment it out), the shader and loop works fine (scene and shadows are the way I want them). If I add the code in blue (uncomment), then my objects no longer show, only the background appears. Is there anything blatantly obvious wrong with the code in blue // Clear the render target and the zbuffer device.Clear( ...Show All
Vaibhav2007 frames per second benchmark for games
Hello all, I'm John, a newbie to real-world apllication development. My experience so far has been in the classroom working with C/C++, no DirectX knowledge yet. I would l ike to write a program that will allow users to benchmark games by analyzing frames per second (FPS). My main hurdle at this point is retrieving the FPS information from the games. I believe the answer lies in un ...Show All
llsspatt How do I uninstall DirectX 9c
I am having problem with a game and their tech support needs me to uninstall DirectX 9c and Reinstall it. I have asked EA tech support on this on an earlier occasion and this was the reply I got. 1. Forget about it. 2. Find a new hobby. 3. Microsoft sucks so dont try to fix their stuff. 4. The only problem is your brain, if you try to forget about it and find a new interest in life that does not involve this stupid DirectX, you will be OK. ...Show All
Ghostgollum 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
UBigDummie frames per second benchmark for games
Hello all, I'm John, a newbie to real-world apllication development. My experience so far has been in the classroom working with C/C++, no DirectX knowledge yet. I would l ike to write a program that will allow users to benchmark games by analyzing frames per second (FPS). My main hurdle at this point is retrieving the FPS information from the games. I believe the answer lies in un ...Show All
dcw Textures and Surfaces
I've been looking around a bit and cant seem to find an answer to my question which is: Is there a way to convert a texture to a surface and vice versa Thanks in advance for any help on the matter. Converting a texture to a surface: You could use IDirect3DTexture9::GetSurfaceLevel(). This will give you an address of a pointer to work with. This is the technique used to render to texture. You can then ...Show All
RogerWS Spectrum Analyzer for Real time Audio.
I have a directX application which reads real time audio from a sound card (mic) and calculates FFT for it. Frequency of sound per .5 second. I need to create a spectrum Analyzer kind of component. Any way I could do this using DirectX (Direct 3D maybe). I am not looking for 3rd party component. --Yatharth Hi guys, i cant remember the url but if u type 'bass .net' into google, you will get the url there, they offer a free .net ...Show All
jmatt001 .XWB file format
Hi, I need access to the WAV bits. I don't see a runtime interface to access this, so I was thinking I could extract them from the .xwb file. Now the problem is the file format. I see the .xap file format is listed in the docs, but nothing on .xwb. How can I obtain access to the raw WAV bits in XACT Regards. Hi, Thx for the info. I managed to dig my way down to the WAVEBANKMINIWAVEFORMAT inside the WAVEBANKEN ...Show All
Lukasz Pawlowski -- MS The Game Programming from Scratch
I'm Professional in VB6,VB.Net 2003,VB 2005 and i want to start in game programming but i don't know from to start study. Some friends tell me to study DirectX, but i found it hard to self study and there is no books in vb and DirectX (Almost), Anybody have any idea to start in it in simple way I personally love to dig through sources of some of the free engines available and from a design perspective it helps alot. Also it's a good id ...Show All
Craig Reder dxwebsetup wierdness - deployment with app
Hi, sorry to post this in this forum, I am unsure where to post it. OK here is the thing. I have a deployment problem. I am creating a setup with my app, created in VS 2005 Pro, using C#(.NET 2.0) This app of mine requires DirectX runtime end user files, or the SDK but really the runtime files. Now, during installation, I bundled in the dxwebsetup.exe. This executes fine. 2 main problems here already: 1 ...Show All
ingmiguelmejia Rotation about the z-axis...
I have a square on screen (2 triangles), and I'm experimenting with rotating the thing. Rotating about the x and y axis works as expected (the thing spins horizontally and vertically), but when I rotate it about the z-axis, it goes up and down, deforms a bit, and just looks weird. As for how I'm doing it right now, I'm using Matrix.RotationYawPitchRoll(x, y, z) to get my rotation matrix. ...Show All
Seyed .x exporter for 3dSMAX 5 or 8
Hi Is there any plugin for 3DSMax when export to .x a model with biped (character studio) and skin Is very important, please Thanks in advance gotelin wrote: Hi Is there any plugin for 3DSMax when export to .x a model with biped (character studio) and skin Is very important, please Thanks in advance The DirectX SDK contains a plugin for 3DS Max 7 ...Show All
sweetcheeks blender and .X
I have created some models in Blender and was wondering how to set the coords and render them in DX. I am using C#. I am also using C# and Blender for mesh development. There is a new script out there for Blender that is suppose to fix DX export issues here: http://xoomer.virgilio.it/glabro1/python236.html . Now when you use the export to DX8 it will be formatted correctly. Another issue ...Show All
GlynP Most efficient way to draw a colored square (no, really!)
Yeah I know, this sounds really lame... I've actually got textures, input, sound, physics and a bunch of other stuff working, but I have to conclude that the method I'm using to draw a starkly colored square is murderously inefficient. I can add 50 textured squares to my scene and lose maybe 40 frames per second... but adding 20 colored squares to my scene kills about 600 frames per second... from a human standpoint, this makes no sense, sinc ...Show All
