-
- PIX crash when attempting to set shader variable
by supagu
- 6 Replies
- Last post
by Ralf Kornmann
- I've got some code that works fine when not running via pix, how ever when i run it through pix it crashes. I've found that the crash is caused when i call either:
SetResource
or
SetMatrix
here is my code:
void DX10Effect::SetTexture(EffectParamHandle handle, Texture* texture)
{
HRESULT hr = ((ID3D10EffectShaderResourceVariable*)handle)->SetResource( static_cast <DX
-
- 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
-
- Build speed with many projects
by Ben Vanik
- 12 Replies
- Last post
by Nick Tuckett
- I've been working on my first large XNA project and am finding that building my projects takes forever. I have both my Windows and 360 projects in the same solution, and there are 5-6 projects each. Normal setups like this in Visual Studio are a incredibly quick to build on average, but with GSE I notice that it seems to be invoking MSBuild for every project regardless of the solution configuratio
-
- OpenGL wglCreateContext fails when rendering onto a bitmap when not having rendered onto a window first
by Wout
- 2 Replies
- Last post
by The ZMan
- Hi, I'm having a
frustrating problem with the wglCreateContext call. I'm using DirectX
for rendering on screen, and I'm using OpenGL to render the same thing
onto a bitmap (for printing). When not using DirectX, the OpenGL bitmap
creation works fine, but when using DirectX, the wglCreateContext call
fails and GetLastError returns 8 ("Not enough storage is available to
process this command").
-
- Problem with Buttons.Back
by tatman blue
- 5 Replies
- Last post
by Jon Watte
- I have several Microsoft.Xna.Framework.DrawableGameComponent derived objects that I use, one for each game state (the components are called MenuView, GameView). In MenuViews update method I check for back button pressed and exit the program. In GameView, I want the back button to take me back to the MenuView. So in the GameView update code, I check for it and if thats true set my state back GameS
-
- Call stack more limited on Xbox 360 than Windows?
by manders
- 2 Replies
- Last post
by manders
- Hi,
I am working on a program that uses heavy recursion. It works fine on Windows but is causing problems on the Xbox 360.
I switched to a very simple test app. It is just the default "Windows Game" or "Xbox 360 Game", with the following additional method:
public void TestRecursion(int level) { if (level >= 14000) return; else Te
-
- Embedding resources: Is it the answer for screensavers?
by Ecrofirt
- 4 Replies
- Last post
by Ecrofirt
- Hi all, I'm about 90% finished with my XNA Starfield screensaver, and I'm wondering what the best solution is for storing my textures and whatnot. I think it'll be very clunky to add any content files to the System32 folder along with the .scr, so I've been trying to come up with a good spot for them. Wouldn't it be best to embed the files within the .exe and just load them from there I'm trying t
-
- spontaneously error
by Fiddel
- 5 Replies
- Last post
by windozer_
- Somtimes i get an excpetion whem I'm trying to render text using Font.DrawText. I'm getting a "Object reference not set to an instance of an object.", but everything is as it should be.
I have no idea why I'm getting this exception, and i can never make it happen again.
I'm preety lost here, guys.
Help would be greatly appreciated.
Thanks.
-
- help with everything
by masterchief6565
- 5 Replies
- Last post
by George Clingerman
- I cant seem too computer connection can some one tell me what to do
-
- Beginning Game Development: Part III - DirectX II - Problem with the "Using..."
by TheVisual
- 7 Replies
- Last post
by TheVisual
- Just started the Direct X Part II (Part III) tutorial, and I seem to have an odd problem. I get one error whenever I try to build the solution,
Error 1 The type or namespace name 'Device' could not be found (are you missing a using directive or an assembly reference ) C:\Documents and Settings\Doug Ross\My Documents\Visual Studio 2005\Projects\BattleTank2005\BattleTank2005\GameEngine.cs 68 17 B
-
- Could C# be the future of gaming?
by QuantumMischief
- 14 Replies
- Last post
by DEBRO
- 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
-
- Deploying my own game assets
by Nick Winters
- 14 Replies
- Last post
by Shawn Hargreaves - MSFT
- I've chosen not to use the content pipeline provided with GSE. How do I deploy my game assets to the 360 HD Is there a command line utility so that I can build it into my tools Thanks. -Nick
-
- Microsoft.DirectX.Direct3D.InvalidDataException
by Kestutis
- 0 Replies
- Last post
by Kestutis
- Hello,
I have created a simple 3D program (using C#, Visual Studio 2005 and MDX 9) which loads a mesh and its texture from a disk, for example like this:
Code Snippet myTexture = TextureLoader .FromFile(myDevice, myPath);
The mesh and its texture (.bmp file) files are stored in bin\Debug folder. While creating my application and testing it in development environment, ev
-
- How do you draw text?
by Bapa
- 14 Replies
- Last post
by lordJapheth
- Since the XNA documentation is lousy, I'm gonna ask here.
How do you create text in XNA I want to use it for debugging purposes :(
-
- Per vertex fog (Custom Effect)
by ShAdeVampirE
- 5 Replies
- Last post
by Fluxtah
- I just want to make a simple per vertex fog with XNA, I thought, it will be easy, but... The problem is: if I set everything correct (I think), only the objects get the fog, not the scene/ screen! But why I set this parameters: FogEnable = true; FogColor = 1.0f; And I use the FOG semantic in the vertex shader: OUT.FogD = saturate( (fFogEnd - d) / (fFogEnd - fFogStart) ); So why happen th
-
- Do any big game companies use C#, VB.Net or J#
by &#38;&#35;169&
- 14 Replies
- Last post
by Flavious
- Hi, it's me again. ;) I've posted many posts in this thread, but try to stand me. Okay. This could be a silly question, but does any big game house use C#, VB.NET or J# to program DirectX Is it possible Timo
-
- Resource management
by Flecko1
- 2 Replies
- Last post
by Flecko1
- Hi, I was wondering if loadGraphicsContent can ever be called with loadAllContent=true except the very first time. The reason it's an important issue is that if it can, references can go dead, ex. if I load effect in Game1 and give it to object X, then Game1.loadGraphicsContent(true) is called and I have to reload effect, X's reference to effect is no longer any good. This can be solved with some
-
- Weird behavior with DirectX Audio - SetMaxDistance
by
- 1 Replies
- Last post
by DaRkey
- Hi there !
I'm developping an audio engine (using DirectX 9), and I have a problem. My secondary 3D buffer, containing the mono sound, was created with the flag DSBCAPS_MUTE3DATMAXDISTANCE, it should be muted if positionned further than maxdistance. I have a default rolloff of 1.f, a listener at 0,0,0 (default listener), and a mindistance of 0.f Normally the volume should go down linearly, but
-
- Creating sprites for 2D games
by jeffmorris
- 4 Replies
- Last post
by jeffmorris
- How do I create sprites for 2D games with bird eye's view of the game world For example, for a 2D driving game, I want to create sprites so that a car can travel in eight directions using the keyboard and gamepad. If I press the up arrow key, the front of the car should point upwards. If I press the left arrow key, the front of the car should point to the left. Should I use tiles instead of one bi
-
- Microsoft.Xna.Framework.Maths namespace
by AndyL
- 2 Replies
- Last post
by ryan.rogers
- Ok, so there's no such namespace really!
But could I plead again with the framework team to put their maths code in such a namespace Now I've got round to doing some serious coding with XNA, I have to say that it is incredibly frustrating to have the XNA maths classes and my maths classes clashing all the time, as you simply cannot avoid loading the Microsoft.Xna.Framework namespace.
Yes I k
-
- Load Model 3D Problem
by ACDias
- 2 Replies
- Last post
by ACDias
- First: sorry for my bad english... I'm brazilian. I'm trying to load a .x model, but when I set the view matrix the model do not appear in the screen and if I comment de line that I set this matrix the model appears so near of the cam. Here are the code protected override void LoadGraphicsContent(bool loadAllContent) { if (loadAllContent) { model = content.Load<M
-
- 3D VERY slow on the XBOX
by Deldy
- 14 Replies
- Last post
by Shawn Hargreaves - MSFT
- Im having a hard problem getting good FPS rates on the XBOX, everything turns around and gets alot slower. Does anyone have a solution, or reason for this
-
- 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
-
- Build for Xbox 360 and Windows in one project
by Leaf.
- 14 Replies
- Last post
by AndyL
- I have created a Visual Studio project template that can be built for either Xbox 360 or Windows, by selecting the correct platform in the VS IDE. There's nothing particularly clever about this, it just uses some of the conditional abilities of MSBuild projects to merge the properties of an Xbox 360 XNA project with a Windows XNA project. There's a slight problem though - the VS Express C# IDE has
-
- DirectX problem,,,please help
by Bwjohnson84
- 4 Replies
- Last post
by Glenn Wilson
- i'm learning to program games, i found a great place for tutorials (xna101.com), and when i start w/ the first one or even w/ the sample game that c# gives us i go to build and it always ends up w/ an error at Run() saying that directX is not installed, i went to the website and i downloaded everything that said directX on it, the Direct3D and i believe the DirectX SDK and nothing is working to so