Answer Questions
Mr. Scott X Please help me im new, debugging trouble
is there any way to create an xbox 360 game out of the template, write the code, develop the game, and then debug it on a pc, and the reason for doing this, is that i dont have the money for a creators club memborship right now, some one help No, if it's a 360 game, you have to run it on the 360. You can however create a PC game and run and debug that just fine using XNA. Typically there is very little work that you have to do to get your XNA PC games running on the 360 when you finally do have the money and the opportunity to play it on the 360. I would recommend develop your potential 360 game on your PC, but every now and then make sure it builds as a 360 game so that you know you haven't used somethin ...Show All
oilyneck Help, can't open my project anymore
I have just installed the Beta2 of XNA Game Studio and it says I can't open my Beta1 project anymore. I have to create another project and re-import all the files Yes, read the FAQ next time ;) http://msdn.microsoft.com/directx/xna/faq/ if you mean this, I don't see the helpful entry, but maybe I'm just too lazy ;) Actually you're right, it's not in there, it's in this post: http://blogs.msdn.com/xna/archive/2006/11/01/xna-game-studio-express-beta-2-available-for-download.aspx Specifically the part that says "The main thing to keep in mind is that you need to migrate your beta 1 projects over to beta 2 manually. This involves cr ...Show All
JerberSoft move a model
hi, can someone please point me to/post code hich shows how to move a model in the way it is facing I currently have a model loaded and at runtime left/right arrows rotate it respectively. what would i do to make it move forward in the direction it is facing when i press the forward arrow thanks for any help -Prodigy i was kinda hoping for 3dcode, heres part of what ive got so far public void UpdateCamera() { view = Matrix .CreateLookAt( new Vector3 (0, 10, 0), new Vector3 (0, 0, 0), new Vector3 (0, 0, 1)); Matrix r1 = Matrix .CreateRotationZ(0.8f * rot); ViewProjection = view * proj; world = r1; } public void ReadInput() { KeyboardState kbs = Keyboard .GetState(); i ...Show All
CSharpShooter Bump Mapping in XNA
Yesterday I wrote a simple shader to do bump mapping and applied it to a mesh (p1_wedge) and it worked great. I was excited about how easy it was. Today (the next day), I run my test again and now the bump mapping isn't working but I have blackness where dark shading should be. (My lighting is messed up ) I tested my shader in FX Composer and it looks fine, just like it did yesterday. Is there any reason why this would happen I was under the assumption that I had to calculate tangent/binormal vectors but yesterday it seemed like XNA was doing that for me when I included those types as inputs to my vertex shader. Was that just luck Do I have to calculate those vectors now Did I miss something I've looked around the web for XNA shader ...Show All
sugrhigh Model Exporting From Maya (.fbx)
I have a question and concern regarding the .fbx model exporting from Maya. Problem: Whenever I load a model into my game that has been exported using the latest .fbx exporter plugin from Maya the model is arranged such that some of the pieces of the model are lined up along its x axis. I did some research on the .fbx file format and found out that while it was designed to be an open document 3D model format, it has been grossly revised by just about all modeling programs which have edited it to suit. Which is why you can't export a model in Maya and then import it into Max and expect it to be the same. My question is this, being that the .fbx file format is flaky at best; what make and version of the .fbx exporter/importer is XNA designed ...Show All
zoomer Question about loading graphics
Does this load from disk twice or does it assign the data loaded into Background.tTitle already loaded in memory to MainMenu.tTitle Background .tTitle = content.Load< Texture2D >( "Content/Sprites/title" ); MainMenu .tTitle = Background .tTitle; If it loads from disk twice what is a better way to reference a graphic from multiple classes. It doesn't load from disk twice. Wonderful, thanks Jim. ...Show All
vinod_psg An XNA WIKI Page For XNA Users And Game Enthusiast
Dear All. I thought of starting something and contribute to the community of developers and hobbyist who are going to use XNA so I started an XNA WIKI page for all of you to share your knowledge with other XNA users. And let’s code for fun. I just started the page few minutes ago so please help editing with me as this is a WIKI page so all of us can participate and edit. And www.learn-xna.com will be a good place for info too, cant help it when I have a chance to plug my site, working on getting some videos up this weekend there is also an XNA forum here :) ya thats right but there is no WIKI ;-) ...Show All
Sundaar Problem updating sprite location
Hi all, This may be a stupid question as I am new to C# but here goes...I defined a ScreenObject class like this: Class ScreenObject { //private variables protected Vector2 _location; protected float _rotation; ...etc... //methods public Vector2 Location { get { return _location; } set { _location = value ;} } ...etc... } // variable = instance of class The question is why can't I use variable .Location.X += 1 in my Game Update method, but can use variable .Rotation += 1. I get a build error that Location.X is not a variable. I have worked around this like this: Vector2 currentLoc = variable .Location; Vector2 newLoc = new Vector2 (currentLoc.X += 1, currentL ...Show All
AE_Cory Having a problem rendering a quad with a texture
Hello- i can't seem to get the quad on the screen. I can render a .x file, but not a textured quad. here is some code: void cBillboard::CreateBillboard() { HRESULT r; VOID* pVertices; v = new CUSTOM_VERTEX[ 4 ]; //create the vertical info. //thisprobably cold only happen once if the billboard isn't changing, but it works for now v[ 0 ].x = 0.0f ; v[ 0 ].y = 0.0f ; v[ 0 ].z = 0.0f ; v[ 0 ].color = myColor; v[ 0 ].u = 0.0f ; v[ 0 ].v = 1.0f ; v[ 1 ].x = myWidth; v[ 1 ].y = 0.0f ; v[ 1 ].z = 0.0f ; v[ 1 ].color = myColor; v[ 1 ].u = 1.0f ; v[ 1 ].v = 1.0f ; v[ 2 ].x = myWidth; v[ 2 ].y = myHeight; v[ 2 ].z = 0.0f ; v[ 2 ].color = myColor; ...Show All
Kristian J&#246;rgensen How to format gameTime, or float.
This is probably an easy question. I want to split a float into whole integers and the first 2 numbers after the "," and pass it into 2 different int's. example: 987,645 int a should be 987 int b should be 64 And where can I find a list of all .ToString format options (ToString("F0") Cheers Alfons The float data type doesn't actually contain an commas, you will have to format them yourself. However, you could convert the float to a string and the parse the string out into different integers: float f = 123456f; string t = f.ToString("000###"); int i1 = Convert.ToInt32(t.Substring(0, 3)); int i2 = Convert.ToInt32(t.Substring(3, 3)); The format string passed into ToString will ensure ...Show All
Ecrofirt opacity
Hi, I exported a simple 3d cube from 3dsmax to a FBX file.The material assigned to my cube is simply a green color with an opacity value of 20. It's rendering fine with 3dsmax. Under XNA, I get a solid cube, it's not using my opacity value. Do I need to create my own shader or I must simply enable a switch somewhere I'm currently using the sample code (basiceffect, ...) for displaying my objects. thanks Luc Blog / Woxxom I've found a solution: ...Show All
shieldy Tricky Question
I have two objects namely Object A which is Transparent Object B which is also Transparent Object B rotates around Object A around the Y axis, and the camera is somewhere on the XZ plane. Transparency is implemented with blending, and the objects are drawn in the sequence above. Result : When Object B is in front of Object A, the scene is drawn normally. When it makes half a rotation and goes behind Object A, it disappears. The reason Because Object A is blended with the background before object B is drawn, so when Object B moves behind Object A, it is not drawn because of the z-buffer test, and is also not visible because it was not blended with Object A. Whats a workaround to this The ea ...Show All
L West Accessing the dashboard on-screen keyboard
I'll take a stab that this will be a no for now, but is there currently any way of accessing the on-screen keyboard that's part of the dashboard on the 360 It's used in games such as Oblivion for entering player names and whatnot. I don't need it for any project right now, but I'm toying with the idea of making a UI component at some point soon, and not having to worry about getting alphanumeric input on the 360 would be a great bonus! I put together a "replacement" for the on-screen keyboard that looks and works pretty much the same... I'm planning on "tutorializing" it and putting it up on xnaresources.com in the near future, but I've got some other components of the game Jason and I have been working on to ...Show All
db_guy D3D9.LIB not found?
I've just ported my C++ app to Vista/VS5 and have finally gotten it to compile. But I'm now getting the following error message: LINK : fatal error LNK1181: cannot open input file 'd3d9.lib' This is rather strange since it must be finding d3dx9.lib OK which is in the same directory. So how do I fix this Thanks, E-Jo I assume you saw this post http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=595754&SiteID=1 [moved to main DirectX forum] ...Show All
Mike737Aviator Managed Direct3D available to the IE .NET Runtime Host?
Hi, I've looked through the FAQ and searched what I could, but I'm coming up short on answers. :( I'm just wondering given the security around managed code, is it possible to create a managed direct3D control (of some sort) in IE to play games / view a Direct3D scene right in the browser thanks! No. There are very nasty security implications letting a browser run a control that gives access to hardware. It's not supported. I took a look at VE3D today and was wondering if that is still true The VE3D ActiveX control seems to access the D3D hardware and if it can than security does not seem to be an issue or am I wrong here ...Show All
