Answer Questions
Puzzled XNA/Xbox 360 memory management heads-up...
I was just browsing through some docs on the 360's heap manager, and it turns out it is a compacting mark and sweep collector rather than the generational model used on the desktop... So... what's the deal regarding: Large block allocation (will it have a large object heap like the desktop version ) GC pauses times (do all threads halt during GC) Rico Mariani recommends a heap size equivalent to the Gen 0 size on the desktop, i.e. ~cache size. That seems way too small unless we are dumping lots of game data into unmanaged memory! Andy. AndyL wrote: I doubt you'll even be allowed unsafe code blocks on the 360 due to the security implications. You're correct. 360 games using GSE will exist i ...Show All
mihao2002 Game Loop? WTF?
Read from file binaryreader Your post threw me off on several different levels. First, XNA GSE Beta 2.0 We've been using XNA GSE 1.0 for quite some time now (december 11th to be exact). Here's a link if you want to download it: http://www.microsoft.com/downloads/details.aspx familyid=A73A7E71-FF41-432D-A0EB-043E904A1905&displaylang=en Second, where's your sprite class coming from Just use a texture2D: Texture2D sprite = content.Load<Texture2D>(@"Content\Texture"); then to draw it, you have to use a spritebatch: SpriteBatch spriteBatch = new SpriteBatch(graphics.GraphicsDevice); then in your draw method: spriteBatch.Begin(); spriteBatch.Draw(sprite, new Rectangle ...Show All
akin_l DirectInput with Parallel Port Joystick
How to create a DirectInput device connected to parallel port The parallel port uses the interface lpt-switch. thanks jpimentel, There is a complete sample in the SDK. The most recent version for this can be found here . If you download the SDK for Feb2007 there is also a solution in the ( SDK root )\Samples\C++\DirectInput\Joystick directory. Thanks. Cale This would really be up to the DirectInput driver. The driver needs to make the device appear to DirectInput. If this is an exisiting device then contact the manufacturer if its something you have built yourself then start here http://msdn2.microsoft.com/en-us/library/ms789837.aspx ...Show All
CalBob kW X-port for 3ds Max 9 (X file exporter with XNA support)
I have made a preliminary version of the kW X-port plug-in available for Max 9. The full Max 9 download from Autodesk is almost 3 GB and is still going, so I haven't been able to test it yet -- it's just re-compiled with their new SDK. I give it a good 90% chance of working fine, though :-) The version for Max 8 has been tested, of course, and is still available. It might work as far back as Max 6, because they are apparently version compatible from 6 through 8, but I have only tested on 8. kW has some features that might help with XNA usage, such as support for the Max Direct3D9 material with shader parameters; support for mirroring along Z and mirroring the V coordinate ; support for properly exported skinned meshes even if ...Show All
leonlai Custom ContentTypeReader
Hi, I'm trying to make my own content loader for a custom font file. I've got the custom file to compile using an importer that I wrote, and I can see the XNB file is generated as expected, but the content manager can't seem to find my ContentTypeReader. Here's the writer: [ContentTypeWriter] public class GameFontWriter : ContentTypeWriter<GameFontStub> { protected override void Write(ContentWriter output, GameFontStub value) { output.Write("hello"); } public override string GetRuntimeReader(TargetPlatform targetPlatform) { return "Importers.GameFontStubReader"; } } The game compiles fine, but when it reaches the line: hudFont = content.Load<GameFontStub>("Fonts/main"); ...Show All
WV John Geometry instancing support on 360?
I'm working on a geometry instancing demo and I noticed in the XML documentation for GraphicsDevice.SetFrequency() that the method (and related methods) are "Windows Only". Is this a mistake That's interesting. It's the first time I've ever heard anything like that (about performance being hurt with geometry instancing). Do you have any online references of articles/tests I could read Here are the NVidia thoughts: "Use of instancing isn’t free. There is a small amount of per instance overhead in the driver (luckily this is much less than normal draw calls). Also, since we are passing down extra instance data in the vertex stream, all the instance data adds to our vertex stride, which will reduce our ve ...Show All
WestMike Torque X for XNA release
Hi guys! Somebody know when Torque X will be released I think everyone in here is greatly anticipating this release. For now, it's fun just to get a good feel for the XNA framework. As long as it doesn't drag out too long.... any hopes to have it for free I dont know the specific answer, but their website says to: " Keep your eyes on this page for more information regarding release dates and pricing information." http://www.garagegames.com/products/torque/x/ That's probably a question best left for Garage Games. I don't think they have announced any pricing details yet. Mehdi Mahdloo wrote: any hopes to have it for free Well: 1. Garage games needs to make profit to pa ...Show All
NickBuck Need help
Where can i find some good tutorials and manual for XNA Game Studio It can be in .pfd. Google "XNA tutorials" Search this forum for tutorials, most people have commented on quiet a few. I keep a list of tutorials and blog about them regually during my learning experience with Game Development and XNA, have a look. of the best so far (appologies for anyone I miss off my favorites, only got a few mins) www.xnaresources.com www.learnxna.com www.xnadevelopment.com Also worth a mention is the Game Programming Wiki http://gpwiki.org Happy learning Rgds Darkside look at the help/contents section of XNA GSE. I also have a ...Show All
spanky4_3 Game Programming
Hello could i know if someone knows any tutorial ( on-line or off-line ) about DirectX 9.0c or lesser... im trying to make a game ( ) and if don't have any tutorial i must get another way ( like OpenGL ) thanks, bye Have a look at the XNA Framework and the Game Studio Express systems, you can find forums on this site that have lots of content to get you started. Also if you check out the dev center at http://msdn.com/xna you will find even more links to resources to help. Hi, you mean that you need it to be DX 9.0c or older Wy not just try XNA or ManagedDirectX for .Net Anyway, take a loot at www.gamedev.net www.gamasutra.com There are tons of info and tutorials there... ...Show All
ralfkret Custom processor with additinal data - Content pipeline
I understand one can use the Tag property to add custom data while processing a model. Is that the only way Meaning, do I have to create a whole hierarchy of user defined classes with the Tag property as a root I though of something like deriving ModelContent but that's sealed. Guess you are like the rest of us and just want to be able to read the vertex and index data from a model Hopefully they'll add it so that most of these issues don't need custom importers. Create a collision skin (other than the supplied bounding sphere), add hard points to attach weaponry or any other thing that would require processing of the original geometry or exporting custom data directly from the modeling tool. ...Show All
Cang Sam Model is drawed incorrectly
Hello, I have tried to export to both .fbx and .x format, but model is drawed incorrectly. What could be the problem http://img204.imageshack.us/img204/5971/screencc1.jpg That problem looks like your View and/or Projection matrices are not set up correctly. Yes, ti looks that your view and device is not set properly. ...Show All
Kinetic Project type is not supported by this installation?
If I start a new c# project using any of the xna templates, I just get a "The project type is not supported by this installation." error. Suggestions welcome :) I am having the same issue. I am trying to open it from the XNA Game Studio icon... and that is the error I am getting. I do also have the full version of Microsoft Visual Studio 2005 Standard. Is there a work around for this Have you tried re-installing XNA Game Studio Express Can you give me a few more details about your machine Yes I have trying un-installing and re-installing XNA. Same error both times. As far as my machine is a 3ghz Pentium41gb Ram and Ati Radion X600 256mb. I have Visual S ...Show All
Thanh Where's the XAP for spacewar?
The sound project file. Is there one It seems all the sound content is locked up in SpaceWar.xgs, spacewar.xsb, and spacewar.xwb files. How do I load those to edi the sounds Can I load multiple sound, um, data files There's nothing to stop you opening as many soundbanks as you like. Don't know...you'll have to wait for the Lords of XNA to comment. -Mike Hi mpipe, See this thread -- http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=756821&SiteID=1 I think there's no way to extract the sounds from the beta, but they will hopefully make the sounds and project file accessible in the 1.0 release of XNA GSE. -Mike Ok, thanks! Do you kn ...Show All
Mark Cooray InvalidOperationExceptions playing XACT Cues
Hmm, this is quite odd ... this error seems to pop up after a while of me playing Xact cues $exception {System.InvalidOperationException: This resource could not be created. at Microsoft.Xna.Framework.Audio.Cue..ctor(UInt32 handle, String name) at Microsoft.Xna.Framework.Audio.SoundBank.GetCue(String name) at ProjectPulse.Piper.Update(GameTime gameTime) at Microsoft.Xna.Framework.Game.Tick() at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e) at Microsoft.Xna.Framework.GameHost.OnIdle() at Microsoft.Xna.Framework.XboxGameHost.Run() at Microsoft.Xna.Framework.Game.Run() at ProjectPulse.Program.Main(String[] args) } System.Exception {System.InvalidOperationException} For the time being, my title has no v ...Show All
Roman S. New to this - Keyboard Input
Hey guys. I'm pretty new to the C# language. I've downloaded XNA and I've been messing around trying to create a pong game. So far I've managed to get the two paddles on the screen along with a red ball. I want to add keyboard input to the two paddles (they are sprites). I've been looking around on how to add keyboard input, but the more I look, the more confused I get. If someone could help me that'd be great. Some other things I am in the dark about are how to make your window application a bigger size, and if there is a coordinate plane for the window application. I normally find myself just guessing coordinates for my sprites untill they are places where I want. Thanks. Thanks! I'll have to try that ...Show All
