Sign in to follow this  
dan01

[.net] Content Manager & soft content

Recommended Posts

dan01    127
I'm rewriting modeling app that was originaly written in mdx. I'm would like to browse out and find some content, out side of the app. I'm using xna 2. All the info that i can find is only on using CM with pre-known content. Is there a way around having to know the content after the fact? Do i need to make some sort of on the fly content to xnb converter? I'm kinda stumped. Any suggestions Thanks

Share this post


Link to post
Share on other sites
gharen2    520
I seem to recall that writing code that uses the design time content pipeline stuff at runtime is against Xna's eula. Why that is, I have no idea.

What this means is that no, you can't legally add and convert new content at runtime through the pipeline (even though it's technically possible). Everything has to be added and converted to xnb at design time.

The good news is that some assets, such as textures, have windows only methods for loading them from file, without using the pipeline. The bad news is that many other asset types such as models and spritefonts don't have these functions yet.

Share this post


Link to post
Share on other sites
jpetrie    13138
Quote:

I'm rewriting modeling app that was originaly written in mdx. I'm would like to browse out and find some content, out side of the app. I'm using xna 2. All the info that i can find is only on using CM with pre-known content. Is there a way around having to know the content after the fact? Do i need to make some sort of on the fly content to xnb converter? I'm kinda stumped.

The content pipeline is not part of the XNA Redistributable (at least as of early 2.0 versions, I have not kept up), which means that users would require the full SDK to run your game (or something equivalent). As far as I know, there hasn't been a clear explanation from Microsoft about the rationale, but it might have to do with thorny issues related to runtime content generation on the 360.

Share this post


Link to post
Share on other sites
dan01    127
Quote:

What this means is that no, you can't legally add and convert new content at runtime through the pipeline (even though it's technically possible). Everything has to be added and converted to xnb at design time.


Thanks guys, I guess i wont be relying on CM to much other than my basic app.

Share this post


Link to post
Share on other sites
dan01    127
What would be a decent approach to loading external models, like .x files. Are there any utilities that should look into then?

Thanks again

[Edited by - dan01 on February 22, 2008 4:17:06 AM]

Share this post


Link to post
Share on other sites
Plasmana    261
This is just an opinion, but the pipeline is "conceptually speaking" a XNA Game Studio feature rather than an XNA Framework feature. If it were part of the framework then anybody could use it to build "Bob's Game Studio". I could be symantically incorrect, but my guess is that's the rational.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this