Answer Questions
funcdoobiest Could C# be the future of gaming?
Since XNA is using C#, and is is a more intuitive language than C++, is it possible that in the future that C# will dominate, espessially in AAA titles. Could XNA be ushering a new way of programming in the main stream I think people underestimate the performance of managed code. There are not many scenarios where unmanaged code will significantly out perform managed code. When people start to better understand how the garbage collector works and ensure that objects stay small and prevent them from getting promoted to generation 1 and 2 it will make a big performance increase. From what I understand the GC on 360 is the same as in the compact framework, so I’ll have to read up on the differences. If you l ...Show All
Mapa3matuk I'm Lost In Versions
Hi, I'm Yesser. VB,VB.NET,C# Programmer. Lately I started thinking of making 3D games (It's the only field that I didn't involve into). But I had a problem that I don't know what I need to start programming. I was told to download DirectX9 SDK, but I couldn't because when downloading the Microsoft Website is not Writing the version but the date of release so I don't know what to download. Can you please help me or give me a like to the right Version ------------------------------------------------------------ Secoundly ,What steps shoud I take to get started . Thank you very much Download the latest SDK which is always linked from here http://msdn.microsoft.com/directx/ the current late ...Show All
ChinaTiger Fullscreen problems....
EDIT: I am using Beta 2. I use this as the constructor method... public Game1() { graphics = new GraphicsDeviceManager(this); graphics.PreferredBackBufferWidth = 640; graphics.PreferredBackBufferHeight = 480; graphics.PreferMultiSampling = true; graphics.ToggleFullScreen(); content = new ContentManager(Services); } Works great. But when I change the resolution to 800x600, all I get is a black screen. The loop is still running because I can still quit the program. I have also tried 1024x768, that works too. Thought maybe it was an aspect ratio problem, but they are all the same, 1.3333... I have tried turning the multisampling off to no avail. Didnt think that would be it anyways, I play World of Warcraft at 800x60 ...Show All
Code-Master XNA Requirements Checker
Well, I finally decided to write a little utility that checks for the required components of XNA (excluding .Net2.0 because i wrote it using .net 2.0 ) because I've seen just too many threads about the game not working on non-dev pcs. This program lets the user know if they have an outdated graphics card, installs the latest directx using directx webinstall, and installs the xna framework redist 1.0. I bundled it together inside a NSIS installer package because it was the easiest method i knew of. Not the most elegant way, i know. If anyone has a better solution, please let me know. I included the license for both directx and xna, and if i missed any legal issues with redistributing the packages in my own way, please let me know. I ...Show All
SOTY_Programmer 2D Texture requirements
Hello, which texture requirements apply to 2D textures Max size Is it required that the size is a power of 2 For best performance I have read in a thread, that I have to minimize texture switch during a sprite batch. So should I combine all animations in a single texture or can I keep individual textures per animation Thx BerW I'm no expert on the subject, but yes, the drivers seem to prefer, especially on older cards, power of 2 texture sizes. Put all relevant images in one image, but keep in mind there are upper limits typically around 2048x2048, though it changes all the time and I haven't been keeping up with it. Thanks for clearing that up for me. The ...Show All
nature0276 The values used in the attempt to create the GraphicsDevice were invalid.
Is this because my graphic card does not support shader model 2 I didn't even know of this requirement till I saw it on the readme file. Time to change my geforce4 According to my Device Manager, I have a Rage 128 Pro Ultra GL AGP. What should I have in order to create and run games in XNA AG Nvidia GeForce 4 Ti 4600 here, same error - total bummer too, might have to work on the laptop for a while until I either buy a new card or a solution arises... still, looks like nice concise code, reminds me of the Jad engine, good stuff guys at least from what I can see of it :) And apparently I'm unable to make edits to my posts. Anyway, the error is this (i ...Show All
ZhenYuan By the numbers - why so big?
My content, using JPG's, is roughly 14.4 MB. However, the XNB version is roughly 515 MB. About 38 times bigger than the original. Is this normal What steps do I need to take to reduce the size of this I'm just begining with my development but if I can't augment this behavior of the Framework I'll have to serverly strip down my game. Maybe, I'll have to replace Content<T> altogether ( ) Power of 2 is not the problem I guess I could go monochrome And that would eliminate item 3. Since when is an 8kb image large The issue at hand is that the framework is magnifying it 32 times. Microsoft already has the code written to read, write, and modify images in numerous formats. JPG is just one of the many tha ...Show All
Jeremy Lew Playing Videos?
Hi there, This is just a curious question, but does or will the XNA Framework support playing of videos I'm wondering because most games play an intro video when they load, and some play a video in the menu background. Just wondering if they would need conversion to a specific format, or some other means. Or, is anyone up for a challenge here LOL. There is currently no video support in the XNA Framework. As always, if this is something that is important to you, please send in feedback so we can prioritise what to add in future version. Pavcules wrote: This is just a curious question, but does or will the XNA Framework support playing of videos Not directly, no. Most of those are done with ...Show All
wildthink Unable to load content && X360 Club sub question
Hi, I'm creating a demo on the windows version atm, but it refuses to load any content - A couple of textures in this case. I created a folder in the project called Sprites, then added two existing items, one a jpg off the net, the other a bmp created in paint. I named the assets "Sign1" and "Metal1" but when I went to load them, Texture2D spr = content.Load<Texture2D>("Sign1") it threw a contentnotfound exception. I've tried everything I could think of, including turning on copy to output dir, and by referecning them by their actual filenames. all the same exception. Is it a bug or am I doing it wrong Also, getting a 360 in a week or so and want to do coding on it, but i have no credit card, will i be ...Show All
T E N first impressions
Install seemed to work ok. - I chose complete when it finished it didn't launch either a readme or vs launched vs just got the same/normal ide I always get. File -> New project, brings up the usual screen, with 3 new items for creating xna games. Double clicking on space wars starter kit item, eventually brings up a large project, which when run doesn't appear to work - tried pressing a/b/x nothing ever happens - machine/grphx may not be upto job. tried looking for examples, nothing I assume ther're on my hard disk somewhere Now need to find tutorial on how to use this thing You can use either one actually, there's no difference. The one I bought for my PC is an XBox360 cont ...Show All
ermark 3-D Object Creator?
Well I am new to this program, I have started to edit small thing with XNA like turn a space ship into a Meteor or give Stupid amount of money like 10,000 but now i want to inport in new 3-d objects instead of the space ship any program Recomendations If yes please post on t his thread or email me, partypooperjon@hotmail.com Check this thread. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=988812&SiteID=1 I have used 3D Canvas . It is decent and exports to many different formats including .X. I use Milkshape 3d ( http://chumbalum.swissquake.ch/ ) for model editing. It's pretty easy to use, and only $30. I use LithUnwrap ( http://files.seriouszone.com/download.php fileid=198 ) to e ...Show All
RickGaribay.NET editor directly accessable inventory limited to 602 entries of buildings.csv
The editor can only access 602 entries from buildings.csv directly; entries beyond that are ignored. How can this be changed Do you have an example file that I could download to test this Looking into it myself nor Frank could see any reason why this would be case. To be honest they were just probablly picked. There may have been a performance reason, but probably not as important for this game on machines now. If you download my expansion pack and install it on top of your MC2 installation (CD or Source code Version) you can experience it. It is not about that one file buildings.csv. As you know better than I do it needs a different mc2res.dll and objects2.pak and buildings.cvs and ...Show All
Nisa Game window mobe and full screen mode problem?(directX 9 + c#)
Hi all, I tried run my game in debug mode. i discovered my game is a slow running in window mode, but in full screen is a fast. How to fix this problem Best Regards, Hiya, What is the framerate What computer are you running CPU, GPU, Ram Take a look at the PresentParameters Class, but more specifically the PresentParameters.PresentationInterval property. The 2 commonly used is D3DPRESENT_INTERVAL_ONE and D3DPRESENT_INTERVAL_IMMEDIATE which will wait for a vertical retrace or will update the window immediately respectively. The first option will reduce tearing. You can set this variable in the D3DPRESENT_PARAMETERS structure. From the DirectX SDK Documentation "Windowed mode supports D3DPRESENT_INTERVAL_DEFAULT, ...Show All
MariamCR measuring the frequency of a sound
Greetings: I want to look into writing a program for tuning stringed musical instruments. Is there a place to start looking for a function which would give feedback on the frequency or pitch of a sound coming in through a microphone I've found nothing in the online help. I'm a begining programmer, and also not a physicist or mathematician. How big a deal would such a program be Thanks! This is not simple. Assuming you are obtaining a sound amplitude versus time set of data, and assuming your sampling frequency is high enough, you could run a Fast Fourier Transform on the data set to convert it froma time spectrum to a frequency spectrum. Google "Fast Fourier Transform", or "FFT" ...Show All
Sully65 Downloading and starting XNA Game Studio Express
I accidently downloaded XNA Game Studio Express first without having Visual C# Express. I would like to know how do i find the XNA file to install it. I tried what you said, but it can't find it. Are there any more way to find it ----Thank You. I'm not sure how your computer is setup so I can't tell you exactly where the file went when you downloaded it. But you can do a search (Start -> Search -> All files and folders) for the file "XGSESetup-Beta1.msi" That's the XNA Game Studio Express setup file that you are looking for. Double-clicking that file should get your XNA setup running and you'll be on your way to making your game in no time. Good luck! ...Show All
