Answer Questions
Vidya.B Basic question: Transforming a vertex is shaking my worldview
Wow, I always thought I had had matrix transformations pretty well figured out until now. So say I have a vertex, conveniently located at the origin (0,0,0). If I want to apply a transform to this vertex -- namely, a translation, I could do something like this: Matrix translationMatrix = Matrix .Translation(100.0f, 50.0f, 0.0f); // a simple 2D translation Vector3 myVector = new Vector3 (0, 0, 0); myVector.TransformCoordinate(trans ...Show All
MobyDikc Flicker in Direct3D application ???
Hello guys, I developed a small(very simple) 2D game last summer, and I remember I had to use a temporary output for the Drawing/Graphics, and then whole Output draw at once(like one bitmap) so that I avoided "FLICKER PROBLEM". Now, I am trying to get into 3D programming and want to ask, if there could be the same problem, because when my SpaceShip is moving I think its not so smooth as it should be and that it might be the same ...Show All
Sayed Zeeshan DirectX - Type or Namespace Not Found Error
I know there has been a previous thread on this topic, but reading it didn't help me. ( http://forums.microsoft.com/msdn/ShowPost.aspx PostID=87777 ) I have referenced Microsoft.DirectX, Microsoft.DirectX.Direct3D, and Microsoft.DirectX.Direct3DX, but it can't find ColorValue, FontWeight, or FontDescription. (type or namespace name not found error) I tried looking through them in the object browser, but couldn't find them either. Can anyone ...Show All
arunagopal Direct Music examples
Anyone know how to obtain the Direct Music samples mentioned in the Dx9 docs The docs direct you to the <sdk>/Samples/C++/DirectMusic directory which doesn't exist (for me, anyway). The ZMan wrote: DirectSound still exists, DirectMusic is what is deperecated. Not deprecated. Sustained mode. There's a difference. When we say "deprecated", it means, "There's another/better way to do this now ...Show All
AuzzieFlyBoy samples from directx SDK fails
I am trying to build the sample code which came with directx sdk, hopefully this is the right place to ask for help. When I build the sample code from "SimpleSample", I get alot of linker errors: ------ Build started: Project: SimpleSample, Configuration: Debug Win32 ------ Compiling... dxstdafx.cpp Compiling... DXUT.cpp DXUTenum.cpp DXUTgui.cpp DXUTRes.cpp DXUTmisc.cpp DXUTSettingsDlg.cpp SimpleSample.cpp Generating Code... Compiling ...Show All
gisgeezer How Use DirectX Draw a 2D Polygon which have a hole?
In C# We can Use SetClip() To draw 2d polygon which have a hole, But In Direct It's seem very hard to complete. If the hole is defined mathematically, you can use pixel shaders to clip() pixels that you don't want rendered. If it's defined by an artist, texturing is probably the way to go, combined with alpha blending or alphakill. thank you!! I will try it. Since you have to define the polygon in terms of triangles anyway ...Show All
MikeP2 rendering meshes in c#
hi! i've made a mesh picture_1: http://toomaniac.com/kopi/blender/object_mode _solid .gif even on actually flat faces there are a lot of triangles i.e. many different faces picture_2: http://toomaniac.com/kopi/blender/edit_mode.gif when i view the mesh in the meshview - that one that comes with the sdk - it looks like that picture_3: http://toomaniac.com/kopi/blender/directx.gif and when i load the mesh to my device it looks ...Show All
Michael Pryhodko Move object
Ok, So I wanna do a 3d version of Pong ( for entertainment and practise ) going quite well ^^ Have rendered 5 white objects in a black area. (walls + paddles + ball) Is there any move function like D3DXMatrixRotY ( something like that ) so I can move the ball =D please help I would take a gander across Google, Google Newsgroups and GameDev. There should be plenty of articles on collision detection in numerous languages. On the other hand ...Show All
GeoMan001 Question on ID3DXEffect::SetArrayRange
Hi, I'm currently adding shader instancing to our engine. After I changed the single world matrix in the effect file to a matrix array, I noticed a heavy performance drop. The fps went down by almost 30%. After some investigation I found that the fps changes with the size of the matrix array, so the effect framework seems to always copy all elements of the array, not only those that were actually set. I then wanted to optimize this using the ID3 ...Show All
Dhivager Rathakrishnan vc++ 2005 express want to build dxsdk sample usp10.h missing
Hi, its me another time So I installed vc++ 2005 express and did set up the include/lib file directories for the sdk and tried to build a sample of the newest dxsdk (december 2005). But now I get the message Compiling... dxstdafx.cpp c:\programmieren\dxsamples\configsystem\common\dxutgui.h(12) : fatal error C1083: Cannot open include file: 'usp10.h': No such file or directory Build log was saved at "file://c:\programmi ...Show All
Ernest D Cook Displaying a 3d grid.
Hello, this is my first time on MSDN forums, so bare with me if this is in the wrong section! I am currently developing a model viewer using C# and DirectX. The reason I am here is to find out if anybody knows how to render a 3d grid, such as this: Now I have been told by some colleagues that I could either physically draw the lines in a for loop, like this: ( removed { because they aren't exactly friendly on these boards) Not ...Show All
NT loading mesh like mesh viewer
is there a way and if so how can one load mesh files like the mesh viewer loads them, I took just for kicks the tiger sample and loaded a mesh that a friend made and it dident load right, rotates right off the screen, I dont really understand VC++ much to find my way through the mesh viwer code I am using C#, and help would be great. Here's a little helper function that loads a mesh and applies all the textures ...Show All
Vipul Getting Started Is Hard
[rant] Ok I know I want to learn DirectX and be able to write my own DirectX wrapper in a high level, like Plotting a point would be as simple as calling: ClassName2d.PlotPoint(var,var,var); Then use that to write a 3d game engine including physics, sound, input, networking, graphics etc. Then use the engines to start making games. Now I know that this will take a ton of time to be able to do this, especially for one programmer. Even if my g ...Show All
HarisRashid Setting Up directx in VC++ 6
Hey guys , I have the directx SDK (latest version). It is installed and in visual c++ 6 tools> options and then the directories tab I have added the directx lib folder (in library files) and the include directory (in the include files). I have also made sure that they are at the top of the list. When I compile a directx project (I know this works and is syntax correct) I get this error: error C2660: 'DrawTextA' : function do ...Show All
JP&#35; Which software to use, to author .x files?
I've come to the point in my 3D application where, I have created all basic 3D stuff and rendering 3D primitives with textures. It is time to import .x files and render them. I used the tiger.x and tiger.bmp and the code from the Meshes tutorial and it worked fine. But what I want to do is create my own .x files - textures applied. Also, the Meshes tutorial says that D3DX can only handle the geometry and we have to setup the textures ...Show All
