Answer Questions
jerrison pixel shader computation: precision problem?
Hi, I do the following computation in a pixel shader: const float texel = 1.0 / 128.0; result = floor(In.texcoord.w / 16.0) / 64.0 + texel In.texcoord.w containes an integer value between 0 and 299, stored as a float, interpolated over the triangle, where each vertex stores the same value, so in practice there shouldn't be any interpolation happening. When I output result as a color, I notice distortions ...Show All
DavidATaylor Drawing textures with transparent and semi-transparent texels?
Hello, I have a texture and I'll draw it in 2D view, I try to make some texels of it fully transparent and the other is some transparent. Unfortunately I don't know how to do that. I started with DirectX plugin for Photoshop I designed the texture as fully transparent at some texels and semi transparent as others. Then I save it as DDS format I choosed format of A8R8G8B8. I load it with color key ...Show All
arti_z Install the managed DirectX files from the redistributable Package
Hi I'm try to install the DirectX redistributables but the installer don't install the managed files. In the help file of the SDK is written to use the command line "DXSetup.exe /InstallManagedDX". When I do this I get the error message invalid command line switch. I am using the Update for June 2005 and August 2005. Has anyone got an idea what's wrong or an idea how to install the mananged files Thanks ...Show All
e-mhigz 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
Aaron Margosis - MSFT HELP ME PLEASE
I've download the new DirectX (october2005)SDK uppdate, but i'm having problems create a Direct X application. It doesn't show-up in the new projects menu under Visual C++ or any of the other Languages. What would anyone recommend as the solution for this problem. Which almost certainly means that what I said is true - you need to set up the include and lib directories in Visual Studio, so tha ...Show All
Mr_Mod Game Server Question
Hi, I would like to get some information in regradrs of Game Server Technology. 1. Is there a "know-how" / white papers or any other source that can describe how to build a game server 2. Are the peer-to-peer games (like NBA2K6 / FIFA2006 etc.) can be running thru a game server (in order to allow ranking of players for instance) 3. Is there an open source game server technology Thanks! ...Show All
sugus_29 Unresponsive Visual Studio during build
I have a nice, dual-core build machine with RAID-1 Raptor 150 disks and 2 GB of RAM -- typically, I can keep working while building in the background on this machine. However, when using XNA to build the MC2 sample, the Visual Studio window was mostly unresponsive duing the 7 minutes and 14 seconds it took to build. Most of that was because it spent 532 seconds in the CreateTGL stage, during which clicking anywhere in the Visual Studio window di ...Show All
theBainster Where did device in direct3D go?
I'm trying to do some of the real simple DirectX tutorials and when I try to enter the line: Private Dev As Microsoft.DirectX.Direct3d.Device = Nothing or it's equivalent for the C# version I get the error that Device is undefined. I am using the April 2006 DirectX SDK. I have added Microsoft.DirectX and Microsoft.DirectX.Direct3D references to the projects. For the VB version I use: Imports Microsoft.DirectX Imports Microsoft.DirectX.D ...Show All
Stefano B Where can I get volume textures?
Does anybody know where I could find some free volume textures to play around with Nico Thanks, I will have a look at it. Probably the reason why I cannot find any volume textures (with geometry) in it, is that they are not widely used yet but that could change. I'll let you know when I have written the mesh-to-volume-texture tool. The extension of your tool is a nice idea, but currently I'm using C++. But ...Show All
denesh Unit size
Hi, I don't understand how to define units in my model and world space. I have loaded a mesh, and if I don't scale it down it is very large. When I modeled it in a 3d modeler i modeled it to be about 50cm X 50cm X 70cm. When I load in the mesh it is very big. I want to define it so that 1 unit = 50 cm. And the screen is about 10x10 units. How can I do this I you don't understand my question, please tell me and I will try to explain my problem in ...Show All
chucucon ConvertToBlendedMesh() Problem
I'm trying to do some animation, and I'm following the skinned mesh example from MS. Well I'm running this peice of code: hr = MeshContainer->pSkinInfo->ConvertToBlendedMesh(MeshContainer->pOrigMesh, D3DXMESH_MANAGED|D3DXMESHOPT_VERTEXCACHE, MeshContainer->pAdjacency, NULL, NULL, NULL, &MeshContainer->NumInfl, &MeshContainer->NumAttributeGroups, &MeshContainer->pBoneCombinationBuf, &MeshContainer->MeshD ...Show All
petedee How do I Setup Visual C++.net 2003 Standard for Direct X Games Programming
Hello! How do I Set up Visual C++.net 2003 for DirectX Games programming. I have just up graded from Visual C++ 6, I know how to do this in Visual C++ 6, with linker and # includes, is it the same with Visual C++.net 2003 standard. If so a step by step would be helpful. Thanks. I dont know where to start explaining managed code, there are whole books written about it. But I found this inf ...Show All
Sir_Penguin Pass int array to the pixel shader
I want to pass an int array to the pixel shader. I used SetIntArray(name, val)..the problem is that in the shader I do not know the exact size of the array, therefore in declaring it i am trying to use an int *. It seems as if the compiler does not like this. Is is it possible to use pointers in the shader If not how can I pass a variable length array to the shader can someone give me an example of the usage of this function ...Show All
nbnb Seting Boundaries
What is the best way to set boundaries in a flight simulation type application in a 3D enviorment Can you explain more what you mean, its not clear to me what you want. Well since you know the x,y,z position of your player you can check that against suitable bounds. e.g. if (x>1000) or (x<-1000) then 'out of bounds' Or you could do a distance check from the origin e.g. Vector3 posi ...Show All
fastcarrera Erorr in loading DirectX Reference
Dear All, I have two versions of VS.NET (2003 & 2005) installed and DirectX SDK Dec/2005 version installed as well. I am trying to develop just a few lines of code to create the device but it caused the errors as below: An unhandled exception of type 'System.IO.FileNotFoundException' occurred in TestDX.exe Additional information: File or assembly name Microsoft.DirectX.Direct3D, or one of its dependencies, was not found. Tes ...Show All
