Answer Questions
AlexanderJ C vs C#
Currently I'm taking a C class at my university and I was wondering how different is C# from C code wise. Thanks Sebastian The event driven aspects of windows programming wasn't a problem at all because you could still write procedurally and get the job done. I was more referring to writing your own classes and thinking about your project in terms of objects rather than the line by line code that needed to be written. I started programming about 30 years ago with Basic. Many years later when I learned C I found it a bit different as far as the syntax was concerned, but conceptually I could do the same things in pretty much the same way. C had a few advanced f ...Show All
Gene Best Newbie Q: How to get rid of sprites
Greetings! Just getting started, and got a project combining the first couple lessons: displaying a sprite and receiving controller input. I'm simply putting a sprite on the screen when a button is pressed. But in order to "remove" the sprite when the button is released, all I can figure to do is set the sprites width and height to 0. Tried spriteBatch.Dispose and .End, but while debugger doesn't mind, the exe crashes. So, how does one go about getting rid of a sprite, or am I making this more difficult than it needs to be Thanks! You could wrap the sprite up in a custom class and add a visable flag... then in you draw calls a loop that would only draw visable items. The boo ...Show All
zille What's up with deleting posts mech commander downloads?
I just don't get it. My posts have been removed, I mean any <fill in the blank> could just google for the keywords and get a bunch of legit game sites that host the shared source code (since it was released for free) and yet on these forums it's all hush hush untill MS fixes the link What gives Hmmm, apparently you misunderstood my post. The threads about MC2 source are still there, just my posts showing alternate downloads (since MS link is down) for MC2 source are gone. Also, MC2 source IS related as it is meant to be the primary example showing off the XNA product. Yes, But it is not related to XNA Game Studio at this time. From our website: Mi ...Show All
Juan64 what is best way to render scene with great number of textures?
xna help: To use the Texture3D.GetData or Texture3D.SetData methods, Texture3D.ResourceManagementMode must be ResourceManagementMode.Manual and Texture3D.ResourceUsage must be ResourceUsage.Dynamic . the problem is that texture3d constructor dont have resoursemanagement parameter (while texture2d has)! is this a bug im currently trying following: TextureCreationParameters tcp = new TextureCreationParameters (128, 128, 128, 1, SurfaceFormat .Color, ResourceUsage .Dynamic, ResourceManagementMode .Manual, Color .White, FilterOptions .None, FilterOptions .None); tsz = Texture3D .FromFile(graphics.GraphicsDevice, "tex3d" , tcp); i've successfully loaded texture, i hope i'll be able to get/set ...Show All
MichaelPer XNACommunityArcade - Need game info / links...
XNAResources.com is about to launch the next site in our site network... The site is called XNACommunityArcade! We hope that it will turn into THE CENTRAL listing place for all XNA created games! Since right now there is no "Arcade" for the games developed with XNA we want to start building one for the community! Here is a screenshot of the site: http://www.xnaresources.com/xnacommunityarcade.png The site will be launching this weekend but we wanted to get information about the games that everyone is working on or has available right now... if you can please send and email to contact@xnaresources.com with the following info: 1.) Game Title and a GOOD DESCRIPTION 2.) Game Details: Windows Comp., XBOX Co ...Show All
Anonomuys Skysphere Demo
It's finally all working, thanks for all the help! I've created a Sky Sphere demo to help me figure out how to do such a thing for my game. The texture for the sky sphere gets distorted around the poles, and I haven't figure out how to fix that, but otherwise it looks pretty cool. If you're interested, I've uploaded the source code and artwork to: http://www.spellflight.com/GameModels/SkysphereDemo.zip Here's the readme: Skysphere Demo By Michael Billard mike@sbillard.org This Windows XNA demo displays a sky sphere and a simple model that flies around the game world. You can control the model's rotation and position. You can also control the camera rotation and camera position. Background texture by NASA. Models and te ...Show All
Chris Howarth Strange effect when using translation
I have a strange problem when I'm trying to move one model around. When the model is in the center of the camera it look okay ( http://www.marmalad.com/milan/sample1.jpg ) but when I place it away from the center (let's say to the right) the model seems to be rotating as well ( http://www.marmalad.com/milan/sample2.jpg ). I would like to ask why is this happening Why is the model rotating when I'm just using translation Thx in advance. I'm absolutely sure that it was because of the culling machanism and XNA actually uses right-handed coordinate system by default. Proof (MSDN XNA FAQ page): What coordinate system does the XNA Framework use The XNA Framework uses a right-handed coordinate syste ...Show All
LukeR_ Game.GameServices article
I put up an article about Game.GameServices and the IGraphicsDeviceService. http://blogs.msdn.com/mitchw/archive/2006/09/06/742955.aspx A LoggingService. Great example :). That is one of the game services I was going to do as well. Of course, I'm also trying to think of a way to make it run on the 360 as well so I'll have to be aware of the size of the log. Thanks Jason, it worked beautifully. I ended up writing an article for OpenXNA... http://www.openxna.net/node/60 And when it's the time to deregister service from game& In dispose And when it's the time to deregister service& In dispose method& jsedlak, if you have .NET Reflect ...Show All
erikkl2000 Animation mesh sample
i see there is a lot of folks that ask for a animation sample well it is all ready been written use this http://dtxna.spaces.live.com/ download it it works with all fbx and xfiles but there is a bug in 3dsmax so what you shood do is export your model from 3dsmax in fbx format and load milkshape up and load the fbx file in and save it agian and you will see it is now working i have tryed 50 diffrent models exported from max 7,8,9 and when i load them in to max again there are errors , some bones are gone , and some times there are missing polys , and animation but when i export from max and load the model into milkshape and save it out again all the models are in smaller size and all is working perfect ...Show All
lutalex Custom model format?
ok I'm very new to XNA and C# but have programming/game development knowlegde (mainly using DarkBASIC pro and BlitZBasic) but I now want to use real (I use that work losely) game development tools. my question is this, is it better to create my own custom model format, one that contains data on vertex positions, texture, normals and light properties and create some kind of model loader which converts it to the data XNA needs to display the model if so what is the best way to write a custom model loader, i'm not worried about storing animation at this time though, I've read through the documentation and came across processors, importers etc but have no idea where to start, does anyone have any suggestions and/or source code that a ...Show All
AndyL I need help with game screenshots
I just created a demo of pong and i put it on threesixbox.com, but I want to have a screenshot of my game so people can see what it looks like before they download it. I really don't know how to do it, and I was wondering if anyone know. Thanks. A simple method is to just use the print screen button on your keyboard and then paste it into MS Paint, and then save as a file. Or, an XNA method is to do: Texture2D ss = new Texture2D (graphics.GraphicsDevice, graphics.GraphicsDevice.DisplayMode.Width, graphics.GraphicsDevice.DisplayMode.Height, 1, ResourceUsage .ResolveTarget, graphics.GraphicsDevice.DisplayMode.Format, ResourceManagementMode .Manual); graphics.GraphicsDevice.Resolv ...Show All
Stefano_Azzi Supported gamepads (Spacewar)
Hi, Is just the XBOX360 game pad supported, or should other pads also work. I've tried connecting my old MS Sidewinder Plug and play pad, which is working in other programs, but not here. Is there something I need to set up And (if other pads are not supported in spacewar), is this a limitation of the spacewar demo that can be coded around for windows based games Chris where i can find a list of supported controllers Herensuge wrote: Is there any easy option to play Spacewar with the keyboard . This is my first day with XNA Game Studio Express. Please search the forums before posting, this has been answered many times this morning http://f ...Show All
Heikki-Pekka Noronen Custom Content Manager - Generics Question
Greetings & Salutations: I am trying to put together my own kind of "Content Manager" as the current one appears to only work with content that has been added to the project, and not with say, a file on a network drive somewhere. I really like how the "XNA ContentManager" uses generics, and was trying to implement it myself, but encountered some errors. I looked on the net but couldn't find the answer I was looking for. Basically, I would like to be able to fetch any kind of asset from my own content manager, regardless of what it is . The following function does not work as it is written. Could someone point out the proper way something like this is supposed to be implemented (PS. The content is stored in dicti ...Show All
Deepa7476 Issue with HowTo: Rotate and Move a Camera?
I'm trying to work on figuring out some simple camera manipulation and have been going through the information on the How To: Rotate and Move a Camera. At the bottom of the help file is what appears to be the complete code needed to run the example. However, this code does not compile when pasted in a new project; the method FrameRender() refers to an undefined method called UpdateCamera(). Is this method something missing from the example Hi Shane, Sorry about the confusion, the UpdateCamera method was unintentionally stripped from the source code and will be in the next release. The UpdateCamera method is almost identical to the UpdateCameraFirstPerson method without an offset from the avatar's position. I've copied t ...Show All
Michael Klucher - MSFT Using source codes
I just downloaded the Quake 3 source code and was wondering how to import it into this program. Not to mention any potential licensing issues between the two projects (I haven't looked at the XNA license for a while, but I'm pretty sure it's not GPL-compatible). In other words - you don't. Q3A is a totally different beast than XNA. You'd basically have to rewrite the whole thing more than likely. +1 for Jim :). Talking about making a long story short :). Yeah, I can be long-winded sometimes :P. This is just my opinion, but if you really want to port Quake 3 into XNA, it would be best to start at the beginning with XNA. Get familiar with XNA via creating your ...Show All
