Answer Questions
NeW2VB C++ and XNA (I couldn't find it, yet)
Hey, I was wondering if GSE will, at a later stage, support C++ or is it C# exclusive Many Thanks. t_p Thats y I like C# over C++ as a Java programmer! I think C# is the better language. It's modern, it's managed and safe and I can't recall one situation it wasn't fast enough FOR ME. teh_programerer wrote: Hey, I was wondering if GSE will, at a later stage, support C++ or is it C# exclusive Many Thanks. t_p It's been stated that other languages may be sorted at a later date but no language confirmed. To get GSE out in a reasonable amount of time the only language that could be supported was C#. A similar topic about VB.NET and XNA is located here At the runtime level it doesn't k ...Show All
Deldy XNA - Microsoft lack of vision
Its real sad that Microsoft, once again, shows this lack of vision for a games development tool: 1: Get visual: Don't force users to write such a lot of code to do just very little. It reminds the Charles Petzold's "Hello Window" hell of code days. 2: Provide visual tools: Let users choose the components, change their properties and write just the required code for the events. 3: Quick development means quick prototype and minimum learning curve. XNA has a lot of things to learn. Definetively it is NOT for students and hobbists. We will have to wait until someone encapsulates XNA framework into a group of visual components, that can be easily drag & dropped, inspected and tested very easily without having to learn lots of n ...Show All
FredMunro Tricky Question
I have two objects namely Object A which is Transparent Object B which is also Transparent Object B rotates around Object A around the Y axis, and the camera is somewhere on the XZ plane. Transparency is implemented with blending, and the objects are drawn in the sequence above. Result : When Object B is in front of Object A, the scene is drawn normally. When it makes half a rotation and goes behind Object A, it disappears. The reason Because Object A is blended with the background before object B is drawn, so when Object B moves behind Object A, it is not drawn because of the z-buffer test, and is also not visible because it was not blended with Object A. Whats a workaround to this From m ...Show All
Strakian How to use View and Projection matrix?
Hi. I'm trying to draw a vertex buffer (using PositionColored vertex) but I can't see anything. So, reading about it on the web, I've found that I need to set two matrix: Projection and View. I've donet it! Take a look: // Create the vertex buffer private void OnVertexBufferCreate(object sender, EventArgs e) { VertexBuffer buffer = (VertexBuffer)sender; CustomVertex.PositionColored[] verts = new CustomVertex.PositionColored[3]; verts[0] = new CustomVertex.PositionColored(0.0f, 1.0f, 1.0f, Color.Aqua.ToArgb()); verts[1] = new CustomVertex.PositionColored(-1.0f, -1.0f, 1.0f, Color.Black.ToArgb()); verts[2] = new CustomVertex.PositionColored(1.0f, -1.0f, 1.0f, Color.Purple.ToArgb()); buffer.SetD ...Show All
Friedrich B Deploying to the 360 question
In the "Looking at XNA Part Two" video on Channel 9, Frank mentioned that deploying an XNA application to the 360 is only supported via a wired connection(No wireless). Does anyone know if it's possible to have the 360 connect to the internet with the wireless adapter and connect to my local lan on the ethernet at the same time It's probably more than 50, I just haven't measured. Most, not mine :) If you have a LAN in place why would you use a wireless adapter for the Internet connection Hi Stephen, What would I do about this The internal lan I'm talking about would just be ...Show All
Minherz Looking for components
Hello all ^^ I keep hearing of sweet components popping up all over the net, yet, I can't seem to find any >.< If someone could point me in the direction of some, like a framerate one, etc., that would be fan-tas-tic. Thanks! =) Sweet! Thanks Glenn, I'm looking forward to both the components and the tutorial; keep up the good work =) I have finished a framerate component and will soon be publishing it, along with a short tutorial about how I made it. I just need to clean it up and when then publish. Watch my blog for information, also note that I have some more that will also be published. ...Show All
mranzani Detect mouse click on a sprite
Anybody know how to detect a mouse click on a sprite I would guess you'd start off reading something like mouse.x and mouse.y and then iterating through all the coordinates of the sprite to see if the point clicked is in the sprites non-transparent pixels (slow) or.. Is there a way to hit test the sprites region Since this is specifly a game dev kit, I would assume there would be a method in the sprite class part of the engine to handle this like I would in vb.net for a polygon region(InRegion), and not have to iterate through each non-transparent pixel. Is that in the sprite class for hit testing If not, why ...that's a standard thing for a game(hit testing/collision detection). Guess thats for a MS XNA developer to answer ...Show All
seadur D3DERR_NOTAVAILABLE while build of first example in help how to do
I used to code in pascal, cobol, assembly, basic, etc, but not C. From: Your First Game: Microsoft XNA Game Studio Express in 2D following along and doing the first build, I get the error above. I did not think I was calling the 3d engine only the 2d. I cannot find any help on the error, where to look, etc, except what is in the error window when you cursor over it. I cannot figure out how to copy the error in that popup window to look at it further. I know some dislike nubies, but please help if you know the answer. Its disheartening to type in only 6 lines of code and not be able to debug it! To say the least. Thanks OH OH OH, I figured out how to copy the error: Error 1 Building content threw InvalidOperationExcept ...Show All
Jim Sn An XNA WIKI Page For XNA Users And Game Enthusiast
Dear All. I thought of starting something and contribute to the community of developers and hobbyist who are going to use XNA so I started an XNA WIKI page for all of you to share your knowledge with other XNA users. And let’s code for fun. I just started the page few minutes ago so please help editing with me as this is a WIKI page so all of us can participate and edit. ya thats right but there is no WIKI ;-) there is also an XNA forum here :) And www.learn-xna.com will be a good place for info too, cant help it when I have a chance to plug my site, working on getting some videos up this weekend ...Show All
SteveWiggins Index Buffers
There doesn't seem to be a Help item on index buffers in XNA Studio, so I followed the Draw 3D Primitives item and I managed that successfully. I also implemented the Apply an Effect item that uses a simple shader, works as well. Then I followed the chapter about index buffers form Tom Miller's book Managed Dx9 Kickstart, and most of the stuff seems to be the same, however nothing gets drawn on the screen. Here's the code related to the drawing.. //indexed cube VertexPositionColor [] indexedCube = new VertexPositionColor ; //some vectors for the vertices of the cube Vector3 topLeftFront = new Vector3 ( -1.0f, 1.0f, 1.0f ); Vector3 bottomLeftFront = new Vector3 ( -1.0f, -1.0f, 1.0f ); Vector3 topRightFr ...Show All
wmdpt Setting a Sampler state in an Effect using C++ Code
Long time listener, first time caller . . . Is there a good clean way to set the sampler used in an effect I've got an FX file with a sampler and a texture. Texture2D tex; SamplerState sam; ... tex.Sample( sam, inputTex.xy ) What I'm trying to do is set the sampler from the app, so that it can be changed at runtime. The reason is that with our existing codebase, sampler states are set in the code, and concievably, two different textures could have different samplers. In my C code, I've got an ID3D10SamplerState* with the state that I want to set. Now, does anyone know how to set the Sampler The low lever way to set the sampler would be to call Apply() from my pass followed by ID3D10Device::PSSetSamplers() before the ...Show All
DavidThi808 How can I set the on Mouse Over event to a button and a graphic
I wish to know how can i play a wave file when the mouse over a button and over a picture by using DirectInput. Actualy I think I know how to acquire a sound file, but my problem is don't know how to create on mouse over event. Wish anyone can help me. Sorry i'm only a beginner. Thanks Look at the CustomUI sample in the DirectX Sample Browser. Yep... I was read that example. When the mouse pointing to the button, the button will be light up, but i think that is prefix function on the addButton, because I couldn't find any code related to that event. The only think i saw is they set an OnGuiEvent CAllback before adding the button, and the event is onclick event, when you click the button, the code will do the task, somet ...Show All
leonlai How to detect collisions with a slope ground efficiently?
How to detect collisions with a slope ground efficiently Someone!! please help!! Because I can’t do it with the BoundingBox or the BoundingSphere. I saw that the Intersect method can be done with a plane, but how can I create a plane that will represent my ground locally I’ve looked for it but I can’t find it anywhere... Thanks! Take a look at this blog , I cornered the hacker to spill the beans on how he solve his. It's not a code sample but it's a beginning, and can help you to know what to look for. This article might also be to some help. http://gameylittlehacker.blogspot.com/2007/03/pulp-friction.html http://java3d.j3d.org/tutorials/collision/terrain.html Cheers Alfons/Karl ...Show All
stallion_alpa Best Draw method for game level (Quake 1 in XNA)
Does anyone can point me to right place for information on rendering my game when multiple textures are involve. I'm currently rewriting Quake 1 in XNA and I got he levels to load fine but its deadly slow. I do not use the vis yet so I render everything but its still should be pretty fast. If i render the level using only a single texture2d its pretty damn fast but for using multiple texture what I did is take all the triangles using the same textures and collecting them on startup. When im done loading and start to draw I loop in each of those triangles list, set the texture in my effect, fill the vertexbuffer and draw the primitives. thx for (i = 0; i < r_bsp.polygoneCollections.Length; i++) { if (r_bsp.polygoneCol ...Show All
D&#233;d&#233; Using a resource file (resx)
I want to use a resx file to call all of my game content and resources (sound, images, sprites,ect...). How do you call the resx file in you classes and how do you let the classes know what files you want to use Thanks ahead of time. As far as I know you cannot use the resx resource reader with the xna framework, if writing a game only for windows you can reference the appropriate dll and use all the features of the resx file. The xna framework does support the .resources file reader and the resource manager. storage in the resx file is in xml format and the schema is available, so if ambitious you can write your own reader and implement the ResourceReader interface. here are a few help ...Show All
