Answer Questions
Chinpokomon Rotation matrix: absolute rotation instead of relative?
Hi, When multiplying rotation matrices for rotating around x, y and z-axes R = Rx * Ry * Rz ( http://en.wikipedia.org/wiki/Rotation_matrix ), I get a relative rotation matrix, meaning that rotation around Y is not the original Y-axis, but the new axis that has "occured" after rotating around X. What I want to do, is to have absolute rotation, so that the Y-rotation is performed around the original Y-axis, and not the new one (abs ...Show All
Shon 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
de_henny Centre text on screen
I'm using screen coordinates to draw a line of text to the screen. How do I determine the width of the text (based on which font I'm using), so that I can precisely centre it on the screen Thanks, man, that's exactly what I needed! (I've added the managed directX info to my signiture to avoid future confusion). You are welcome. My problem is always that I never know if I should answer with managed or unmanaged API names and it look ...Show All
spot9969 Sample Framework
I downloaded the DirectX SDK and installed it. I downloaded the sample at this site at Coding4Fun: http://msdn.microsoft.com/coding4fun/gamedevelopment/beginning3/default.aspx and when I opened the solution, I got an error saying: "The referenced component 'DirectXSampleFramework' could not be found. and I get several other errors about the same thing. The other error is: "'Samples' is not a member of 'Microsoft'. ...Show All
EricZhong Game Engine - GUNS - adding particles
Hello guys, I'm facing a problem in developing my GameEngine(in DirectX 9) for 3d space shooting game. Atm, I can fire with one type of gun - particle gun that spread one particle at a time. I have a particle system class for it. I'm using following algorithm: When user fires, I add a particle to local particle buffer and then when the object(spaceship) is updated, I copy it into GameEngine. Well, I think it would be better to push new par ...Show All
jgmeyer How to create a simple 3D Text
Hi, i want to create a simple 3D Text displaying "Hello World" on the window with DircetX. I did not found a simple example in the docs so I hope someone can help me here. Thanks in advance. In the Managed DirectX 1.1 assemblies you will find a method associated with the mesh class called Mesh.TextFromFont method which will create a mesh from the specified font. I am sure this is what y ...Show All
govdba DirectX Template
I just thought of a good idea. Use Visual C# 2005 to make a template of the DirectX Empty project sample. Use the template as a starting point for DirectZ DirectX I can't type. Just an idea I have already done this and have published a small article on Coding4fun, the article goes through creating a base application that is based on the empty project sample. It also shows you how to add add ...Show All
Jo0815 Code behaves differently on 3 different computers. ???
I have a C# application that displays fairly simple 3d models (mostly lines and a few faces). I am using Managed DirectX 9 August 2005. On one computer (the development machine) the program runs fine. On another computer, the lines don't draw (it's a call to drawIndexedPrimitives, type lineList) but the meshes do draw...and on two other computers, when I open the Form that has the 3d control, the computer freezes (before ...Show All
Michael Lam DirectX and Visual C# .NET Express???
Hi, I'm trying to play around with DirectX and C#. I downloaded the C# Express edition, and the latest DirectX SDK. After installing the DirectX SDK, I tried to add a reference to my project for Microsoft.DirectX, but I couldn't find anything DirectX under the .NET tab. Then I went through the browse tab looking within the directory structure for the DirectX SDK, and couldn't find C# would reference to. I then browsed to the C:\Window ...Show All
Prayag Gandhi Creating Mesh from my own
Hello again. In order to have a "clean" code, I'd like to work only with Meshes. I have some x files, but other objects I like to build myself using vertices and index buffer Is there anything to know about this Thanks, Steve There was a post on this just the other day, have a look at the following post ( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=125561&SiteID=1 ). In this post there are links ...Show All
SHBEHM How to create hardware-independent sliding text ?
I want to create smooth sliding texts not effected by refreshing (anti flickering mechanism due to hardware) , can u help me 3d Text sample in the DirectX SDK. ...Show All
Jim Losi Some questions about Vista & Direct3D 10
Hello! Greetings from Ukraine! I am still programming under WinXP and DX9. But I'm going to port my code into Vista platform and cannot find some information I am interested in. According to numerous articles and documentations porting is to be painful:) So, I have some questions listed below: 1. When will (approximately) the nVidia or ATI accelerators support Shader Model 4 2. How shall I use SIMD advantages on the C ...Show All
Claus Konrad Can I develop the DX10 and DX9.0c application use VC++ 6.0?
Can I develop the DX10 and DX9.0c application use VC++ 6.0 My develop environment is VC++ 6.0 and installed VSSP 5.0. No it means VC++ Express needs the .Net framework. My current develop environment is VC++6.0 with VSSP5.0 and Intel C++ Compiler 9.0.Intel C++ Compiler 9.0 is not support VC++ 2005 Express.So I use the VC++ 2003 tested my DX application,it have many bugs when build it by VC++ 2003,but ...Show All
Inga Verbitskaya - MSFT how to create an 8 bit raw file?
Hi every one. Does anyone know how to create an 8 bit raw file from a bitmap The idea is to generate landscapes from those raw files and also to automatically generate the raw and then create the terrain. Thanks in advance. Cubaconn Instead of completely RAW format, I'd advise using the PGM format (or PPM if you need RGB rather than just an 8 bit value). You can find details of the PGM format at: http://w ...Show All
xzlc5188 Sparse Matrix-vector multiplication on GPU using DirectX 9
I want to implement Sparse Matrix-vector multiplication on GPU. I have a matrix where each component is of the form struct cell { int value; int row; int col; } I store the row and column with the value because I rearrange the matrix into the Compressed Row (CRS) sparse matrix storage format. Can I pass the matrix to the GPU as a texture that stores the above values. Can I pass the vec ...Show All
