Content Pipeline<br />Ivan Suhinin<br />
What content is?<br />Something that defines your game<br />Bad content ruins the game<br />Good content can save the wors...
What content do we use?<br />Images<br />Textures<br />Backgrounds<br />Fonts<br />XML<br />Levels<br />Players<br />Objec...
Why do we need Content Pipeline?<br />Content<br />Pipeline<br />Content<br />Game Content<br />Image<br />Texture2D<br />...
Content flow<br />Build<br />Importing<br />Processing<br />Writing<br />Runtime<br />Reading<br />
Build: Importing<br />The process of reading initial content data<br />Converts input data to an object<br />XNA has defau...
Demo: Default XML Importing<br />
Build: Processing<br />The process of processing <br />Can change object type<br />XNA has a set of default processors<br />
Demo: Custom object processing<br />
Build: Writing binary data<br />Serializes object to a binary file<br />Usually objects are serialized by default<br />But...
Runtime: Reading binary data<br />Reading .XNB (usually) file into an object<br />Custom readers are supported<br />
Demo: Custom serialization<br />
Debugging Content Pipeline<br />http://bit.ly/xna-cp-debug<br />Template allows you to debug content pipeline<br />Extreme...
Demo: Debugging Content Pipeline<br />
Questions?<br />i.suhinin<br />suhinini<br />suhinini<br />
Upcoming SlideShare
Loading in …5
×

Xna content pipeline

1,063 views

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,063
On SlideShare
0
From Embeds
0
Number of Embeds
22
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Xna content pipeline

  1. 1. Content Pipeline<br />Ivan Suhinin<br />
  2. 2. What content is?<br />Something that defines your game<br />Bad content ruins the game<br />Good content can save the worst game<br />
  3. 3. What content do we use?<br />Images<br />Textures<br />Backgrounds<br />Fonts<br />XML<br />Levels<br />Players<br />Objects<br />
  4. 4. Why do we need Content Pipeline?<br />Content<br />Pipeline<br />Content<br />Game Content<br />Image<br />Texture2D<br />Font<br />SpriteFont<br /><Entity /><br />Entity<br />
  5. 5. Content flow<br />Build<br />Importing<br />Processing<br />Writing<br />Runtime<br />Reading<br />
  6. 6. Build: Importing<br />The process of reading initial content data<br />Converts input data to an object<br />XNA has default importers for many content types<br />But you can always create a custom one<br />
  7. 7. Demo: Default XML Importing<br />
  8. 8. Build: Processing<br />The process of processing <br />Can change object type<br />XNA has a set of default processors<br />
  9. 9. Demo: Custom object processing<br />
  10. 10. Build: Writing binary data<br />Serializes object to a binary file<br />Usually objects are serialized by default<br />But you can always create a custom writer<br />…which requires a custom reader!<br />
  11. 11. Runtime: Reading binary data<br />Reading .XNB (usually) file into an object<br />Custom readers are supported<br />
  12. 12. Demo: Custom serialization<br />
  13. 13. Debugging Content Pipeline<br />http://bit.ly/xna-cp-debug<br />Template allows you to debug content pipeline<br />Extremely useful for complex content objects<br />
  14. 14. Demo: Debugging Content Pipeline<br />
  15. 15. Questions?<br />i.suhinin<br />suhinini<br />suhinini<br />

×