Answer Questions
IrisFresco render a copy of the backbuffer
Hello I have read several posts about that, but nothing seems to work for me, I try to save my backbuffer (to store it in a surface) then I would like to draw this saved surface... so, I need two things. 1: save my backbuffer MyBackBufferSurface=graphics.GraphicsDevice.GetBackBuffer(0,0); 2:render my backBuffer spriteRenderer.Draw(MyBackBufferTexture, new Rectangle (0, 0, 512, 512), Color .White); I used : MyBackBufferSurface= MyBackBuffertexture.GetSurfaceLevel(0); to assosiate my surface with my texture I end up with a black surface when I render my texutre please help me I on this since a week and it makes me crazy. Surface oldRenderTarget = device ...Show All
Adam23 Creating a terrain using ContentPipeline and XmlImporter (or a custom importer / processor)
Here's my situation: I want to create a text file describing terrain attributes, like heightmap file (raw or an image format), colormap, detailmap and splatting maps. Only the heightmap file and format will be required in this file, so the colormap, detailmap and splatting maps are optional. I then want to add this file to my XNA game project and have it pack a .xnb file containing this data. Ideally, when I do this in my game's LoadContent method: Terrain t = contentManager.Load<Terrain>(@"Content\Terrain\Test"); I should get the terrain object back ready to use, with whatever options I set in it. I couldn't get custom importers and processors to work, so I'll come back to that later, but I did get XmlImporter working with ...Show All
MarcoB USing VB and C++.. 2 programs, accessing 1 anothers var's
Hey guys, Quick question. I have a school project that i have to do. We are required to use visual basic 6.0. I dont like using direct input because i like the other values that xinput outputs. I found out, after hours of searching online that directx 9 can not! be used in VB.. because no one can do it.... so ill just use C++..... now this is my question, Can i have a created C++ programm running in the background and have a VB program running, which access's the C++ var's .. is this possible.... please let me noe Questions: Do you have to use DirectX If so, do you have to use DX9 If no to the first question, can you use the GDI for whatever graphics you have to do How complicated is the p ...Show All
CharlieRussell How to access Surface data?
here is my code Surface surface = graphics.GraphicsDevice.GetBackBuffer(0, 0); uint[] data = new uint[4]; surface.GetData<uint>(data,0,4); "The size of the data passed in is too large or too small for this resource" exception will throw out when execute GetData function. How draw a picture on an surface except to use GetData SetData function Is there a way to use GDI+ function to draw something on XNA surface,or copy data from System.Drawing.Image I want to write some code to draw chinese string on screen.If GDI+ function is available in XNA,that will easy to complete. To get data (for example text) from a System.Drawing.Image, you can do something like the following (but probly not recommended): S ...Show All
kyus94 Best Book for XNA...
Is this a good book for programming on XNA, I saw it on thezbuffer.com, and I am looking for somthing under $20. If you dont know how to program in C# get a book that teaches that. If you already know how to program and want to get into 3D game programming I liked Managed DirectX by Tom Miller. As for the book in question the author is David Weller aka www.letskilldave.com and is on the XNA team not sure if that is the book that had a bad first editon and is better now. I should head to the B&N and look at what they have. Than can somebody recomend a good book or two To answer your question no. To elaborate on that answer :- The book you mention is out of date and does not really teach you anything about program ...Show All
Tryin2Bgood How do I cancel my subscription to XNA?
Okay, I purchased XNA from the Xbox Live Marketplace thinking that the launcher thats under memberships was all I needed. Now, I think it was all I needed, but I can't connect to anything to make anything. So, I want to cancel the subscription, but I can't seem to find any links or anything to cancel. Draco856 wrote: ...but I can't connect to anything to make anything. Can you clarify that It's not clear what your expectations were and what isn't working. Please take the time to read this blog post , then let us know what isn't working for you. It seems like you thought the XNA Creators Club subscription was some kind of game-making tool that runs on teh Xbox 360, which it isn't. You mak ...Show All
Mr Grumpy Cross-platform development question
Hi guys! I intend to make an application and deploy it on PC and XBOX. I want to know how do you want me to do it I see some ways: I can copy my code in other directory and change references to Compact Framework. As a result I'll have two copies of my code. It's the worst alternative, isn't it I can use only Compact Framework even on PC (if it's possible); Something else What is the best way to do it Most XNA code will work without changes on either platform, there are some exceptions like if you want mouse support on the PC, that code will need to have #if blocks around it or it needs to be in a PC-specific file, and there are some differences with point sprites. There are probably othe ...Show All
Martimus Stuck with Express only release...
It is ok for me that XNA is intended for Express... but why is the Managed DirectX 2.0 dicontinued I ported all my code to MDX2.0, I plained to move to XNA as soon as possible. But I cannot change yet because I'm using Source Safe to work at several places, and there is no SourceSafe integration in C# Express... And I cannot run my current version because MDX2.0 launches an Exception at startup. My only option is to port back to MDX1.1... but I really don't want to have all this extra work to just port it to XNA in a few month... During this time I'm stuck. Or I have to move to express, without SourceSafe and Resharper. My work will slow down drastically and I have already only few time to spend on it. Could you just re-releas ...Show All
Andrew D What do you get with “Creator’s Club” membership?
Just couious if for the $99 a year what do you get with “Creator’s Club” Mainly does it include XBL Gold Just wanted to know, I am not the richest person in the world and have to convince wife that $99 is worth it. What will I need to write a non-commercial Xbox Live game, and share it with friends Will the Express beta support Xbox 360 development Will I only be able to share my games with other Creators' Club members i hope Club membership comes with a hat. Or maybe some kind of badge. And a secret decoder ring. Microsoft, we demand a secret decoder ring! - MrSock I just want an "I <heart> XNA" bumper sticker and t-shirt. Will we get ...Show All
Marco Minerva No Blue Channel?
Hi all: Thanks for all your help, my sky sphere now renders from the inside out, and thanks to www.thehazymind.com , I have a working camera to peer inside the sphere. I am stumped on something though. When I render a model that has texture maps with blue in it, such as the aformentioned skysphere, I don't seem to have a blue channel. The texture appears green instead. I'm stymied from the lack of help from the help files (of course they're beta). Any ideas Here's what I'm doing to render: //Get ready to draw the sky sphere graphics.GraphicsDevice.RenderState.DepthBufferEnable = false ; graphics.GraphicsDevice.RenderState.CullMode = CullMode .None; //Reset drawing states graphics.GraphicsDevice.RenderState.Alpha ...Show All
qpsk C# Lack of pointer confusion
My lights are kept in the main Game class. I register my light sources with my render manager so all of the shaders know which light sources to use. I want to be able to update a light source in the Game class (like sunlight) and it be updated for my shaders. I'm passing the source in by ref, but when it gets added to the Dictionary (which holds the name of the light and the light vector itself) it seems to be adding a copy. When I update the light in Game, it is not being updated in that Dictionary. I am pretty much new to C# but have been programming in C++ for years. In C++, I'd just store a pointer. Thanks // This code is from the shader class m_LightSources = new Dictionary<String, Vector3>(); public void AddLightSource(S ...Show All
focus_nz Migration from Express to Pro.
First, I think this is a good approach by MS to get more games out there. I have a couple of questions though. Maybe someone from Microsoft will be able to answer these. 1. What will the upgrade path be from the Express version to the Pro version As the Pro edition comes much later, it's likely many independent development companies will start with the express version to get something going, then migrate up to the Pro when that is released. 2. There are people like me that are in the middle of the pack. I create commercial games for the PC and wish to get into the console market. This solution sounds like the answer. I'm not a hobbyist. I put food on the table selling my PC based games. Yet I'm not Electronic Arts either with ...Show All
WindWang Uploaded mine...
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 I'd like to post my game somewhere, for others to see, but I'm still wodering if it is ok with MS. Anyone has an official opinion Finished mine at about 1am PST last night. It's called SolarBall and it's basically like a two-man space soccer. After I've had a nap, I'll post the binaries if anybody's interested. I'm really looking forward to seeing everybody's entries. Two weeks is a very short amount ...Show All
jitendra badkas DirectX 10-Vista
I owe a computer with W. XP.I'm going to upgrade it to Vista.My question is if directX 10 needs only Vista to run.My system is fueled by ATI radeon x1600 pro.Do I have to change it or just have Vista game-maniac ... DX10 compactible devices have nothing to do with new drivers and stuff. The chipset on the graphic card must be compactible with the new features of DX10, this is pure hardware related. So like Ralf Kornmann says ... u need to wait till companies like ATI or NVidia bring the new hardware on the market. Currently they are still building / testing the new hardware before they will release it. I have been testing with DX10 to, but continued working with DX9 cause the emulation is really sl ...Show All
Stuman99 Getting XNA apps to run on non-development machines
This seems to be a common problem, but I've yet to find a real solution. The only thing I've found that works so far is to include a bunch of dlls with XNA applications. What does not work, however, is satisfying the posted requirements: .NET Framework 2.0 XNA Framework DirectX 9.0c (latest update) When a machine satisfies the above requirements, it still cannot run XNA applications (dies when initializing the graphics device). However, any machine with the XNA SDK has no trouble doing so. It's not reasonable to ask people to install C# Express and the XNA SDK (~120MB total) just so they can play my XNA arcade games. Has anyone found a better solution so far I do appreciate the help that this topic has ...Show All
