Answer Questions
Stuart A. Malone colorvalue in progressive mesh sample
Hi, new to DirectX in C#, not in C++. In the August 2005 DirectX sdk update, there is a sample in C# called "Progressive Mesh". When I compile this sample, I get 36 errors, all of which are type or namespace missing errors. Here's an example. 'ColorValue', which is supposed to be of the Microsoft.DirectX.Direct3D namespace simple does not appear to be there. MSDN says it's part of the namespace, auto-complete does not.&nb ...Show All
jherbst beach bar (sims type game)
Hi all, For a university project I've decided to design a beach bar game that has a isometric sims type feel to it. Below is a list of ideas/proposals I've managed to come up with. If anyone has any ideas on how to improve or elaborate on any of the point listed, please drop a message, all feedback is appreciate, thanks! BEACH BAR GAME: Theme Set in tropical paradise beach resort, user competes with computer (or another networked pc) to see ...Show All
Phantsy Force Feedback not working with October SDK and managed code
Hi, I am trying to get the force feedback feature to work with VB.Net but not able to do so. Basic features work fine. The C# sample provided with the DirectX9 doesnt seem to work. I am using Logitech WingMan Cordless Rumblepad 2.4 GHz and am getting an error on a particular line of the sample (code on this link: http://msdn.microsoft.com/archive/default.asp url=/archive/en-us/directx9_m_Oct_2004/directx/input/directinput_fo ...Show All
Elli Pirelli .NET 2.0 application template
Hi! How to create an application template like the one presented here: http://msdn.microsoft.com/coding4fun/weekend/apptemplate/default.aspx , but for .NET 2.0 I'm new to the whole .NET thing and it's quite confusing for me. I tried to follow the steps in the tutorial mentioned above and just changed reference to Microsoft.DirectX (which should i use: "version 2.0.900.0 runtime 2.0" or "version 2.0.0.0 runtime 2.0.50727" ), but should i also us ...Show All
ilango2006 retrieving more than 4 values per texture lookup
Is it possible to have a texture with more than 4 values per texel My problem is, I need to look up a chunk of many values (about 16) multiple times per pixel and I like to do that quickly. In my setting more than three 2d texture lookups each time (= 12 float values) is the maximum I can allow without a significant performance drop. Also if anybody has experimented with 64 or 128 bit textures I'm interested to know about the performance ...Show All
ekekakos D3DXSaveSurfaceToFile PNG format broken in Apr 06 SDK?
I've been using D3DXSaveSurfaceToFile for screenies for a while. Saving to .PNG format produces only solid white images since we've updated to Apr 06 SDK. Full debug output (including compiling with D3D_DEBUG_INFO) gives no errors. Anyone else hear of any problems with this specific format Hi, Can you repro this issue using texconv For instance, say you have texture in a bmp file: imagefile.bmp. ...Show All
GrandmaGG DirectSound under VS2005 - null reference using buffer notifications
Hi, I'm very new to DirectX. Using VS2005 and the December 2005 SDK I have created a very simple winforms app that plays a WAV file. This works fine. I then tried to add buffer notifications specifically so I could detect when playback stops. Immediately though I hit a stumbling block, when I instantiate a new Notify instance I get a null reference exception. The buffer parameter is most definitely not null. This is a cut down version o ...Show All
SlugiusRex 3 errors - you can see the errors now
i've read an article about setting up a basic application template using the sample framework as a base from http://msdn.microsoft.com/coding4fun/weekend/apptemplate/default.aspx by Glen Willson. i've done all the things he wrote there but i still can't make that template he speak about, what so ever. i am dealing with 3 errors (see the picture i've posted here http://80.97.50.242/ ). i am using visual studio 2005 and directX Sdk oct 2005. thank ...Show All
Osmar 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
Andy Bounsall Problem loading simple shader
I'm trying to use my first shader: float4x4 matWorldViewProj: WORLDVIEWPROJECTION; struct VS_OUTPUT { float4 Pos : POSITION; }; VS_OUTPUT VS(float4 Pos : POSITION) { VS_OUTPUT Out = (VS_OUTPUT)0; Out.Pos = mul(Pos,matWorldViewProj); return Out; } technique TVertexAndPixelShader { pass P0 { VertexShader = compile vs_1_1 VS(); } } I compile this from an .fx file with the following: hr = D3DXCreateEffectFromFile ...Show All
bw_123 Simple example for February 2006?
Hi, I just installed the February 2006 version of the SDK (I'm using .net 2.0) and I find the examples to be a bit overwhelming for a beginner. I'm experimenting with the first two: EmptyProject and EnhancedMesh From the EmptyProject I see that the framework is an awsome tool but the problem is that so many things are hidden. So I was wondering if anyone has an example build on the dx framework(EmptyProject) of presenting a simple m ...Show All
skinnedabyss Reading a Vertexbuffer from a Mesh
This has been driving me nuts. It's so simple... but not working. I have written to vertex buffers before, no problem. But, for some reason, I can't read an existing one from a mesh. Keep in mind, I have recently upgraded to the newest version of Managed DirectX. Perhaps something has changed I would like to dump vertex buffer into an array so I can get the locations of all the vertices. (Eventually, I ...Show All
Geuris Create a sprite programatically in .NET?
Hi; I've struck out trying to get an answer to this in the .net forums. Is there a way to create a Bitmap object in .net where the bitmap is all 100% transparent (alpha) I can then draw lines, text, etc. on the bitmap and where I do not draw, it remains transparent. thanks - dave Hi; Sorry, one caveat. We presently are 100% managed code which is a big plus in terms of security. Is there a way to do this within .net thanks - d ...Show All
kudosdude how to detect a 3d sub mesh where the mouse is on
I'm trying to model a application where a 3d object is loaded from a .x file and I need to get the user input specifying which part of the object the user clicked on. something like image map in 2d..... I need it in a 3d object (where it can be rotated...etc) does anyone have ideas how to map between 3d sub meshes and get on which sub msh the user clicked on Thanks in advance Nightmare_BE wrote ...Show All
isha_2 How to flip screen/desktop or a directx window up side down
Dear all, Is there a simple way to flip the screen/desktop vertically or horizontally By flip I mean mirror image, not rotation. If full screen flip is not possible, is there are simple way to flip the contents (3D graphics. images, text, etc) of a directx windows vertically or horizontally Thank you so much Many thanks Jack. In fact i'm working on a system a bit like an arcade shooting game. To create an illusion of a far aw ...Show All
