Jump to content

  • Log In with Google      Sign In   
  • Create Account


XNA dynamic content


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 dreamwaver   Members   -  Reputation: 104

Like
0Likes
Like

Posted 11 October 2012 - 01:08 PM

Hi guys.
I need help with dynamic content in my project.
I want to add objects into content while game is running, but i don't know how. Everything i've found need restart app, but i don't want :/
Know somebody how to solve this problem ?

Sponsor:

#2 dreamwaver   Members   -  Reputation: 104

Like
0Likes
Like

Posted 11 October 2012 - 01:30 PM

That objects will be models, not Texture2D

#3 Starnick   Members   -  Reputation: 1177

Like
1Likes
Like

Posted 11 October 2012 - 02:59 PM

There isn't an easy answer when it comes to XNA - as the content pipeline is more or less intended to be an "offline" process. Also, its much harder to distribute programs that use the content pipeline at runtime since the end-user needs the XNA game studio to be installed.

With that said, for PC XNA applications, there isn't anything stopping you from loading models at runtime. Its just a matter of processing the content yourself, without the content pipeline. E.g. loading a model and storing the geometric data into your own data structures (vertexbuffers/index buffers) that get rendered.

I believe in XNA 4.0 the only (major) roadblock will be for an effect, as there is no way to compile an effect at runtime without the content pipeline.

#4 dreamwaver   Members   -  Reputation: 104

Like
0Likes
Like

Posted 13 October 2012 - 02:25 AM

Ok, thank you :) I'll try to write somethin.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS