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

tool to convert XNB=>jpg

Last post 6/25/2007 7:36 PM by Nick Gravelyn. 6 replies.
  • 6/25/2007 11:01 AM

    tool to convert XNB=>jpg

    hello  i'm lloking for a way to  open a xnb file. convert it to a useable image file (jpg,Bmp,PNG), tweak it and then  reconvert it to XNB.
    Basically i want to make correction to graphic file without having to REbuild all my project. If im correct XNB is a compress file  create when XNA build , right?
    The main purpose is speed for testing. having to made the change on my JPG save it, rebuild the project, load the game  and restart is really fastidious and slow, so if i could skip the build phase that would speed the process up.
    Save=>Convert=>Load game=> restart if needed.
    so if you know a plugin,tool or ANYTHING that could help me then please tell me , i would appreciate all help.

    thanks guys

    -DavidB


  • 6/25/2007 11:23 AM In reply to

    Re: tool to convert XNB=>jpg

    nope, there is no way of doing that right now (or maybe ever) ... XNB is an undocumented format for the public.  So your content workflow should be something like this:

    edit jpg => rebuild project => run/test
    Joel Martinez - XNA MVP

    Blog: http://codecube.net

    XNA Unit Testing: Scurvy Test
  • 6/25/2007 12:39 PM In reply to

    Re: tool to convert XNB=>jpg

    unfortunatly thats what i tought.  SO i guess a simple converter  Jpg=>XNB isnt possible too?
    so edit JPG=> convert to XNB => overwrite file => run/test?
    or maybe i am dreaming

  • 6/25/2007 2:35 PM In reply to

    Re: tool to convert XNB=>jpg

    Answer
    Reply Quote
    well, when you rebuild the project, that's when the "Covert to XNB" step happens.  Is your project that huge that it takes too long?  if you don't want to bother with rebuilding code along with your content, you could always try using the XNA Content Builder :-)
    Joel Martinez - XNA MVP

    Blog: http://codecube.net

    XNA Unit Testing: Scurvy Test
  • 6/25/2007 3:58 PM In reply to

    Re: tool to convert XNB=>jpg

    thank man  that perfect
    no my project ist that big its just im working in collab with another guys  and i'm mainly working on the GFX so instead of having both source i use a build and i just change the placeholder image. Easier this way i think.

  • 6/25/2007 4:06 PM In reply to

    Re: tool to convert XNB=>jpg

    When you update art the project only does an incremental build (only builds the new art file.)  You don't need to click Rebuild Solution every time, just select Build (F6).  I change art constantly and the builds take a second or less (unless I change a ton of stuff, then maybe 5 seconds.)
    --
    Gamer Outfit - XNA News and Reviews
    Maker of Exisled - Helicopter 2d/3d Shooter available now!
  • 6/25/2007 7:36 PM In reply to

    Re: tool to convert XNB=>jpg

    Daedalus:
    unfortunatly thats what i tought.  SO i guess a simple converter  Jpg=>XNB isnt possible too?
    so edit JPG=> convert to XNB => overwrite file => run/test?
    or maybe i am dreaming



    That is possible, though not with the tools the default XNA install gives you. You can check out this project: http://www.codeplex.com/xnadevru/Wiki/View.aspx?title=XNA%20Content%20Builder%20(XCB) where they have used MSBuild to build content outside of the main project. Then you could edit the file and build it and just send your group the XNB file. I haven't used it myself so I can't comment on the ease of use, but it seems to do exactly what you want.
Page 1 of 1 (7 items) Previous Next