The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
1answer
625 views

Loading SpriteFont through a different class than Game.cs

I am trying to load up a single SpriteFont to print some debug information. In our current game, we load up both Textures and Music through a ResourceManager. They are both loaded with a filestream, ...
9
votes
4answers
2k views

Using XNA ContentPipeline to export a file in a machine without full XNA GS

My game uses the Content Pipeline to load the spriteSheet at runtime. The artist for the game sends me the modified spritesheet and I do a build in my machine and send him an updated project. So I'm ...
2
votes
1answer
130 views

Writing via content pipeline in Xbox game project

I'm creating an Xbox application and I have this problem with the content pipeline. Loading .xnb files is not a problem but I can't seem to find any helpful tutorials on writing via the content ...
3
votes
4answers
590 views

Some advice for settling on a map format for a tile game?

I am using XNA 4.0 and am currently working on a simple tile game to pass the time. Basically, I'm using the tried and true method of having numbers refer to tile types, where in 0 would be an empty ...
1
vote
1answer
1k views

SpriteBatch Draw Using Floats with the Destination Rectangle

So I created a nice little isometric tile engine and I have it so that when you scroll with the mouse it changes a variable called scale. Scale is a float and gets passed through the ...
0
votes
1answer
338 views

How to go from Texture2DContent to Texture2D in a content processor?

I'm using reflection to create a manifest of all assets, strongly typed. It's working fine for my own types: I get the type of the asset, if a processor is ran on it I get the output type. Then I ...
0
votes
1answer
118 views

WriteObject<T> in XNA with existing ContentWriters

I have quite a lot of custom content pipeline components, and I was just wondering if under the hood XNA knows about these things when doing its magic... Here is my scenario. I have animation ...
7
votes
2answers
5k views

What model file formats are supported in XNA?

What model extensions are valid in XNA? I know it supports .fbx, for example.
1
vote
2answers
273 views

Creating installer for WinForms XNA with compiled content

I have a Windows Forms application that uses a custom Graphics Device control based on Microsoft's "WinForms Series 1: Graphics Device" sample. The application makes use of a single model (the ...
3
votes
2answers
735 views

How can a load and play an .x model using vertex animation in XNA?

From a game I developed years ago, I still have character models that my former 3D engine designer created and that I'd like to reuse in a Windows Phone project now. However, the files are in DirectX ...
3
votes
1answer
247 views

Does ContentManager.Load<T>() re-read an asset if I have loaded it before?

Or is it smart enough to know I have asked for it before and return an in memory copy created from the first call? For example if I have a projectile's texture: Texture2D projectile; If then I ...
4
votes
2answers
945 views

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 ...
2
votes
1answer
687 views

ContentSerializerRuntimeType required in content pipeline?

I have a problem at the moment loading in a texture for a larger model in the content pipeline. Now it seems that I need to make a proxy object, which is fine, however looking at the SpriteSheet ...
4
votes
1answer
394 views

How should I handle shared classes between the Game project and the Content Extension Library?

I've been using XNA for a while but recently I've needed to write a content extension library which I haven't done before. I need to import a TextureAtlas class from a file that is exported by a tool ...
0
votes
2answers
622 views

Load XNA Content Type from File

I'm writing my own level editor and recently got the exporter working so now I'm working on the importer. My save file structure looks essentially like this: [ObjectType] Property=Value ...
2
votes
1answer
463 views

How can I export models from 3DX Max into XNA?

I am looking for a way to import my 3D models (including materials and shaders) from 3D Studio Max to XNA. For example, if I have a model with diffuse, bump, reflection textures and values (through ...
5
votes
1answer
774 views

Is using XNA title storage for level/config files a Bad Idea?

I've reached the point in development where my Game Engine can actually do stuff, and it's time to start thinking about how to store / load the various bits and pieces where they need to be. I've ...
2
votes
2answers
331 views

Can XNA's content pipeline be used to load C# source files?

I am wondering if its possible to use the XNA Content Pipeline to load C# files? I'm working on a game and am currently writing a FSM. I would like to be able to load states from the content ...
1
vote
1answer
346 views

XNA CustomModelAnimationSample problem

I downloaded the official tutorial from:CustomModelAnimationSample It works fine but when I try to replicate it in my project, it fails to load the Tag property in my model. Is found that the probelm ...
1
vote
1answer
2k views

XNA doesn't compile my XML to an XNB, because of namespaces?

I am sorry, because I know, that this question came up before, but that thread doesn't help me so I decided to aks my own question. My problem is the following: I have a XML-file with the following ...
1
vote
1answer
937 views

Going from using XMLSerializer to using the XNA Content Pipeline

A well known limitation of using the XNA Content Pipeline is that it is not included in the XNA redistributable. So, if you want to create an editor for your game, the designer must download the whole ...