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

Racer Starter Kit Mod

Last post 04-27-2008 9:44 PM by teh humungus. 4 replies.
  • 04-21-2008 2:45 PM

    Racer Starter Kit Mod

    Does anybody know how to mod the car on the starter kit.  I would like to replace it with bike model but I have had no luck with the bike model.  It is a .fbx format.  I am renaming the model to car.fbx and am trying to remove all the special alpha rendering on the glass. 

    Could someone give me some instructions on how to do this.
  • 04-23-2008 11:39 PM In reply to

    Re: Racer Starter Kit Mod

    wow, so I am the only one messing with the render function inside of this sample to try to get something else to race in?
  • 04-27-2008 9:24 PM In reply to

    Re: Racer Starter Kit Mod

    I'm working on the same problem myself. Right now I can comment out a few lines of code and get the car to import but be invisible (You can only see the ghost)

     

    I'm pretty sure it has something to do with the shaders. I'm sitting down this weekend and next to see if I can re write the shaders and model importer so that I can bring in any .x or .fbx model.

     

    Let me know if you figure anything out and I'll do the same.

  • 04-27-2008 9:40 PM In reply to

    Re: Racer Starter Kit Mod

    Oh, I almost forgot. You can't just rename the model and drop it in the apropriate folder. You have to add the model to the content pipeline in the project.

     

    Next change:

    carModel = new Model("car");

    and

    isCar = (name.ToLower() == "car");

     

    To reflect the name of your model (set in the properties section... right click your model in the content pipeline)

     

    At this point the project will compile, but you will get runtime errors. In debug mode it will show that your error is at:

    if (list.technique.Name == techniqueName)

    {

    foundList = list;

    break;

     

     

    You can keep going through in debug mode and commenting out the errors until it runs, but then you'll have an invisible model (You will be able to see the ghost) Obviously this is not the way to get the game working properly, but it's just a hack to get it loaded and running.

    I am suspecting if we modify the sahder techniques to be compatable with any textures and effects, we'll be able to get our models into the game.

  • 04-27-2008 9:44 PM In reply to

    Re: Racer Starter Kit Mod

    Haha hey boss, I guess we both just need to lurk moar! See this thread:

     

    http://forums.xna.com/thread/54276.aspx

     

     

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