Answer Questions
AdeptBlue Cross-platform development question
Hi guys! I intend to make an application and deploy it on PC and XBOX. I want to know how do you want me to do it I see some ways: I can copy my code in other directory and change references to Compact Framework. As a result I'll have two copies of my code. It's the worst alternative, isn't it I can use only Compact Framework even on PC (if it's possible); Something else What is the best way to do it Most XNA code will work without changes on either platform, there are some exceptions like if you want mouse support on the PC, that code will need to have #if blocks around it or it needs to be in a PC-specific file, and there are some differences with point sprites. There are probably othe ...Show All
Philippe Cand [Managed DX] Vsync for a newbie ...
How can i manage vsync specifications , my aim is to make a scroll without flickers , for now i think the vertical synchronization is the only way ... But i know how to make it on and make it fixed nd a related question , i use 2d fonts , must it be 3d or can i make this scroll with 2d thank you very much, that helped me What u mean by scroll If u use 2D fonts and u want to "scroll" them .... like moving them from bottom of screen to top of screen, just adjust the font rendering position. Please explain more on what u are making or doing, I never seen 3D code flicker before :) You can use PresentInterval.One ...Show All
dummies Play Wave Properties
I'm trying to change the Play Wave property 'LoopEvent' to 'Yes' but I get the error "Object reference not set to an instance of an object." I'm not sure what I'm doing wrong. I have a cue and track setup, with a Play Wave event, and it contains a sound. What am I missing All I want to do is setup a sound which just continuously loops. Thanks. Same problem here, looks like a vb.net error i guess Hi Scott and Robert, I'm also experiencing the very same issue that the other guys mentionned. Some background : - Visual C# 2000 Express Edition - XNA Framework beta - DX SDK August 2006 On a pretty fresh WinXP SP2 Installed with all the updates. I've tried the exac ...Show All
ArnieSacnewsome Camera support
Are there any plans to support the 360's forthcoming cam and standard PC web cams with XNA One of the great things indie/hobby developers do is come up with new ways to use hardware devices. It would be really great if MS could open up this avenue. [)amien There's nothing been announced, though several folk have asked. Add a request to connect following these instructions: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=682921 There appears to be no exisiting requests so after you add it please post the ID back here to help other folk find it and vote for it. I am seriously in favour for cam support too !!!! and drivers allowing multiple cams by the same company and type please I am now using a so ...Show All
BlueMikey Need help with a generic Input code.
I've been reading a bit about C# for a while and downloaded the XNA express just a while ago and now through the tutorials have a picture of my son for a test bouncing around a screen. I can't find anything telling me where to put a input file or how to make one. I see something about making something to get keys pressed but well, would love if someone would help me in the right direction. Thanks alot. I have put together some small components that might help.. Keyboard Component http://www.virtualrealm.com.au/blogs/mykre/archive/2006/10/15/XNA-Keyboard-Component.aspx Mouse Component http://www.virtualrealm.com.au/blogs/mykre/archive/2006/09/15/XNA-Mouse-Interface-Component.aspx Well, if the Microsoft tutorials aren't ...Show All
CJohnson VideoSettings/Threading questions with XNA...
Scratching my head over this one. Want to set some device/presentation parameters before adding .graphics to the GameComponents, in this case through a form. public Game1() { //create settings form Form f = new frm_DisplaySettings(); //wait for "Start" button clicked on f //pass settings on to Designer to Initialize InitializeComponent(mySettings[]); } //wait for "Start" button clicked on f// is where I am stuck. I've tried spawning threads but not sure how the Game class handles this and not sure how to implement cross-class ManualResetEvents. TIA, lushdog You need to show the form Form f = new frm_DisplaySettings(); f ...Show All
ephisians question about boundingspheres and planes
Hi, the Xna framework supports functions to find if a boundingsphere intersects with a plane or at what side of the plane the boundingsphere is located. This seems very handy to determine if over a given time a sphere crosses a plane. However , are there functions in the Xna framework to determine at what given time the collision happens , and at what location the sphere hits the plane And even better , if this collision happens within the surface of a given triangle The Xna framework does not have those functions. ...Show All
fabien13000 how much should xna...
how much space should microsoft xna have cause my microsoft xna folder has just ~ 10 MB. pls answer cause i'm really desperate. If your wondering where all the other data went (As the download is much bigger) it's in various folders for Visual Studio and other parts of the installer. The bulk of the size comes from the Spacewar starter kit, but please if you were looking at this because you have a problem, let us know what it is. C:\Program Files\Visual Studio 8\Common7\IDE\VCSExpress\ProjectTemplates\SpaceWar.zip\ if somebody else is looking for the 80 MB they are in the spacewar package that is installed in the upper adress. thought some people could find this helpfull. ...Show All
Henri20 XNA methods
Hi, This is my first post here. My English is not good, so excuse me for any mistake you could find :). OK, I have been programming with unmanaged DirectX for some years and I now I just started learning XNA, not to migrate from DX, but just to know a new technology. XNA is relly a fantastic tool, but I admit I felt a great impact when I saw the XNA code for the first time (... but nothing that could not be cleared with a bit of patience :) ). There is a huge difference between unmanaged DirectX (native C++) and XNA (C#). OK, lets to the doubts: The XNA Game Studio Express Documentation shows 5 main methods that make the game works. They are: Initialize, LoadGraphicsContent, UnloadGraphicsContent, Update and Draw. What ar ...Show All
AlexBB XNA Studio Pro Information Request
I have heard tidbits of XNA for months now. I recently read an article on it in this months Game Informer. I know that the Studio Pro beta will be released early 2007 however i am interested in a full fledged commercial product, the reason being is, downloading it would take so long for me at this moment. I would like information regarding a commercial release of XNA Studio Pro (i.e. CD or DVD) for Windows XP. I have checked various retailers in my city and non of them have even heard of XNA. They checked for future product orders and said they don't even think they will even be carrying it if it goes to retail. Any information about this would help greatly, thank you for your time. Preferred method of response would be through ...Show All
moerderin Starting work on my GUI system
Well, I've hit a wall with my game's development, and since there was no GUI with XNA 1.0, I've decided to go ahead and make my own GUI system. I implemented a lot of mechanics for my game, but I need greater interaction to proceed development in a sane manner. So far I've just implemented the text drawing stuff from scratch. It uses only monospace fonts generated with BMFontGenerator without using the generated .xml file. It's decidedly minimal to use only monospace fonts, but keep in mind two things - 1) my particular game doesn't require anything more robust than monospace fonts and 2) a game's engine should be designed around the game's specifc requirements. Otherwise you're scope creepin. I remind myself constantly not to let cool ...Show All
karnij7877 Loading a Model from a List<> problem?
Hi, I`m storing info in a list which I`ve written: List < float > mapList = new List < float >(); I`m storing mapList[x] = `ModelName`, mapList[x +1] = `ModelpositionX`, mapList[x +2] = `ModelpositionZ` amongst others. ..and would like to. DrawModel( mapList[x], Matrix .CreateTranslation(mapList[x +1], 0, mapList[x +2]) ; Which gives the error: Error 2 Cannot convert type 'float' to 'Microsoft.Xna.Framework.Graphics.Model' : for mapList[x] above. Is there anyway I can convert mapList[x] so its accepted I`ve only just starting with lists and arrays, which one would be better for the type of thing I`m doing above Any information on any of the above would be great. I`m off to read up some more. Tha ...Show All
Malmer Shader states, etc? (HLSL effects not working right)
I'd like to call upon all the shader gurus here for some help :) I've been experimenting with writing some of my own effects, meaning I'm a HLSL newbie, and have been using NVIDIA's FX Composer to do my work. After producing a cool (albeit simple) effect, I decided to try using it in my little model viewer. The problem is that the way it shows up through XNA is different than the way it shows up in FX Composer, and I can't figure out why. You can find the code to my effect here: http://www.hiranipra.com/data/help_attach/gb1_shader.txt - it's just fairly simple environment mapping-ish stuff. A screenshot of what it looks like in FX Composer: http://www.hiranipra.com/data/help_attach/FxComposer1.jpg - it's hard to tell, but the ...Show All
steve13 Getting started with DirectX and Visual C++ 2005
Hi, My setup environment is Windows 2000 SP4 and I'm using Visual Studio 2005. I'm looking to set environment for using DirectX with Visual C++ 2005. This morning, I tried but without success to install DirectX SDK using file downloaded from following link: http://www.microsoft.com/downloads/details.aspx FamilyId=C72D9F1E-53F3-4747-8490-6801D8E8B4EF&displaylang=en#Requirements Even if I verified that, under system requirements, Windows 2000 was listed, after downloading, I received the following error while trying to run resulting "dxsdk_aug2006" file: &nb ...Show All
Ananda Ganesh Shader states, etc? (HLSL effects not working right)
I'd like to call upon all the shader gurus here for some help :) I've been experimenting with writing some of my own effects, meaning I'm a HLSL newbie, and have been using NVIDIA's FX Composer to do my work. After producing a cool (albeit simple) effect, I decided to try using it in my little model viewer. The problem is that the way it shows up through XNA is different than the way it shows up in FX Composer, and I can't figure out why. You can find the code to my effect here: http://www.hiranipra.com/data/help_attach/gb1_shader.txt - it's just fairly simple environment mapping-ish stuff. A screenshot of what it looks like in FX Composer: http://www.hiranipra.com/data/help_attach/FxComposer1.jpg - it's hard to tell, but the ...Show All
