Answer Questions
rbhatia How does hardware fail? Silently?
A basic test pixel shader outputs solid red, but when rendering in hardware the color of the model is solid white. I use ps_1_1 for this and have no errors except the wrong color. I thought the compiler would complain if it could not implament the shader on the currently selected graphics card, and not simply skip the shader step. If this wrong The only error is that the pixelshader is aparently not run. instead every pixel defaults to white. T ...Show All
fhommel need help with code from a book
Hi guys I have the Beginning 3D Game Programming book by Tom Miller In chapter 4 page 62, he says to put code in the OnCreateDevice method in listing 4.2 adding this code causes the program to crash, with the error being Failed to create Direct3D device public void OnCreateDevice(object sender, DeviceEventArgs e) { SurfaceDescription desc = e.BackBufferDescription; ExtendedMaterial[] mtrls; levelMesh = Mesh.FromFi ...Show All
garyf draw sprite doesn't work when inside VS (executable works fine)
This may be a known issue, but I haven't been able to find it anywhere... and I'm a good googler =o)... I have this code (directly taken from Microsoft) to draw a simple sprite: public Device device=null; public Microsoft.DirectX.Direct3D.Spr ite sprite=null; public Texture tex=null; public void InitGraphics() { PresentParameters p=new PresentParameters(); p.SwapEffect=SwapEffect.Discar d; p.Windowed=true; device=new Device(0, DeviceType. ...Show All
TonyZ Creating FullScreen Application without DXUT
Hi, i am trying to create a fullscreen application but when i set the PRESENTATION_PARAMETERS.Windowed to False the Application fails. what i have to set to make it work here is a piece of my code: //WINMAIN: wc.cbSize = sizeof (WNDCLASSEX); wc.style = CS_HREDRAW | CS_VREDRAW; wc.lpfnWndProc = MsgProc; wc.cbClsExtra = 0L; wc.cbWndExtra = 0L; wc.hInstance = hInst; wc.hIcon = LoadIcon(hInst, (LPCTSTR)IDI_MAIN_ICO); ...Show All
Chandan Jhalani XACT Functionality Questions.
How does one make a switch container whereby a sound will loop playing, then when a variable is changed that sound transitions (be it on a marker, the end of the wave, or immediatly depending on the type of sound it is) to the newly defind sound to play. Think of music where there is mellow exploration music, and then you go into combat and the combat music needs to play. Then oncecombat is over victory music needs to play or even exploration mu ...Show All
pkul DirectX: Where to get mesh data and textures?
I'm just starting to play around with Managed DirectX. Can anyone recommend a site to get free mesh data (.X files) or textures Or maybe free tools to model (simple) 3D objects hi, I am begginig to study gamers development, what I am missing is how to construct 3d meshes... I will not draw object models programatically.....can you give me some hints Thanks a lot... Yea Milkshape is the way to go. I am not a "great" modeler, ...Show All
Stein XNA Installation Problems?
Hi there, I've gone ahead and installed the XNA package, following the instructions in the download. The prerequisite's, Visual Studio Partner Edt, and the XNA installer. I've however not downloaded the MechCommander2 package yet. I wanted to see if this was any bit usable without it. I fire up Visual Studio and attempt to make one of it's "content build", and am greeted with a number of exciting errors. Of note, the content build proj ...Show All
KevinKing DirectX Application deployment
Hi There, I am working on a Direct3D application with C# 2005 Beta. It runs fine within and outside the 2005 IDE on my computer, but It won't run on somebody else's comp. (I can deploy non-directX applications though) The other person has the same version of DirectX (9.0c), and the .Net framework (2.0 Beta) as I do. On the other computer, the program crashes right away and it says " myProg has encountered an error and needs t ...Show All
Matt ms user Cursor disappears on MC2 debug
Hi, I build the MC2 project and it runs fine in the release version. When I run the debug version the Cursor disappears when on the main game window, making it very hard to select things. Is this bug known Is there a simple way to fix it Thanks a lot! Amnon Manneberg Hi, I am building the game with the visual studio 2005 solution file. I did not apply any patch - should I I am able to get ...Show All
DiverChris Want to make a high end game
Hello everyone, my name is Mike and this is the first time I have posted on these forums. I am beginning to work on a MMORPG and I would like to have anyone help me out that would like to be part of the team. I am currently using Borland 6, but I am looking for an inexpensive version of Visual Studio C++ so I can get better at using DirectX. Please email me at plonnon@hotmail.com or find me on AIM at receev if you are intereste ...Show All
hrjordan dxwebsetup wierdness - deployment with app
Hi, sorry to post this in this forum, I am unsure where to post it. OK here is the thing. I have a deployment problem. I am creating a setup with my app, created in VS 2005 Pro, using C#(.NET 2.0) This app of mine requires DirectX runtime end user files, or the SDK but really the runtime files. Now, during installation, I bundled in the dxwebsetup.exe. This executes fine. 2 main problems here already: 1 ...Show All
R.Tutus DirectX or Managed DirectX ?
Hello, it's my first post here ;) I've been developing in DirectX for several years (using c++). I am thinking if it's worth to move to the "managed world" I can do everything in c++ and directx but creating apps in c# and mdx is much faster and simpler. What is your opinion Is it huge performance penalty making 3D games in c# and mdx That's really part of the problem - people need to stop thinking that your language preference somehow ...Show All
tonyr1977 Lighting and Rendering
I am just learning DirectX in C#, I have been through many tutorials on the net, gaining a bit from each one, but I can't get the rendering quailty right. I'm sure there is just some little property setting somewhere, but I can't find it. I'm trying to render a simple teapot- right now, it looks like this: http://www.magentastudios.com/cp/teapot.jpg here is the code: http://www.magentastudios.com/cp/teapot.txt I'm using C# 2005 Ex ...Show All
Douglas911 Vsync and timer problems
It seems that using a PresentInterval of one in windowed mode causes my application to miss frames periodically. About 1/10th of a second every couple of seconds. This doesn't happen in full screen mode. Now what's really weird is that if I hibernate my computer with the program running, when it comes back the windowed mode doesn't vsync at all. I get about 30 FPS with lots of tearing, and Present() taking lots of time (sometimes 40 ...Show All
onlinehawk Stencil Buffer write to color buffer...
I made my mirror work, so the stencil buffer work, the reflection works, but the mirror is drawn to the color buffer When I only want to draw in the Stencil buffer... I produce a mirror, a plane reflection in it, and...another mirror (the one that should only draw in the stencil also appear in the Color Buffer...) Here is the code I don't understand...why would this not write in the color buffer and why if I use this it's not working... ...Show All
