XNA Creators Club Online
Page 1 of 1 (5 items)
Sort Posts: Previous Next

Build Content at Runtime

Last post 11/8/2009 2:00 PM by Omnicoder. 4 replies.
  • 11/8/2009 6:47 AM

    Build Content at Runtime

    I need to be able to build Texture2D content at runtime for my level editor. All existing stuff related to building at runtime just doesn't work (at least not on 3.1).
    Can anyone help please?
  • 11/8/2009 7:08 AM In reply to

    Re: Build Content at Runtime

    Omnicoder:
    All existing stuff related to building at runtime just doesn't work (at least not on 3.1).

    What do you mean it doesn't work?

    Did you try Texture2D.FromFile?
  • 11/8/2009 8:10 AM In reply to

    Re: Build Content at Runtime

    Answer
    Reply Quote
    See this thread for updating the runtime content sample. Keep in mind that anyone intending to use it will HAVE to have Visual Studio installed, and the full installation of XNA 3.1. This also means you can't use it on XBox.

    Texture2D.FromFile and Effect.From**** will work even if they don't have the full installation of XNA (including Visual Studio), but will not work on XBox. Also, you don't get to specify processor parameters, and your level editor would highly likely want to use mipmapped textures.
  • 11/8/2009 9:10 AM In reply to

    Re: Build Content at Runtime

    On the xbox, you should know all your content at build-time, so there's no need for building content at run-time.
  • 11/8/2009 2:00 PM In reply to

    Re: Build Content at Runtime

    Edit: solved
Page 1 of 1 (5 items) Previous Next
var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG