Answer Questions
amienel june sample issues
it seems that when I run some of the samples a few of the device checks fail, and the program wants to switch over to a software device, if I remove this line of code if (caps.PixelShaderVersion < new Version(1,1)) return false ; the sample runs but all the meshes have lost there textures, how can I fix this For the samples that definately don't use pixel shaders, removing that ch ...Show All
corel-DII Good source (s) to learn Direct X (c++)
Hi, I have begun programming with DirectX and C++ for a while now (not a very long while =)) I've read the 6 tutorials that comes with the SDK and understand them quite well, but where do I go from here Most interesting info I find about DirectX programming for newbies is in managed, but, since I already can programme nicely with C++ (console and windows) I think that would be some kind of a step back, dunno why really... but is there any ...Show All
Zoheb Sait MDX Sample code doesn't work in my Visual Studio .NET 2005
Recently I got a new VS 2005, and downloaded DirectX SDK February 2006. I opened the DirectX Sample Browser, all the samples can be executed just fine. However after I installed these samples, let's say, EmptyProject(managed), I can build the sample code successfully, it just didn't work. And all the sample code using .NET Framework 1.1 failed to start up with this error messagebox: // .NET Framework 1.1 version Failed creating the Direct3D Devi ...Show All
C&#35; Disable FSAA for some primitives each frame? (disable it temporarily)
If I set my device to use 4x FSAA for example, can I temporarily disable it when rendering primitves or somehow make primitives that isn't affected by the FSAA I have a graphical user interface that render text and quads with point filtering, that way making it "pixel perfect". Much like blitting a sprite but I'm using triangles instead. However this method breaks miserably when I add antialiasing, since the pixel precision is lost and ...Show All
tmclark DirectDraw Deprecation
Hi everyone; newbie here both to the forums, DirectX, and (to a lesser degree) game development in general. I'm wanting to get into game development as a hobby, maybe a couple of small shareware games for the heck of it. Nothing spectacular, just have a couple of ideas in mind that I'm wanting to do. I understand that DirectDraw is now deprecated, but my main concern is whether that just means that development on it is stopped ...Show All
CliftNorris Basic shader questions used with Managed DirectX
I'm for the moment learning the shaders, but keep on "blocking" on one ot two thing that I don't understand. My first question : I'm rewritting my Managed DirectX code with shader basicaly to render a mesh without any other thing that just render it. I still have in my C# this type of code : ... myDevice.SetTexture(0, myTexture); Render calls ... In the shader (where it seems that I don't have to pass the texture), I have under th ...Show All
Fausto_Jasso DirectX7 SDK Lost Forever?
I am very distressed at the moment. I simply cannot find the last release of the DX7 SDK anywhere ! I may just be ignorant as to where to find it on MSDN Downloads but I just can't find it anywhere. Anyone who knows where I could find a download of that priceless treasure please let me know. We only support the last 3 releases of the DirectX SDK (currently the June, August, and October 2005 releases). DirectX 7 became an unsupported ...Show All
Sreekanth Ammisetty Using index buffers
I want to draw cube. And I want specify only 8 vertices, and then specify their order in special array. As I know index buffers allow to do so. But I can't find example. Please, write example of using index buffers. I also copied program from http://users.pandora.be/riemer/indices.html it doesn't work too. I think it is because my video card may not support this feature (I have VIA/S3G UniChromeII Graphics video card). If ...Show All
oer Camera viewing all objects
If I have a camera and a collection of 3D objects, how do I calculate the position of the camera so that I'll have all the objects visible in the camera's view Thanks in advance. Purely as a guess off the top of my head, you could use a form of flattening/projection to try and determine the cameras field of view. For example, if you flatten all objects onto the XY plane (that is, set all Z=0) and then comp ...Show All
ndPriya Anand Stuck in creating a program in C++
I currently use MSVC++.net 2003 standard edition. #1 i am trying to create a dll for a program I want to write but don't understand which dll option to choose from , i.e. MFC DLL, Win32 Console Application, etc, etc, etc when first creating a new project. Now, what I want to do with it is, have the dll outside the game and using an EXE to launch it. #2 I have tried to use various options when writing this program, but I keep ge ...Show All
Insignia How to scroll a 2D background
Well, I've been searching the web and I cannot find a single example of someone scrolling a 2D background using Managed DirectX WITHOUT using the deprecated DirectDraw. I can already scroll a background using DirectDraw, but I'm trying to be a good boy and stop using the deprecated code. I've been struggling to figure this out for myself, but I'm just not understanding what techniques and objects I would use to scroll a 2D background. If so ...Show All
nabe Oct 2005 Sample Framework FirstPersonCamera problems.
I've been having trouble implementing the FirstPersonCamera in the new DirectX Oct 2005 sample framework. I can get the Camera to view the scene, but, with the removal of the Mouse & Keyboard callbacks, have been unable to get the framework to recognize input from either the mouse or keyboard in order to move/rotate/etc. the camera. Could you please show a C# sample implementation of the FirstPersonCamera with ...Show All
BCullenward88 creating stars
Im not sure how to do this but im creating a space sim and what I want to do is place billboard sprites in static position's so as you move you get the effect that you really are moving, what should I do here Point sprites are probably a good enough solution to this - although the initial positioning should be carefully done. If you have a background (e.g. not just black space - maybe one with nebula's/galaxie ...Show All
Mustafa Kamil ATA How do I set the Viewport in directx / c#?
I want to render into a portion of my window. I'm assuming that you use the Viewport structure but I can't find any examples. I'm using a camera based on the dxut camera from the sample framework. I can do this in openGL but can't seem to figure out the way to do it here. Any help would be appreciated. Depends on which version of DirectX you are talking about. I will give you a hint in both directions. C# V ...Show All
Steve Whitley How do you play MP3's in DirectSound?
So far, I've figured out how to make my program play wav files using the following code: // "sound" is the name for my DirectSound device DS.BufferDescription desc = new DS.BufferDescription(); desc.ControlEffects = true; DS.SecondaryBuffer buffer = new DS.SecondaryBuffer( "laser.wav", desc, sound ); buffer.Play( 0, DS.BufferPlayFlags.Default ); But if I try to use an mp3 file as my file source (ie, "music.mp3&quo ...Show All
