Answer Questions
tyler000 Need a Graphics Card with Min XNA specs
I just ran a tool and it appears my card is not complient. I was ready to give up Beta'ing this app but then saw some of the cool stuff people are doing, so I gotta get me a card. Do any of you guys have a link you can reccomend for the least expensive graphics card that should meet the requirements to develop with the express app If you know the specific brands/models likely to be the most resonably priced that would be usefull information as well. Thanks in advance for any reccomendations. I would go for a Geforce 6XXX card. It supports Shaders 3.0. The ATI 9 series is only 2.0 compliant. I didn't say anything about "branded pc's", just 3D graphics cards ...Show All
sk007 Xna and managed d3dxx?
Hello, As many others I am also very excited about the prospect of writing games for the xbox 360. However, I am a bit confused about how this Xna studio thing relate to the future, which for now means vista and d3d10, but also further down the road. The xbox 360 will forever stay a dx9(+a bit extra) system, but windows development will move on to d3d10, d3d11, etc. It seems to me that in order to support common binaries or at least api's between xbox's dx9 and vista d3d11, the api you code against must be very abstract, so you dont even know if you code against a d3d10 card or dx9. Or are you planning to allow us to target one set of api's for xbox 360 and another for windows in the future Or will managed languages be hold back and ...Show All
Rohit Tela Transforming a 3D position to a screen (2D) position
Hi I'm trying to transform a 3D spacial position to a 2D screen one (I'm looking to align various sprites to 3D objects rendered on the screen). The following code kind of works although It does not align directly. I'm probably missing something somewhere. Any help/advice appreciated! Vector3 v = Vector3 .Transform(Player.Position, ProjectionMatrix); v = Vector3 .Transform(v, ViewMatrix); Vector2 p = new Vector2 (v.X/2, -v.Y/2); spriteBatch.Draw(Textures[ "white1x1" ], new Rectangle (640+( int )p.X, 360+( int )p.Y, 32, 32), Color .White); Its the... Vector2 p = new Vector2 (v.X/2, -v.Y/2); Code line that confuses me. Why I have to halve the X & Y values (including negating ...Show All
AndrewSeven Render to Texture and Shaders
Hi! I created a volume fog shader, i have 2 passes where i need to render depth of object to textures. How i can pass render targets from DX to shader simple: effect.BeginPass(1); effect.SetValue("back_Tex", backTex); effect.SetValue("ViewProjection", device.Transform.World * device.Transform.View * device.Transform.Projection); mainMesh.DrawSubset(0); effect.EndPass(); dont work :( Ok, you have to do some steps: 1) Ensure that you texture are render targets: LPDIRECT3DTEXTURE9 myRenderTexture; D3DXCreateTexture(m_pd3dDevice, xres, yres, 1, D3DUSAGE_RENDERTARGET, D3DFMT_X8R8G8B8, D3DPOOL_DEFAULT, &myRenderTexture); Verify that your video card can use the format X8 ...Show All
DQM Compile error in dxstdafx.h
Hi, I'm writing a simple program in Visual C++ 6.0 to play some sounds in wav files. The project is a MFC Windows application. I've added the "include" directory of the DX SDK in the compiler options and the "lib" directory in the Linker options. I've also added the "samples\C++\Common" one for dxstdafx.h. Using precompiled header gives me errors so I've choosed to not use precompile headers in compiler options. Only including the line #include <dxstdafx.h> gives this errors: g:\programmi\microsoft directx sdk (february 2006)\include\dsound.h(305) : error C2146: syntax error : missing ';' before identifier 'dwReserved1' g:\programmi\microsoft directx sdk (february 2006)\inc ...Show All
bchan Issue with XNA Tutorial and scrolling backgrounds
Greetings, I followed the second XNA tutorial, and got to creating a scrolling background for the space ship program. My problem is that as soon as I added the code from the tutorial for the scrolling background, the space ship became somewhat transparent, meaning that I am not seeing it like a solid rather a sum total of spheres and other geometries. For example, I can now see the 4 spheres on the surface of the ship in their entirety, and also the scrolling background behind it. Can someone help me out here Thanks! Thanks, BlueG. That was very helpful. Yep, the Batch.draw statements in that tutorial use the layerDepth parameter, and even after playing around with the ...Show All
Maeestro XNA GameStudio Express: Calculate Normals
Hi. Right now I'm using VertexPositionColor and an index buffer to create a terrain and I'm going to do a transition to VertexPositionColorNormal. I currently have the following code: using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Components; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Storage; namespace _DStarField { public class Terrain { private GraphicsComponent graphics; private Camera _cam; private int width; private int height; private int [ ...Show All
abhishek_6023 0x8878000a only in Win98
Hi all, Im using windows 98. And Im trying to use a 3rth party aplication for voip that uses Portaudio and it does not record any audio. The play is working ok, but i can not record. When i debug the app, it returns an error calling the following function. result = IDirectSoundCapture_CreateCaptureBuffer( dsw->dsw_pDirectSoundCapture,&captureDesc, &dsw->dsw_InputBuffer, NULL); Its in the "dsound_wrapper.c" file. Its strange because in Windows xp it works fine ! ! ! Best regards, Windows98 only supports a single sound capture buffer, so it may be that more than one call to CreateCaptureBuffer is being made. ...Show All
GethWho crash
how come everytime i stop debugging visual studio c# crashes nvm...figured out ...Show All
Sumit Bhatnagar I need sum clarifications
Hi all, I just started to learn 3D GameStudio ( it's a game engine), it's ease to learn it has a GUI wher u can design ur level and assigne behavoirs , instant walkthrough etc. Is possibile to do that in XNA, I mean it has a GUI couse I installed it with the VC# express and I tryied to find graphic windows or sumthing that u can deal with interactivly . I found only code editor. Is this the only way to do in XNA I must do every thing by coding In case I want to learn XNA where can I start ( I don't now nothing about VC#) and I need long time to start doing sumthing interesting. Thanks for ur Help. wtmmag wrote: In case I want to learn XNA where can I start ( I don't now nothing abo ...Show All
Eric66 2D - Draw points on screen
Hello, I'm experimenting with a 2D space-shooter type of game and need to implement a starfield. To that end, what is the easiest way to draw a single pixel on the screen I'd like to be able to do this using normal (positive only) display coordinates (ie: 0,0 - 1024,768). I'm not familiar with cameras/matrixes/transformations but I'm hoping I won't need all that just to do something as simple as this seems to be. Thanks! -newbie If you are rendering a point list with a BasicEffect, set the world and view parameters to Matrix.Identity and then set the projection to Matrix.CreateOrthographic(). I forget the parameters, but basically you specify your min X, max X, min Y, and max Y and Z clipping. For your ...Show All
airwalker2000 Pixel Manipulation of Textures
Hi All I have created some 2d textures from bmp files and want to combine them in a new texture. I have been trying the surface getData()/setData() commands unsuccessfully. In fact if I get the data from a surface, modify only one pixel of it, and set the data back to the same surface I get a graduated pattern instead of just a pixel being modified Which is not really what I was expecting. Any help would be great, thanks. RF Hey : thanks for the masses of comments they were really helpful !!!! ha I have found an answer though. From what I understand textures live on the video card and it take a long time to retrieve them, modify them, and return them. However XNA seems to provide the m ...Show All
stswordman Low FPS problem
Hi, I'm making a terrain editor usinv MDX. The terrain is basically a mesh consisting of rectangles (2 triangles) per subset. The problem is that when I make a terrain larger than 20X20 (so 800 triangles and 400 subsets) my fps falls to about 15-20. Removing textures doesn't help. Here is the simple bit of code for terrain drawing: public void Draw() { for (int i = 0; i < TerrainMesh.GetAttributeTable().Length; ++i) { device.SetTexture(0, Textures ); device.Material = Materials ; TerrainMesh.DrawSubset(i); } } I also get the same bad FPS if I exclude these lines from my PresentParameters settings: PP.AutoDepthStencilFormat = DepthFormat.D16; PP.EnableAutoDepthStencil = true; I would to hear ...Show All
--Alan--- D3DERR_NOTAVAILABLE while build of first example in help how to do
I used to code in pascal, cobol, assembly, basic, etc, but not C. From: Your First Game: Microsoft XNA Game Studio Express in 2D following along and doing the first build, I get the error above. I did not think I was calling the 3d engine only the 2d. I cannot find any help on the error, where to look, etc, except what is in the error window when you cursor over it. I cannot figure out how to copy the error in that popup window to look at it further. I know some dislike nubies, but please help if you know the answer. Its disheartening to type in only 6 lines of code and not be able to debug it! To say the least. Thanks OH OH OH, I figured out how to copy the error: Error 1 Building content threw InvalidOperationExcept ...Show All
Alan M. Direct3D Textures
I am unable to create a Texture from a bitmap, but everything else works correctly. The same code works perfectly in Visual Studio 2003. DX3D = New Device(0, DeviceType.Hardware, MainForm.picDrawArea, CreateFlags.SoftwareVertexProcessing, PP) GetTexture = New Texture(DX3D, bmp, Usage.SoftwareProcessing, Pool.Default) Problem solved with: Texture = TextureLoader.FromFile(DX3D, "filename") Texture = TextureLoader.FromStream(DX3D, texstream) The bitmap is created from a file: Dim bmp As Bitmap = New Bitmap("d:\test.bmp") In some cases the bitmap is modified, in others not, neither works. If I save the bitmap j ...Show All
