Answer Questions
Malleswar [MDX] VertexBuffer.SetData() ArgumentException
I'm creating a particle system in MDX and when I try to write the array that holds the particles I keep getting the ArgumentException. I've never had a problem with writing to a vertexBuffer before. Maybe someone can help me out with this. For now I'll just post the initialization of the VertexBuffer and how I write to it. Init vertexBuffer: mVertexBuffer = new VertexBuffer( typeof (Particle), mMaxParticles, mGDevice, Usage.Dynamic | Usage.WriteOnly | Usage.Points, &nb ...Show All
haihtomy Rotating my spceship has my mind spinning around
Basically I just want to turn a space ship around, I move the mouse to the side I turn to the side, I move the mouse up or down I turn up or down. I thought I had it but then I noticed that if I turn to the side 90 degrees and then I try to look up my space ship ship just barrel rolls, or I look 90 degrees up or down and try to look to the side depending on what order I use to multiply my matrices. Here is my code for the function that calculates the rotation. void CyberShip::detect_mousepos(DIMOUSESTATE mousestate) { lookHori = (lookHori - mousestate.lX * 0.001f); //Calculate how many radians to turn lookVert = (lookVert + mousestate.lY * 0.001f); lookHori = fmod(lookHori, 6.28f); //keep the radians under 2*pi lookVert = fmod(look ...Show All
Barry333 XNA has it's own GamePad DeadZone?
I've been looking at the output of the thumbsticks, and it appears a value less than 24% (0.24) is ever returned. I know it's very important to implement deadzone in your programs, but why has it been done for us Someone may want to write a game that needs a smaller deadzone, but as far as I can tell it would be impossible given we don't have full access to the output right the way from 0 to 1. Is this behaviour intentional Many thanks, Adam Miles The actual bug lies in the fact that the horizontal deadzone is being reported when the vertical position is outside the vertical deadzone and visa versa. Lateral movement round the edges should not be subject to the deadzones. It sounds for example like th ...Show All
Habibullah Looking for suggestions on protecting game assets
In my development I typically purchase royalty free content for meshes, music, etc. Although the content is royalty free I am bound by the terms of use to protect the content from re-use by others through reasonable means. In developing C++ based games for Windows I typically encrypt the data on the CD or in the distro and decrypt at load-time. My question here is, do you have any suggestions on how to protect content and still use the content pipeline and the XNA C# based game studio Thanks again for the feedback. I look forward to the more flexible environment! One thing that would be nice as a feature would be the ability to pack the art assets not only for easy of distribution but also for copyright protection. I don't mind shar ...Show All
nayob Unable to share a windows game - Followed the instructions on the manual
Okay, so I finished my first game using XNA Game Studio Express, it has been only a few days since I installed it, and it has been quite easy, having experience at making games. Now, I want to show this game to my friends, so I send it to a couple of them (both of them have XNA Game Studio Express installed), and it works great. Now I want to show it to some other friends, these who do not know what making games is about, these who do not have XNA Game Studio Express. I ensure they follow these instructions, from the manual: Sharing a Windows game On Windows you need to distribute your game executable and any content required by your game. In addition you need to ensure that the user has the following redistributables installed ...Show All
HiTech2k Rendering a D3D Device in a Panel within a Form
Hi All - I'm writing a simple application using Visual C# and have a Form with several Panel controls on it. I would like to render to some of the panels to provide multiple 3D views of models etc. I have successfully created a Device that is rendering to the desired panel correctly, but I notice when I resize the application window my D3D panel is "Flashing". It looks like it is rendering the background color of the Form then rendering. I notice if I set the Device to rending in a single Form (not within a panel on a form) I don't see the flashing problem. But of course I would like to render to the panel for my design. Any suggestions 1. If you're using the simplest implementation, ...Show All
rtaiss XNA and DX SDK
Maybe it is allreayd there but i can't find it :( as XNA is a layer on top of directx, aint it possible to make access to directx sdk objects posible in xna framework for example GraphicsDevice.GetD3DDevice This would allow people to mix the XNA framework with the directx sdk and work around some limitations / bugs of XNA See here . I had problems when the game shuts down. If you can get it to work post a reply to that thread. ...Show All
rbennet8 XNA Framework Docs?
Is there any XNA documentation that is publically available at this point I have seen FAQs, etc., but the framework itself seems to be a bit of a mystery (in terms of implementation). Am I missing something No. The documentation, samples, and starter kits will be available with the release of the XNA Game Studio Express product on August 30th (and please bear in mind that the release is an early beta, so documentation may be sparse in some places). Jim Perry wrote: David Weller wrote: No. The documentation, samples, and starter kits will be available with the release of the XNA Game Studio Express product on August 30th (and please bear in mind th ...Show All
sally_de I cant install
I downloaded everything, SP2, VC++ 5 and XNA, but I cant install XNA. It says that I need to download and install VC 2005, but I did that, I can run VC and do everything with it, but cant install XNA. Whats going on Esper, I would recommend re-downloading the installer and using the new one. It just looks like a few bits got corrupted during the download. If the problem persists, please report this issue on the Connect site (check out this thread here for how to go about that). Hopefully just re-downloading the installer clears this up for you and you can get cracking on that game. I'm not sure how many times we have to say it, but installing XNA Game Studio Express on Vista is not supported. Your ...Show All
Pockey 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 From my experience (and that is having developed several shareware games) C# is no different than Managed C++. The same performance. Native C++ only has a small (within 1%) performace increase over C#. I have been successful in porting one of my games from CLI C# to MONO C# for linux/Mac OS X and it was flawless. C# IS the future, it's easier to read, easier to program, opens up the doors to RAD C++ because that's what C# is. What Roger said about the algorithms is true, after all the language comparisons, if i ...Show All
sql1 Quick question regarding accessibility of 360 hardware with XNA.
Hello everybody, First of all, let me say that I think that the concept of XNA rocks, and I'm very happy that Microsoft actually released a cheap "SDK" for the 360. Secondly, has there been a list compiled of things that are off-limits to developers All I know of that is off-limits is the networking. From what I've read, I assume that the DVD drive is out and so are any system/other game files on the 360. But I can't believe that these are the only things off-limits... I mean, can we really access everything on the 360's GPU and CPU (note that I'm not talking about every register because it isn't assembly language) I think a complete list of everything that is inaccessible would really help those on the "fringe" o ...Show All
rrkk 360 Texture Mapping Problems...
Ok ... Just got my 360 creator club membership and tried my first 360 game routines. I have a problem with textures... I'm using DrawableGameComponent's. I'm rendering a tube with a texture and fogging (to black). Camera is inside the tube. The tube is made up of triangles with a repeating texture. Looks great until... I've now added a component that plots a sprite (a simple game logo). The textures on the tube are now drawing incorrectly. Texture seems to stop repeating (when texture co-ordinate goes over 1.0f). This only happens when I plot a sprite (via spriteBatch). Help. I'm guessing something on the graphicsdevice is being set when a sprite is drawn ... but I can't find out what. Does anyone have any ideas I.e. ...Show All
Lorenzo77 Subscription availability??
Hi, This may be a silly question; but will the subscription service be available outside the USA I'm in Australia and everything seems to take a very, very long time to be supported here... Thanks, T The subscription is available on the marketplace right now Where I'm not able to see it. I assumed it was not yet available. Though I'm in a very weird position : I'm a Canadian currently working in Shanghai so maybe that's what causes the problem. My Live account is tied to Canada but my IP obviously comes from China. Louis From the FAQ: Q:Is the XNA Game Studio Express subscription available for programmers worldwide Are you planning on localizing the software A: ...Show All
tattoo "Indie" Game Development on Xbox 360 and PC
(This is my first (technically second, I commented on something else) post on these forums) Alright, as a high schooler looking to get into game development after college (or possibly even nixing the college and going straight in) I was wondering if Microsoft was planning on doing anything at all with the XNA Framework that would support low budget game development. How available will tutorials and books about the code be available How much money will the tools and such cost How easy is this code going to be to learn Will it be easy for people to test on PC and a (normal) Xbox 360 with this code I've questioned Nintendo (through their website) about whether or not they'd be supporting "Indie" development, and I was given an aff ...Show All
Drew Marsh Collision detection - Howto
Hi all, I'm trying to make two objects collide in GSE, actually in a Pong game - between the bat and the ball. I have motion for both, but no collision, the ball just leaves the stage so to speak. Any help would be appreciated. I have looked in the Help, but to no avail. so the question remains if you have a sprite on the screen how do you assign the Bounding Box do it Do you need to do a vector that moves with the sprite LIke masked over it in a sense Here is the code starting with vector3's Vector3 MinV1 = new Vector3(BatX1,BatY1,0); Vector3 MinV2 = new Vector3(posBallX,posBallY,0); Vector3 MinV3 = new Vector3(BatX2,BatY2,0); Vector3 MaxV1 = new Vector3(BatX1+16,BatY1+48,0); Vector3 MaxV2 = new Vec ...Show All
