Answer Questions
cssjm post processing shader
hi, i want to learn how to write post processing shader. so i have a few questions. when i tried to figure out, how post processing shader are working i saw a script in an effect technique. are this scripts used to redirect the rendering process into a texture instead of rendering the pixels to the back buffer when i want to post process a final scene, do i need to draw the scene onto a rectangle i mean do i have to render to primitives and map the final scene onto these primitives in order to post process thx a lot! Here's the render loop from my code, that uses post processing: class SceneManager ... { GraphicsDeviceManager graphics_; GraphicsDevice dev_; RenderTarget2D renderTarge ...Show All
Thomas.Goddard Breaking changes from MDX?
Hello there, I have a question: when will we learn what kind of breaking changes will XNA bring if compared to MDX Also, what will be the extent of those changes Will they mostly be refactoring changes or will there be serious changes in the coding way compared to MDX Also I read soomewhere that XNA will have font and UI features. What kind of UI features are we talking about :) Widgets and the like Thanks in advance! Are you going to make them similar (compatible) to Avalon (please please :-) ) I presume you are gone make them XML based. Will you publish the chosen format before the next release of XNA so people can make there customised solutions compatible I hope you have a very nice day Bill Spinhoven ...Show All
Sam Hobbs Will we be able to shared compiled versions of XNA apps?
Ok, so before someone flames on me. I searched the forums and what not for a long time, before I posted this. I only saw threads about actually selling the homebrew games and I'm not interested in that. What I want to know: Is there plans in future releases to share only compiled versions or some sort of package I mean if I spend my heart in soul making a game that I think others will will enjoy for the love of the community. It doesn't seem fair that everyone gets my source. So are there plans for just sharing complied versions of some kind If so, whats an approximate time frame Thanks, Nick Here is a workaround -- it's not pretty, though. Create your XBOX 360 game pro ...Show All
WIreD 0x90 Translating The BasicEffect.World Property
I'm trying to create a simple pong game using XNA to work out all the parts, but it's not working properly. I've created an inner class called Ball to represent my ball and it has some static properties in it for the vertex buffer, the vertices that make up a ball, and the vertex declaration. I chose static so that multiple balls can share the common values. Anyway, my screen loads and my program doesn't hit any errors or exceptions, but I'm not seeing my ball appear anywhere on screen. Any ideas I've omitted the default code that I didn't change for space's sake. Edit: Sorry for the multiple posts. The forums told me it couldn't find the other one's so I didn't think it posted them. I deleted them (even though last I checked they ...Show All
EmekaAwagu How to check the version of Managed DirectX installed?
Hi all, I'm wondering is there any way to check any registry key or check the existance of some folder or any other way to make sure that managed directX has been installed on the system Thanks a lot in advance. P.S. Just to make sure I did everything right, if anybody knows how to check the version of the regular directX (not managed) installed and also the .NET Framework installed I would appriciate it a lot. So, if you know what registry keys need to be checked to get this information. Mladen. Thanks a lot for the replies. I was always performing checks by checking the existance of certain registry keys and system folders, etc. but I didn't know I could programmatically call the dxsetup or ...Show All
Ljhopkins What Is The First Step In Game Development?
Dear, I Decided To Use C# And XNA. Now What I Have To Do Do I Have To Learn Some Books Or What Plz Tell Me. Ok, I Get It. Thx Thx Alot Man, But The Site www.copeplex.com Is Not Working. Updated http://www.codeplex.com link, damn keyboard, spellchecker be damned Dont have to no. but programming in 2D first helps get a lot of the graphical constants straight before jumping into 3D. From some orriginal help and resources before XNA came along, it is good practice if your starting out in game programming is to try and do some simple projects end to end (design,program,test,package,document and deliver), this hasn't really changed for XNA it has just stripped sme of he cmplexity from the rog ...Show All
JayaC Trouble creating my effect object
I have the following code: CompiledEffect compiledEffect = Effect.CompileEffectFromFile("Shaders\\simple.fx", null, null, CompilerOptions.Debug | CompilerOptions.SkipOptimization, TargetPlatform.Windows); m_effect = new Effect(m_graphics.GraphicsDevice, compiledEffect.GetShaderCode(), CompilerOptions.None, null); Unfortunately, on the second line, I get an exception. Microsoft.Xna.Framework.Graphics.InvalidCallException was unhandled Message="External component has thrown an exception." Source="Microsoft.Xna.Framework" ErrorCode=-2147467259 StackTrace: at Microsoft.Xna.Framework.Graphics.Effect.CreateEffectFromCode(GraphicsDevice graphicsDevice, Int32[] effectCode, CompilerOptions options, EffectPool p ...Show All
Hector Urizar 3 questions...
Hello. I was wondering how long does it take to learn C# (average) I know it varies from person to person. I just want to get an idea on how long it may take me. I want to know how to code in C# to make 2D games using XNA. I just bought a book on C#. The book is called 'Beginning C# Game Programing'. I just read the first few pages. I did make my first application (if you can call it that) and that was the Hello World message. Visual C# 2005 is complicated for me. But I'm getting the hang of it. I wish I had the knowledge to develop games by now. lol. But I still have a long way to go. I don't know how long though. I have two more questions, how much C# must I know to create simple 2D games such as Tetris And how much math do I need to k ...Show All
Igor D. Forcing GraphicsDevice creation before Game.Run
In order to incorporate Xna into an existing engine without a lot of ugly hacks, I need to force the GraphicsDevice to be initialised before the program loop starts (Game.Run). Can this be done Assuming this isn't possible (as seems likely), I'd need to ditch Game and handle device creation myself. This looks straight forward enough, except that it requires a handle to a window. This is no problem in windows, but what about on the xbox 360 Is there some sort of factory available that returns a GameWindow implementation for the platform it's running on Has anyone manually created a graphicsdevice on the 360 this is what you need it create the device and setup a basic service provider and use the conten ...Show All
jockofett MRT's on the xbox 360?
With a chip dedicated to the framebuffer is it still possible to do MRT's on the 360 My initial tests suggest this is not the case but if anyone knows for sure I would appreciate it. We don't support MRT on Xbox in the current version of XNA. The underlying hardware does support MRT, but it needs to be handled in a very particular way because multiple targets tend not to fit into the 10 megabytes of EDRAM, so you have to render the scene in pieces and then stitch them together at the end of the rendering. We didn't have time to get that working in a clean and reliable way for XNA, so we decided not to expose this at all. Thank you for the quick reply Shawn. ...Show All
Dvlnblk space wars jerky?
Hello, When I run space wars it seams to jerk alot when I move the ship around. It just doesnt run smooth at all. Can the game be played in full screen it runs windowed on my pc. I thought it would run smooth. My pc is: AMD A64 3200+ 2 gb ram 7600GT All drivers are up to date. Also when I try and publish spacewars, when installing it, it comes with an error. Anyone else have this problem thanks To be honest , When I test the game it takes like 5 mins to load , I do blame my 256mb Ram I especially noticed the game slow down when you buy the double shots and shoot a lot on the screen. Maybe with 100 "shots" on the screen seemed to lag the game entirely. It's ...Show All
Brannon Need help, and lots of it.
I've programmed a few simple things in C++ before, like calculators to find square roots and word counts and things, but that's all the programming experience I have. I've used things like RPG Maker and Game Maker and tried FPS Creator before and made a few things but code is so tough. Just looking at the premade stuff in gamestudio gives me a headache. Class Array Declaration I'm a beginner so I look for a tutorial, and heres an exact quote in one of them "Add the following code just below the class declaration." I don't know where the class declaration is, I don't even know WHAT the class declaration is, how is this a tutorial Anyways, I have a lot of time on my hands and I'm still young, so I'd like to learn to write code for ...Show All
Laxmi Narsimha Rao ORUGANTI MSFT Rendering to a Texture?
I tried to do a search but kept getting an error message. I was wondering if anyone had an example on how to render to a texture under XNA. Thx I'm not sure if I can be of any help but would it work if you try to set the Resource Pool to Managed or Default instead of SystemMemory I'm not sure if you did already but things to double-check before you post here about the exception that you've gotten. Create the texture with: ResourceUsage = ResourceUsage.RenderTarget SurfaceFormat = myGraphicsComponent.BackBufferFormat ResourcePool = ResourcePool.Default Get the top surface with texture.GetSurfaceLevel(0) Set that as the rendertarget with graphicsDevice.SetRenderTarget(0, surface); Render ...Show All
Jim Holloway New Farseer Physics Engine Update
I've updated some of the Farseer Physics Demos for the new XNA Beta 2. I've also added a new Demo showing of some simple Joint functionality. There are misc other new things in the Engine, but I will be doing a more formal release in the near future and will wait till then to itemize the new stuff. You can get the latest release here: http://www.codeplex.com/Release/ProjectReleases.aspx ProjectName=FarseerPhysics Have fun and let me know what you think. -Jeff Weber Thanks JLarkin! The techniques I'm using could in theory be moved to 3d, but there would be some added complexities and it'd be a fair amount of work. It'll be 2d only for a while... Wow great work man. Keep the updates comming ...Show All
Andrei Kuzmenkov build problems (in fact, cant build at all)
Hello, i need your help badly... Started to have some interests in mechcommander2 source codes about 5 days ago. Downloaded and installed all files necessary ;Mechcommander 2 shared source code, Xna, Framework, etc... Then i try to build the code...How do i do i searched and finally found something:in visual express, there is a dos command...doesnt work. But, acessed with the shortcut in the start menu, it can be opened. Doing what is told in the webcasts, i type '' C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\msbuild.exe C:\MechCommander2 Source\BuildProj\mechcommander2.proj It doesnt work. Why Cause (i think) DOS takes C:\Mechcommander as a command Then, i rename the folder, deleting the space between m ...Show All
