Answer Questions
p.cosmos GSE - IDE Problem
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 "VC# has encountered problem and has to close' dialog box. Downloaded an XNA project off a web site and experienced screwy results when I loaded it...loads, compiles, runs OK but nothing displayed in Solution Explorer....however, can load individual files and navigate thru or modify them without IDE crapping out... Have no idea what's g ...Show All
Jamie Thomson space on Storage device
how mucth space can we use on the xbox360 using Storage device Jon Watte wrote: at this time Right. I'm aware that the XNA Creator's Club is the current method, and it requires all kinds of hoop jumping to actually run the game on a console. However, I can't see that they wouldn't make some release method available at some point. The combination of XNA and Live Marketplace is a little too obvious to not be on the internal roadmap somehow. And Marketplace has a size limitation on downloads, so that customers without hard drive can still download and save the games. I bet there are still all kinds of issues (quality control, tech requirements, etc) that haven't gotten worked out, but that's gotta be an important ...Show All
Hooper Simulating keyboard under Directx apps
Hello, I am getting a bit mad from this problem, please take a look. I have directx application and a lot of function: keybd_event, SendInput, PostMessage. My point is to simulate keys under this directx application. My wish is to press and hold SHIFT, press and release A, again for B and for example again for C and realease SHIFT. Everything works great via keybd_event or SendInput on computer with Visual Studio Installation. Now move to computer only with .Net framework without VS installation. Whoala, problem.. Directx App is ignoring all keyinputs from keybd_event or sendinput function. Well so i tried to use PostMessage but it's a bit difficult to hold shift, press keys and release shift. I would like to resolve, why is not keybd ...Show All
Bruce Bukovics Slow Texture2d.fromgfile, post latest xna update
Hey All. Ive been upgrading an application I built in the pre October release of XNA to the post October XNA release, and so far Ive managed to get everything running fine. However I have a texture2d that im loading from a jpg file via : Texture2d texture = Texture2d.FromFile(filepath); And while this function worked fine and at high speed in the old app in the new app it seems to take 20-30 seconds to complete. For each load. Is there a reason for this I thought I might be using the function at the wrong point (at the moment its called at initialization, and I tried at the load resources function), or perhaps the method has been depreciated. Any help would be great. Cheers That does seem like a long time for a method that is just u ...Show All
h1 DrawIndexedPrimitives bugged?
Hi everybody! Does anyone know if DrawIndexedPrimitives is bugged I read about people having freezing problems or getting blank screens. I have something completely different: I am trying to draw two triangles with just one shared vertex and the DX function displays just the first triangles!!! Here is the code for the VertexBuffer: private void VertexDeclaration() { vb = new VertexBuffer ( typeof ( CustomVertex . PositionColored ), 5, device, Usage .Dynamic | Usage .WriteOnly, CustomVertex . PositionColored .Format, Pool .Default); vertices = new CustomVertex . PositionColored [5]; vertices[0].Position = new Vector3 (0f, 0f, 0f); vertices[0].Color = Color .White.ToArgb(); vertices[1].Position = ...Show All
Robert.Altland Depth problems with CustomVertex
Hello, I am developing a 3d engine using Visual Basic, but I am encountering some problems. - I store a terrain made from a heightmap in a customvertex (Am I even allowed to do that ). The problem is, when I draw it and rotate the camera around, I notice the landscape isn't depth-buffered (Polygons in the back actually appear in the front) (edit: I do have AutoDepthStencil turned on and my ZnearPlane = 0) - I have no idea how to load/draw an animated model. Could someone help me with these Thanks in advance, Michel ..as for the animated model, if you are to create a serious engine, you should look for information about skeletal animation 'n stuff. It's too large theme to discu ...Show All
Mark The Archer Evans Performace: can't this thing draw any faster?
I'm certain that I my code must have some critical inefficiency somewhere; I can run my favorite 3D video games at maximum settings, but my little DX app slows down to < 90 frames per second when it tries to draw 100 little boxes. Here's the code in a nutshell: protected D3D.Texture _texture; protected static D3D.Sprite _sprite; _texture = MakeTexture(); // ends up producing a 1x1 white texture _sprite = new D3D.Sprite(graphics); dx_graphics.BeginScene(); for (int i = 0; i < 100; ++i) { _sprite.Begin(D3D.SpriteFlags.AlphaBlend); _sprite.Draw(_texture, new Rectangle(0, 0, (int)500, (int)500), new Vector3(0.0f, 0.0f, 0.0f), new Vector3((int)300, (int)200, 0.0f), Color.FromArgb(255, 255, 255, 255)); _sprite.End(); } dx_graph ...Show All
Charley Lou XNA in Internet Explorer?
I was surprised to find out that XNA doesn't work in Internet Explorer as a WinForm Control. I know I must be smoking crack, but somewhere a long the line I got the impression that XNA would enable a 3D environment in Internet Explorer. If we can put Ink on the Web, http://www.code-magazine.com/Article.aspx quickid=0512062 , then I think we should be able to put a 3D environment on the web as well Anyone know of a way to get XNA or Direct X working as an element of Internet Explorer Thanks, Johnny Neither XNA nor DirectX are enabled to work in IE. There are significant security issues running a DirectX application (which has direct hardware access) from inside an Internet browser. This ...Show All
Merryhu Modify a Texture/Sprite
Hi: Is there any way to modify the appearance of a texture drawn using SpriteBatch For example if I wanted to invert the colors or blur it I know we have an option to pass in a color object to the Draw method but is that the only option we have It seems greatly limited. I would assume some sort of pixel shader would be the tool to use but I cannot see any documentation using pixel shaders with SpriteBatch. Any help greatly appreciated. Regards: John Unfortunately you can’t use sprite batches with a custom pixel shader. If you want you can add it as suggestion over at connect . Thanks Ralf: I have suggested it to Microsoft here . If anybody thinks it would be a good addition to the Spri ...Show All
Dave Patricio Anyone Need professional voice production?
I myself am an amateur game enthusiast, currently learning XNA. I work in real life as a Voice Producer, and have worked on game titles including GTA, Mafia, Timesplitters 2 and recently Joint Task Force. Many of the actors I work with are also game enthusiasts, and would consider doing work for "mod" or "free" projects for nothing. So if you have any requirements please do not hesitate to contact me on alistair@matinee.co.uk My MSN is a.langfield@tiscali.co.uk and XFIRE: screwtape Look forward to talking to some of you soon. PS - I may be able to also help out with SFX. ...Show All
Peter Mackay Where does Console.WriteLine() go to on 360?
Probably a setup problem, but I can't seem to get any text sent to Console.WriteLine() to appear in the output window in GSE, when running the app on my 360. Anyone else managed to get this working Andy. Adam Miles wrote: Why would you use a release build for debugging My games usually use a lot of physical simulation, to the point that they often become to slow to play in debug mode... System.Diagnostics. Debug .WriteLine( "Hello, world" ); There is no console when running on the 360, just like there's no console when you run a Windows Forms application. Try using System.Diagnostics.Trace.WriteLin ...Show All
boblotz2001 Palette Swapping
How would I go about implementing palette swapping for 2D animated sprites Le't say I have a bunch of 8-bit indexed png images, that all use the same palette. Now I want to create a different palette to apply to these images when I draw them (maybe for player 2). Also consider the possibility that the images might have the same RGB color mapped to different index values in one palette, but they might map to different colors in another palette. (Maybe there's an evil dark palette were all the colors are black or shades of gray, and another palette where there's a logo on a shirt that's only visible in that palette, in others it's mapped to surrounding colors) I couldn't find any way to manipulate a palette in the XNA API. How is it done ...Show All
Vayse_Dev Weird backface glitch
I'm not sure what's going on here; I wouldn't be surprised if it's just my video card. But has anyone seen this before cellphone_rendering_bugs.jpg That's a series of screenshots I took as the model rotated... the original model in Maya has all its normals facing the right way. I exported it as an FBX200611 model. I'm (unfortunately) using a Compaq Presario with an NVIDIA GeForce 6150 LE video card. I thought it might have been a matter of the near/far draw limits being too far apart and the Z buffer lacking the precision to draw this relatively small area properly, but I turned it down to 1.0 -> 100.0 and it still happens. Any thoughts Yeah not a good sign. Well if you post your model somewhere I'l ...Show All
Sunchaser Using directx without a soundcard
I have an application that compresses wav files (voice recordings). The compression method I use does about a 9:1 compression. Saves me a ton of disk. Unfortunately, the 3rd party app loses its mind. And I have to use that 3rd party app. I use DirectX to examine the input file and then compare it with the output file. If the comparison is more than +/- 1 second different, I quit with an error. Microsoft.DirectX.AudioVideoPlayback.Audio aud = new Audio(FileName,false); audtime1 = aud.Duration; This works great on my workstation and the test workstation. Unfortunately, when I deploy the app to the server, it doesn't work because the server doesn't have a sound card. I did install the latest version of directX on the server. Short of buying ...Show All
A.Kahn How to merge meshes?
Hello ,Everyone, I'd like to know how to merge several meshes into one mesh. From the DirectX SDK9.0(october) C#, I got only how to split one mesh into more, But Now my homework is to merge ! Could someone give some suggestions Many Thanks!!!! Hi there, merging meshes is not very trivial. You have to deal with the fact that meshes can have different materials and vertex formats. So your steps would have to be: 1.- Ensure both meshes have the same vertex format. If not, use the Clone() method to change their vertex formats to one of your convenience. 2.- Create a new Mesh with that vertex format 3.- Create new mesh’s vertex buffer, putting in there all the vertices of mesh1 first, and all t ...Show All
