Answer Questions
Paulo Sérgio Clipping text in a GUI
I'm currently designing a graphical user interface for a game, and got a problem when I implemented scrollbars. Rendering only parts of the graphics in the interface (when part of a GUI element is outside the viewable area of the window) was simple, but doing the same when using the DrawText function seems much harder. I ended up rendering the text to textures, and drawing only parts of those, but this can add up in texture memory usage. Is t ...Show All
Sameer.V i need help! pls I want to begin to write games
I need documents to learn to use directx in c++ or vb, to not knoweverything about directx, thanks for its attention and hope can help me, and sorry for mi english Of course one simpler route would be to use a pre built game engine. Say you want to start building a first person shooter (which is a very big job to do it properly), look at one of the game engines built for this type of game. Whilst you will have plenty of programming still ...Show All
KellyGDownUnder understanding view/world matrix
I have a few questions about this device.Transform.view = Matrix would set the camera for the rendering screen and device.Transform.World = Matrix would place the mesh object into the world space right if all the above is correct what would be the best matrix seting for turning a mesh and placing it into a set location on the screen so lets say if I set my view matrix to look at the center of the screen and ...Show All
AlexZakharov MDX: Desktop or Laptop?
Hi all, am planning to purchase a new pc and I can't decide between laptop or desktop, my main concern with a laptop is performance and developing games with Managed DirectX and shader v2.0 or even v3.0 Anyone developing on a laptop Specs Graphic card Thx a lot DX 10 presentations are linked here: http://forums.microsoft.com/msdn/ShowPost.aspx PostID=97912 Short answer: Yes, DX 10 w ...Show All
SureshN HLSL question.
I'm just wondering why this pixel shader works fine... PS_OUTPUT RenderScenePS( VS_OUTPUT In, uniform bool bTexture ) { PS_OUTPUT Output; // Lookup mesh texture and modulate it with diffuse if ( bTexture ) { float4 meshRGB = tex2D (MeshTextureSampler, In.TextureUV); Output.RGBColor =meshRGB * In.Diffuse; } else Output.RGBColor = In.Diffuse; return Output; } ... but this one c ...Show All
HwaH 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
Sinbad_il_marinaio 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
Prabhjeet Singh Players move faster at higher framerates
Okay, this is really bad. Clearly, a hard-coded "2" that's applied to my character's "Left" property on every frame render isn't going to cut it. Obviously, the game will run slow on crappy hardware, and there's not much I can do to prevent that. But the game shouldn't run faster on really good hardware! How can I cap the movement speed, or better yet, guarentee a certain speed within reason I can already calculate frames per second, and h ...Show All
Loreaca Move a Mesh
Newbie Question here, How does one move a mesh around in a 3d space The only thing I can seem to do is move the camera around it. I have my mesh loaded up and everything, I just want to know how to change its x,y, and z coordinates. Thank you! To display in DX you need to set 3 matrix PROJECTION, VIEW and WORLD http://msdn.microsoft.com/library/default.asp url=/library/en-us/directx9_c/Projection_Tr ...Show All
Swarnima Convert DirectInput.Key to string
Hi. Im creating a InputSystem for a game. We have a console, what should take text input. I have functions to get what keys are pressed in the Key Enum format, but I whould like to know how to convert theese into there string representaint. The problem with using the ToString method of the Key Enum is that non char keys also are passed, like LeftControl and so. Also local chars is also in strange format, as it returns the english key code ...Show All
Ah Jack FileNotFoundException with DirectX and .NET 2.0
Hello all! Another question... I've got this code (C#): public void InitializeDevice() { PresentParameters presentParams = new PresentParameters(); presentParams.IsWindowed = true; presentParams.SwapEffect ...Show All
Duke of URL rendering point cloud (point list) disappears
Hi, I have an object scanner application that scans 3D objects. I have reached the stage where I want to render the cloud points in Direct3D (managed code), and the model sometimes disappear. The problem is, I think, that there are some "rebel" points far away from the model, so far, that they aren't even in the view frustum anymore. Why does Direct3D cancel the rendering of the whole point list, if only one or a few points are ...Show All
Chibuzo Multiplayer with Winsock
Well, currently I am using a game engine to develop a game. But, because that engine lacks decent multiplayer capabilities, I am developing a plugin for it to support multiplayer with Windows Sockets 2. At the moment, I do not know how to send variables (int, long, etc.) to clients, only strings. Is it even possible to send variables with WinSock Why not send these variables as string and then Convert them whe ...Show All
saterbear October 2005 DirectX SDK is available!
The DirectXR Team is pleased to announce the release of the DirectX 9.0 SDK October 2005 Update! The October Update includes the first public release of the XInput SDK. This SDK will allow game developers to fully support Xbox 360 Controller for Windows. To download or learn more about this release please visit http://msdn.com/directx/sdk . Features added in the October 2005 DirectX SDK update - XInput XInput is an API that ...Show All
piaqt DirectPlay Voice Error
I have a problem with DirectPlay Voice. I can use microphone I have windows xp home + sp2. In windows xp pro i havenn't this problem. I have a messege from windows "Error instalation program DirecPlay Voice. Code Error 0x80004005." My name is Diane Martin. I need to know how to fix this error on my pc. I am not able to test out the hardware. It will go so far and then I get my error. Please help me. ...Show All
