Jump to content

View more

Image of the Day

Inventory ! Va falloir trouver une autre couleur pour le cadre D: #AzTroScreenshot #screenshotsaturday https://t.co/PvxhGL7cOH
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

XNA dynamic content

4: Adsense

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   

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 ?

#2 dreamwaver   Members   

104
Like
0Likes
Like

Posted 11 October 2012 - 01:30 PM

That objects will be models, not Texture2D

#3 Starnick   Members   

1869
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   

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.