Quantcast
Browsing all 33 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

How do I align the matrix used in SpriteBatch and the matrix used in...

I'm writing a Windows tool that uses XNA and allows the user to place textures on the screen.I'm using a 'camera' for the SpriteBatch used to draw the textures, e.g:Matrix matrixForSpriteBatch =...

View Article


What are the GPU requirements for XNA 4.0?

I tried to build a sample application using XNA, but I got an error saying that Pixel Shader 1.1 was required, so I got a used Radeon X300 GPU that supports Pixel Shader.I tried to build it again, but...

View Article


Image may be NSFW.
Clik here to view.

XNA objects not occluding properly

I have got simple 1x1x1 cube model. I draw 3 of them. They are located at:1,0,02,0,03,0,0I draw them in the same order every time. When I move the camera and look at them from one end everything is...

View Article

Problem loading content in WinForms using XNA

I'm currently having trouble implementing loading content with the content pipeline into my WinForm application. I'm using the "WinForms Series 1: Graphics Device" sample provided by microsoft.By...

View Article

Setting variable values in XNA 4.0 from an XML file

I made a program that simulates an assembly line using the XNA 4.0. I made a 3D model, and divided it into 5 positions - start, 3 workstations, and end. These positions represent the places on the...

View Article


What is a good bytes per second sent/received rate?

I am working with XNA networking, on the XBOX.I was wondering what is a safe number to stay under in the bytes sent and received when it comes to the xbox. Obviously various factors will effect the...

View Article

Xna model parts are overlying others

I am trying to import in XNA an .fbx model exported with blender.Here is my drawing codepublic void Draw(){ Matrix[] modelTransforms = new Matrix[Model.Bones.Count];...

View Article

Image may be NSFW.
Clik here to view.

Why distant objects are being drawn in front of close objects?

I am rendering two cubes in the space using XNA 4.0 and the layering of objects only works from certain angles.Here is what I see from the front angle (everything ok)Here is what I see from behindThis...

View Article


SpriteBatch, trying to reduce draw calls

This my main draw call: Matrix Camera_transformation = player_camera_.GetTransformation(); // Background - AlphaBlend spritebatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, null, null, null,...

View Article


XNA Rotate Vector2 around Origin

I have a Rectangle and a Vector2 position, my sprite is being drawn at this position. The rectangle is meant to be a collision system with the cursor, when I rotate my sprite around the origin and...

View Article

Image may be NSFW.
Clik here to view.

How do I target a tank turret with an offset barrel?

I have a tank model consisting of multiple parts, a body, a turret and the barrel of the gun. The turret is offset from the body origin and can rotate around the Y axis(up). The barrel is connected to...

View Article

Flip sprite vertically AND horizontally?

In Microsoft.Xna.Framework.Graphics.SpriteEffects there is the possibility to flip a texture horizontally or vertically before rendering. But can one do both at the same time?When I use: spriteEffect =...

View Article

How do you write Texture2DContent and read it as Texture2D in the XNA content...

I'm trying to create a custom Monogame content pipeline extension that packs a bunch of individual sprites into a single sprite. I need help figuring out how to write and read the texture in the...

View Article

Browsing all 33 articles
Browse latest View live