Answer Questions
Hallur_d 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
starkweatherr A problem of the Sample "ProgressiveMesh " in DirectX SDK
When I use the sample "ProgressiveMesh", I find when the num of a model's faces is beyond 65535, the sample will fail, return D3DERR_INVALIDCALL. Then I find it's because ID3DXPMesh::ClonePMesh fails, but when I specify D3DXMESH_32BIT for the progressive mesh when calling ID3DXPMesh::ClonePMesh, ID3DXPMesh::TrimByVertices fails. The corresponding code is as follows, where pPMesh is the progressive mesh generated by D3DXGeneratePMesh ...Show All
BLOODream Tutorials converted to J#
Hello I'm looking for a tutorial that shows the most simple DX-program ever, just how to create a simple plane/box/polygon. I've looked everywhere but all i can find is "create your own battletank game", "your own flightsimulator" etc etc. I'm using J# but there is almost no tutorials for that so i have to use C#-tutorials and convert them but that takes alot of time, specialy if the tutorials has mixed in some piece of flightsimulator code in i ...Show All
knopper2005 Scalable Font renders
I'm working my way through the CustomUI sample, and noticed that, since it works off transformed coordinates, it's a fixed size UI. I suppose I could scale the coordinates, but I don't see a way to tell the Font object to render scalable text. Does anyone know of a way to make scalable text Found the answer. Simply set the Sprite.Transform(Matrix.Scale(...)) prior to Font.DrawText(Sprite, ...) call and the ...Show All
stephensells XNA Installation Problems?
Hi there, I've gone ahead and installed the XNA package, following the instructions in the download. The prerequisite's, Visual Studio Partner Edt, and the XNA installer. I've however not downloaded the MechCommander2 package yet. I wanted to see if this was any bit usable without it. I fire up Visual Studio and attempt to make one of it's "content build", and am greeted with a number of exciting errors. Of note, the content build proj ...Show All
fiza Few questions on MDX
I finally decided to stick with Managed DirectX for my graphics and multimedia. I tried C++/DirectX for a while and noticed MS wasn't kidding about the time you save and the productivity 90% based on logic/gameplay instead of focusing on the underlying processes. My users hardly see this in the game, so it shouldn't be my concern as well. Since I use C# all the time anyway, it was a no-brainer to fully focus on this new API rather than strictly ...Show All
hmortada Sharing Vertex Buffer between meshes
Is it possible to store multiple meshes (Microsoft.DirectX.Direct3D.Mesh) in one vertex buffer to avoid vertex buffer switching Or is it the best not to use the D3DX mesh object at all Thanks for your reply. I thought it was more important. Switching vertex buffers is really not very expensive. Even if it were, if that's your biggest performance worry, you are in ...Show All
Albino How to show x file?
dear all, i am new directx programer. I want to show x file in the windows(EmptyProject in October 2005 DirectX SDK). but i didn't know how to do it. please tell me watch function want to. or have any sample code to do it thank everyone. I'll try to get better, I'm a lame instructor. :-) I think it would be useful if somebody could post a sticky in the DirectX 101 forum including links to major ...Show All
rniyas C# - DirectX 9.0c - Creating a Basic Hexagon
I was wondering if someone could walk me through drawing a basic hexagon using DirectX 9.0c in C#. I've been using the Vector3 structure, and I am having problems understanding how to initialize the view transformation matrix for a hexagon, as well as what input vectors will represent the hexagon (understandably 6). Thank you in advance, Owen As Jack said - start with a TriangleList before yo ...Show All
shehan I loaded a mesh and it gets drawn weirdly....
I'm trying to load the airplane formthe dx9 samples. For some reason it gets drawn weirdly: http://img20.imageshack.us/my.php image=dx9thinger4vh.jpg Here's how I'm doing it: public class Model { Mesh mesh = null; Material[] materials = null; Texture[] textures = null; public Model() { } public Model(Device device, String filepath) { ExtendedMaterial[] tempMaterials; mesh = Mesh.FromFile(filepath ...Show All
Chatanya 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, VertexBuffer.cpp, gos_CreateVertexBuffer. Unless gos_Malloc works like calloc, i.e. returning zeroed-out memo ...Show All
admindba Multiple windows by one device
Hi! I'm looking for some easy way to render into multiple widows by only one device. I'm using managed directX in C#, there's an overload of the Present method that takes a control and claims that it will draw onto the control, but I can't make it work. It does not fail, but neither does it draw anything. Could you please tell me what I'm doing wrong, or maybe weather there's some easier way to do that Thanks Libor ...Show All
bygosh Griffin PowerMate Knobs and DirectInput
Hi, So I purchased one of these PowerMate knobs: http://www.griffintechnology.com/products/powermate/ And of course, I thought I'd try and program against it using DirectInput. I've done the following: - enumerated device objects - get/set various properites for those objects (although the defaults are fine) - even set my own data format (even tho joystick works fine) - successfully acquired the device and retrieved input The button works fi ...Show All
Misch Problem with ComputeBoundingSphere
I'm trying to use the Geometry.ComputeBoundingSphere method to get the radius of the bounding sphere of a simple mesh. The code is as follows: using (VertexBuffer buffer = this.mesh.VertexBuffer) { GraphicsStream graphicsBuffer = buffer.Lock(0, 0, LockFlags.None); Vector3 center; boundingSphere = Geometry.ComputeBoundingSphere(graphicsBuffer, this.mesh.NumberVertices, this.mesh.VertexFormat, out ...Show All
PeterHup Reccomend me books please!
Ok im looking for some books to get me started on creating games using C#, Managed DirectX and Winsock. Can anyone reccommend me books they have used that will cover what I need to know to get started on making great games If you are going to use the managed DirectX Kickstart, I would get the updated code from www.thezbuffer.com , I also have links to it from my site (Post above). Remember that you must have ...Show All
