-
- XNA Architectu "push" vs. "pull" model
by Alexei Baskakov
- 10 Replies
- Last post
by Gerix
- Xna.Input.Keyboard has no events OnKeyUp and OnKeyDown, so I can't subscribe any object on this events using delegates. Is any reasons - why
I know that I can do this by myself (examine the keyboard state every Update and call those events), but it's an ideological/archetectural question: I don't want to "pull" keyboard every time, I need my objects to be "pushed" on a keybo
-
- Strange effect when using translation
by milann
- 8 Replies
- Last post
by e. ogas
- 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
-
- Computer problems or XNA problems?
by TruePsion
- 4 Replies
- Last post
by George Clingerman
- Ok. I recently just followed "The Wizard" Tutorial found here: http://www.xnadevelopment.com/tutorials/thewizard/theWizard.shtml
It's a great tutorial but for some reason, a lot of my code went wrong. Some functions were already defined....in fact a lot of them were.
Not only this but code like "Sprite.Sprite" wouldn't work. I eventaully gave up & copied the entire so
-
- Collision Detection
by OasisGames
- 14 Replies
- Last post
by Gloei
- Hello, I would like to create a collision detection function to test if the bounding sphere of one of my meshes (the player, for instance) is intersects a triangle in another model (the level). How would I go about running a for loop that checks each triangle of the level And from there, what would be the best algorithm to determine if the BoundingSphere is within the triangle Any help is greatly
-
- Shooting help
by Ion101
- 8 Replies
- Last post
by Spydarlee
- Can anyone post a website, code, or a project they have on making something shoot. I have tried, and it doesn't draw the bullet right, and some other ppl's code meses up
-
- Drawing Bitmaps to IDirect3dSurface9
by El Gaseron
- 3 Replies
- Last post
by Wessam Bahnassi
- Hello, first of all i want to render a video stream to a IDirect3dSurface9 (in the beginning on the primary display device later on a secondary monitor) so at first i'm trying to draw a simple bitmap on the surface... i've created IDirect3d, IDirect3DDevice9 and IDirect3dSurface9 objects... and i've got a window that i've registered and created. It doesn't matter if the bitmap/video is in the wind
-
- Dream Build Play - partner in crime
by XNA Rockstar
- 13 Replies
- Last post
by XNA Rockstar
- I'm still hard at work on a new game I'm working on, but it's more
for fun than anything I would submit for a contest. But I really want to enter the dream, build, play contest too, I just don't think I'll have the time to do it all on my own.
Does anyone out there want to partner up I'm no programming
guru, but I've got a few skillz. I've been messing with XNA since
beta
-
- ContentManager questions about device resets
by aclysma
- 9 Replies
- Last post
by aclysma
- I am trying to figure out exactly what the content manager does and does not do for you. Here's what I've found. The content manager caches resources http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=886913&SiteID=1 The content manager does not help you load resources in a background thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=966705&SiteID=1 And, from what I can tell,
-
- collision detection with backbuffer
by Teebeutel
- 3 Replies
- Last post
by Teebeutel
- Hi,
i am new at gamedevelopement so... i am trying to do a collisiondetection method over the backbuffer.
I am trying to make a 2d game with 3d objects (not sprites because the objects with light and so on looks much better) and couldnt make a very exact collisiondetection. I had the idea to use the backbuffer data with renderTarget2D class and make different layers (wich are not rendered) i
-
- Plain ContentTypeReader
by AstAn
- 9 Replies
- Last post
by AstAn
- Hi I have been reading through the forum for hours now and there is something I do not quite understand: Any class that is required for readers comes from Microsoft.Xna.Framework.Content.Pipeline. This library is not available for the Xbox 360, thus leading me to the conclusion that it is currently not possible to write a custom ContentTypeReader for the Xbox 360. Is that correct My other problem
-
- The Unofficial "Hooray I'm Done With my DBP Game" Thread
by Bill Reiss
- 14 Replies
- Last post
by Handkor
- When you get done with you game and sumbit it, crow about it here.
A little over 24 hours left until the deadline and I'm so amazed I'm done, so much better than college
Thanks to ZMan for his help, good luck all. I'll post the source code for my submission once the deadline hits.
Bill
-
- Orthographic UI
by Nick Darnell
- 12 Replies
- Last post
by Nick Darnell
- So...in OpenGL I would use glOrtho(0,1,1,0,0,1) before processing my UI draw calls to set up my screen to be: 0,0 . . 0,1 . . 1,0 . . 1,1 that way, I could tell a UI component to be at 0.1, and it would make it so at any aspect ratio, any resolution, that UI component would always draw 10% to the left of the side of the screen. I want to do something similar to the UI system I'm working on for
-
- How to fill in the texture in c#?
by Majkl
- 0 Replies
- Last post
by Majkl
- Hi, I would like to help with these: I create a new texture and than I need to fill this texture with my own numbers. I would like to go throw the texture pixel per pixel in cycle and to every pixel fill in the r,g,b,a. How could I do this
Equivalent in c++ looks this way:
hr = d3dDevice->CreateTexture(particleTextureSize.x, particleTex
hr = d3dDevice->CreateTexture(particleTe
-
- Multiple render targets and multisampling
by Malmer
- 6 Replies
- Last post
by Shawn Hargreaves - MSFT
- Hi,
I have this little problem you see. I want to render to multiple render targets (I'm going for Windows only. No xbox 360). Works fine and everyone is happy and the world is a pretty place.
Until I turn on multisampling on my graphics device (PreferMultiSampling=true).
Then I get nothing (or whatever was left in the video memory). If I only use one render target it works fine. Two, not
-
- Problem with BoundingSphere
by BDev13
- 3 Replies
- Last post
by BDev13
- I am trying to use the BoundingSphere property of the ModelMesh class to perform collision detection. The problem I'm having is that the value of BoundingSphere.Center seems to have nothing to do with where I am drawing the mesh. (e.g. I last drew my mesh at (-110,-550,0) and the bounding sphere is centered at (-5.87,25.0,10.0) with a radius of 127.0.
Below is my draw code for the model (follow
-
- XNA Games Article in XBOX Magazine.
by Jeff Weber
- 6 Replies
- Last post
by Jeff Weber
- Congrats to the teams who built iFactor, Eternity's Child, Racing Game, Wildboarders, and Last Alarm : The A.R.G.U.S Complex.
All these games have write-ups with screenshots in the lates copy of "Official XBOX Magazine". (Just got it in the mail yesterday)
Also in the magazine, details on the next DBP contest. They list the prizes and they are very nice I must say!
-
- problems creating a triangle strip for a terrain section
by Fluxtah
- 13 Replies
- Last post
by Fluxtah
- Hi
I am having a few problems creating an index buffer for a triangle strip for a terrain section.
I have a section similar to the following. 0 - 1 - 2
| / | / |
3 - 4 - 5
| / | / |
6 - 7 - 8
I define my triangle strip using the following indices also with one degenerate triangle, I have bolded it so it stands out better.
0, 3, 1, 4, 2, 5, 5, 3 , 3, 6, 4, 7, 5, 8
My first que
-
- need help..
by jasse_91
- 14 Replies
- Last post
by jasse_91
- im kinda new to xna and c# and when i tried to debug now i get some errors that i dont know how to fix lol. heres the errors i get
this is what i wrote in:
protected override void Draw(Microsoft.Xna.Framework. GameTime gameTime)
{
this .graphics.GraphicsDevice.Clear(Microsoft.Xna.Framework.Graphics. Color .Black);
this .spritebatch.Begin(Microsoft.Xna.Framework.Graphics. Spr
-
- Multithreading an XNA game
by Jason Petterson
- 7 Replies
- Last post
by Kyle_W
- Can anyone give me a start I've read and seen all about multithreading (presentations from Gamerfest, Gamasutra, looked at code from C#). But nothing really soaks in till you try it yourself and rewatch/reread everything. What I want to know is how to do it with XNA What do I thread and how do I thread it To test it out I wanted to build 2 programs, one single threaded and one multithreaded. Th
-
- custom gamerpics
by cheebachops
- 3 Replies
- Last post
by cheebachops
- is it possible to create custom gamerpics for the 360 and if so how
-
- cant deploy any games
by XxXwrathXxx
- 3 Replies
- Last post
by Cherryhead
- hi every time i try to deploy a game to my xbox360 it gives me this Error The connection timed out before reaching host myxbox. Make sure that myxbox is connected on your local subnet and waiting for a connection.
-
- Transform a plane by a matrix?
by yoyocyhsieh
- 4 Replies
- Last post
by Spintz
- I want to implement transfoming a plane by a matrix.
I first rotate the plane normal by the inverse transpose of the transformation
matrix, but I found that the value of the new plane normal is not the same by using
D3DXPlaneTransform function...
How is D3DXPlaneTransform function implemented
Thanks.
-
- DreamBuildPlay - Any advantage to submitting early?
by Bill Reiss
- 11 Replies
- Last post
by Lima Beans
- For the DreamBuildPlay contest, is it better for me to take every last minute until the submission deadline to tweak my game or is there some advantage to submitting earlier
-
- Slight Lag in XNA?
by Devon Fritz
- 10 Replies
- Last post
by r2d2-proton
- I am new to XNA, but I followed some simple tutorials to load a small image, get it on screen, and move it around. I've noticed that for the most part, the updating of graphics is smooth, but every few seconds the update to the display "misses a beat" or something and the on screen sprite jumps instead of moving smoothly. I have changed the display to show one hundred images and do the s
-
- Cannot run DirectX installation to end. Please HELP
by BrewsterPilot
- 0 Replies
- Last post
by BrewsterPilot
- OK, I download the latest DirectX (filename dxwebsetup.exe ) and try to install it. However, after the "I accept the license agreement blah blah" window when I click Next; a window comes up saying:
Quote:
An internal system error has occured.
Please refer to DXError.log and DirectX.log in your windows folder to determine problem
After