-
- PresentParameters.DeviceWindow usage
by darrellp
- 2 Replies
- Last post
by darrellp
- Does anybody know what PresentParameters.DeviceWindow is used for if anything I've got D3D running in a child window and it works just fine whether I set this parameter or not. Besides that, the parameter does seem a wee bit redundant since the device constructor takes the window as an argument anyway. So is this just a bit of legacy code that is totally unnecessary or are there situations where
-
- DreamBuildPlay is up!!!
by XNA Rockstar
- 14 Replies
- Last post
by Dave Mitchell - MSFT
- Now go register!!
Actual contest details to come the week of Feb 5th
-
- Screen shots on the Xbox 360
by Martin Johannesson
- 14 Replies
- Last post
by waruwaru
- I'm simply wondering if there is a way to somehow capture the backbuffer contents to a file on the xbox 360 and then transfer that file back to the PC I've checked the framework docs and this forum and it doesn't seem to be possible, but I'm hoping that I am wrong. :-)
A screenshot looks slightly less amateurish on a website than if I photograph my TV, even though it still looks like programmer
-
- DBP Submission Platform
by Joel Martinez
- 7 Replies
- Last post
by Jim Perry
- I have a question about the dbp challenge. My xbox360 has just fallen prey to the dreaded " three flashing red lights on the ring of light " issue and, I suspect, will have to be sent in for service. I'm working with support and awaiting their response, but that's not really the issue. I really really wanted my game to be cross platform such that the same code-base built for both windows
-
- Graph shader?
by NotTaken
- 7 Replies
- Last post
by BLANC Guillaume
- I am trying to draw the FPS in a graph.
For that I want to pass the shader effect a 1D texture, but it isnt very simple.
I understand I need to use a sampler
Does the steps of passing and using a 1D texture (or sampler) similar to those of passing and using a 2D texture Or do I need to do it differently
For a 2D texture I have the SetTexture method for an effect, but I dont have the eq
-
- Shader states, etc? (HLSL effects not working right)
by Ben Vanik
- 14 Replies
- Last post
by Whorfin
- 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 u
-
- Rotating an entity problems - (Not camera)
by DarthCoder
- 10 Replies
- Last post
by DarthCoder
- Hi,
I'm trying to create a rotate(float pitch,float yaw,float roll) function for my entity class, (The camera one works fine) but despite it working sort of, the model locks up at certain angles(I.e becomes very stiff and hard to rotate, like gimble lock but worse)
Here's the function in question
[code]
public void Rotate( Vector3 Rotation)
{
Matrix m1 = Matrix .CreateRot
-
- Newb question: different textures for different resolutions?
by Grotius
- 8 Replies
- Last post
by Jon Watte
- Hi there,
I've made a couple of games in GSE now, and in each case I programmed the game in 800 x 600, which is rather silly given that I have a monitor that supports resolutions all the way up to 2560x1600. I understand that I can get the user's window size and adjust my game to fit it at startup, though I haven't really played with that yet. But what about textures Is the best practice to in
-
- 2D GUI with controls?
by Szymon Kosok
- 3 Replies
- Last post
by Jim Perry
- Hi and hello. :) Is there any XNA game engine that provide components like windows forms one (textbox, checkbox etc.) Or maybe it's built-in in XMA
-
- Somebody make a tutorial for dumbies?
by TheDevilsJoker
- 4 Replies
- Last post
by hlwright56
- Im making my first ever game, and my first EVER use of code, and i tried the Begginers tutorial for your first game, but it seems to assume you know about code by skipping details. Can someone tell me the section that deals with putting an image IN your game and go through it with every detail PLEASE.
/// <summary> /// Load your graphics content. If loadAllContent is true, you sho
-
- Volume textures, HLSL and re-creating rendermonkey effects
by NickMcCrea
- 7 Replies
- Last post
by Shawn Hargreaves - MSFT
- Hi all,
I've set myself the task of recreating a number of the example Dx9 effects in Rendermonkey as an exercise. Worked through a few of the simpler ones successfully, and gaining a good understanding of HLSL in the process.
Now, I think, I'll try the nifty refraction water effect, which is one of the examples under "reflection, refraction and water". It's the one with the skull
-
- Compile error C4430
by JackyLi
- 4 Replies
- Last post
by The ZMan
- I am writting C++ Form Application using Visual .net 2005. I tried to use Direct3d to draw some simple 3d polygons, but i always got the following errors:
Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft directx sdk (february 2006)\include\d3dx9math.h 787
I include the following files:
#include " d3dx9.h&quo
-
- "Use of unassigned local variable" error on Xbox360 but not Windows
by Thomas Aylesworth
- 9 Replies
- Last post
by thomas.aylesworth
- Anyone know why the compiler produces an error when the following code is compiled in an Xb0x360 project but not when it is compiled on a Windows project
public void GetTileRect( int tileX, int tileY, out Rectangle tileRect)
{
Rectangle myRect;
myRect.X = tileX * tileWidth;
myRect.Y = tileY * tileHeight;
myRect.Width = tileWidth;
myRect.Height = tileHeight;
-
- XNA Starting
by daytonadav
- 4 Replies
- Last post
by Darkside
- Well, I got XNA yesterday and i have been trying to figure out how to use it all day. I have used the help but i am still completely lost. Can anyone help me start out
-
- 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
-
- vertexBuffer.setData code works on PC, halts on 360 : please help!
by Salric
- 2 Replies
- Last post
by Salric
- Update
SetDataOptions.Discard is causing the exception to occur on the 360, changing the option to either None or NoOverwrite causes no exception. An interesting point though, on the PC build changing these options has little effect (the particles are still rendered) - the 360 however doesn't appear to render any particles. Strange
I've started another thread to address the shader:
http:/
-
- Bad alpha channel when using antialiasing
by fmatias
- 2 Replies
- Last post
by fmatias
- Hello, I'm using DirectX 9 to generate graphics for TV. I have working with BackBuffer format D3DFMT_A8R8G8B8 (Alpha channel + RGB) and I need to transfer the BackBuffer to a surface stored in system memory using the method GetRenderTargetData. I would like to use antialiasing (mulstisampling) while rendering my polygons, but I cannot use it because DirectX 9 doesn't allow lock surfaces with the
-
- Model Position Problem
by svxtc
- 14 Replies
- Last post
by svxtc
- I have this code that creates a model at the position of the mouse click but the model never shows up at that position. Maybe someone out there knows why the models seem to be offset. If I click in the top left corner of the screen, the model shows up in the center of the window. Here is the code:
#region Using Statements using System; using System.Collections.Generic; using Microsoft.Xna.Frame
-
- Mathematics for Game Programmers Book
by redneon
- 4 Replies
- Last post
by redneon
- I've been developing games for a few years now but I've always been aware that my maths skills are less than I would like. So, I'm wanting to buy a mathematics for game programmers book and was wondering if anyone could recommend a decent one I'm not a maths whizz by any means. In fact, I used to have a fair bit of trouble with maths at school so I'm not looking for anything too hardcore. Just so
-
- using 'Resources'
by BadButBit
- 5 Replies
- Last post
by BadButBit
- hey,
I downloaded DirectX SDK yesterday and got to work adding sound on a new project... it works alright...
but now I want to have sound files included into the project (as opposed to having to be loaded from the hard-drive)
this works :
Microsoft.DirectX.AudioVideoPlayback. Audio DXAsteroidDestroyed = new Microsoft.DirectX.AudioVideoPlayback. Audio ( "C:\\Games\\A
-
- Managed DirectX vs Native DirectX performance
by Wiegje
- 8 Replies
- Last post
by Wiegje
- Greetings,
I'm sure many people asked this before but no one has ever been able to answer this for me :( I've searched high and low (on this forum too) but theres no answer to this question:
Whats the performance difference between MDX and DX
I'm currently writing a little 2D engine in MDX, and its quite fun to do! But it doesn't perform that well, I've managed to get a few performance ga
-
- DBP Submission Problems?
by ddstevens
- 1 Replies
- Last post
by ddstevens
- Is anyone else having problems updating their submission to the DreamBuildPlay contest I was able to update the screen shot files, but after I uploaded a new source zip I noticed the time stamp/file size wasn't changed. So I tried to remove the file, and upload again. Now it shows no source zip has been uploaded.
I've tried to re-upload quite a few times with no luck. I even tried different na
-
- Humorous but somewhat serious question about XNA
by redshock
- 14 Replies
- Last post
by Jim Perry
- Microsoft has claimed the Nintendo Wii as a "kids toy;" however, if XNA can produce graphics and push performance up to what the Wii is capable of handling (games like Half-Life, Sims 2 from most XNA performance claims), does that mean that XNA is a kids toy too
-
- LoadGraphicsContent and UnloadGraphicsContent
by rock.aut
- 3 Replies
- Last post
by Shawn Hargreaves - MSFT
- Heja out there...
I'm searching around a wile now but haven't found an definitive answer on my latest xna question so i hope the good old msdn forums community could help ...
When and how will be LoadGraphicsContent and UnloadGraphicsContent called
I found out that LoadGraphicsContent is called by DrawableGameComponent.Initialize, .DeviceCreated and .DeviceReset and UnloadGraphicsContent
-
- GSE - IDE Problem
by bkaye
- 3 Replies
- Last post
by Stephen Styrchak - MSFT
- Installed VC# Exp and GSE on Dell XP SP2 already satisfactorily running VS2005...
Can create and run WinApps with no problems...however when I create a WinGame, the project files (.sln, .cs, etc) get created, Game1.cs displays in the VC# IDE, but Solution Explorer is blank(-contains no project tree)...can compile and run empty project....however if I click on Game1.cs, VC# IDE craps out with a