Answer Questions
devalapa_k 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
Shivi Hello Everyone!
Hello everyone! I wanted to come in and say hello to everyone and let them know they have a new MDX programmer around. Welcome, glad to have another on board... Thank you, I'm glad to be joining such a friendly community. Fantastic to have you, welcome and I hope you enjoy your stay. The community is a great way to make good friends with the same ...Show All
Lesley Realy simple tutorial.
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
Rob Goodridge Using surfaces
Please, tell me about surfaces ( Microsoft.DirectX.Direct3D. Surface ). What is it, how can I use it. With examples, of course. It's essential that you take a look at the DirectX documentation. It has a wealth of information. From the DirectX documentation. "In Direct3D, all two-dimensional (2D) images are represented by a linear range of memory called a surface. A surface can be thought of as a 2D array where each element holds ...Show All
Harold1000 Game physics and scripting
Hi, I allmost finished the graphics, sound and input of my game engine project. In few weeks i gone start physics and scripting, but there aint much information on this in the sdk. Only the config system has some kinda physics. Anyone know some good places for starting physics (allready got Novodex and tomahawk sdk's, but where's the fun if u don't make your own) or is it possible for microsoft to add some more information and samples about thes ...Show All
tun newbie needs help with direct programming
I need some help with direct i am new too directx programming and i am kinda having a hard time learning it becuase there is really no tutorials that explain what the code does like for instance below i have a code from the august directx sdk that say the below code should be a starting point for all direct x programs, but they don't really explain how, or why within the code at all, all i know know is that it creates a window and that is it. So ...Show All
Tjoppie Picking Problem
To solve the problem that I exposed in the other threat, I'm making changes to the Directx 9.0 's pick example. I've Tried this to move the position of the mesh: D3DXMATRIX matTranslation; D3DXMatrixTranslation( &matTranslation, 0.0f, 1.0f, 0.0f ); m_pd3dDevice->SetTransform( D3DTS_WORLD, &matTranslation ); m_pObject->Render( m_pd3dDevice ); The problem is that when I call the pick function, it doesn't consider the n ...Show All
Miha Markic Can I use PixelShaders with Sprites
Hello, First, We can I use pixel shaders with sprites Second, Is Sprites fast enough to not drawing with a conventional way (Holding the vertices in vertex buffer and then apply a texture to them and use the pixel shader as regular) I want to know which one is faster Thanks, Mustafa ELBanna ...Show All
Challe How to Publishing/Deploy a Managed DirectX game?
Hi! I'm writing my first game in Managed DirectX 2.0 + C# 2.0. I'm using Visual C# 2005 Express. What is the best way to create an installation packet for my game The installation should check if 1).NET Framework 2.0 is installed and install it if necessary, and 2) check if Managed DirectX is installed and install if necessary. I'd like to know how to make both online installer (.NET and MDX is loaded from the net) and a "CD-installer" (all file ...Show All
Erik Wynne Stepp D3D Sprite Object
Hello everyone, I've been using the D3D Sprite object to create a simple sprite based game. Everything was going accordingly until it came to scroll the camera. After trying many implementations and reading conflicting resources I've come here asking for help. My objective: Center the camera on an object that moves around the world. The problems: Setting the device.Transform.View matrix does nothing. Setting the sprite.Se ...Show All
herocomplex directx error
i know c++ pretty well and i got started into directx. im using dev-c++ for it and when i compile the following code i get a: invalid conversion from `void*' to `HINSTANCE__*' error. wat does this mean and how do i fix it other people got the code to work so wat did i leave out what code :-) Is dev-C++ a visual C++ version, or a different compiler altogether Do you have the DirectX SDK installed Th ...Show All
CoolCoolMan Early Out
Hi. I tried at the "regular" DirectX forums but since there was no answers or even faint ideas I am gonna post my question here. I have a fairly simple shader which loops over a numer of calculations. With ps_3_0 can we exit an loop and the fragment program early on if a certain condition is obtained for( ... ){ if( b > constant ) return Output; } } return Output; The compiler tells ...Show All
Paz 9000 Degraded performance when debugging MDX1.1 applications in VS2005 compared to VS2003
Hello, I've noticed that when I'm debugging MDX1.1 applications in VS2005, they achieve a significantly lower framerate than when debugging them in VS2003. The performance decrease differs per application and seems to be somehow linked to the use of HLSL effects, as applications that use the Fixed Function Pipeline do not suffer this decrease. This morning I witnessed an extreme case of this problem with a little game that renders mul ...Show All
Howard B 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
D Hoffman Thread safety and graphics device
I am experiencing errors in the form of a locked application when I have a device (with two backbuffers) in one thread which i use for rendering while another thread attempts to lock and read the other backbuffer. I get no error. The application just freezes on the call to getBackBuffer. I attempt to lock buffer 1 while rendering into buffer 0. How is the graphics device working in relation to threads Can you work on a buffer while renderi ...Show All
