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

Import model on Racing Starter Kit

Last post 10-06-2008 11:26 PM by The ZMan. 11 replies.
  • 10-06-2008 10:05 PM

    Import model on Racing Starter Kit

    Hi, I'm trying to add/change a model on racer starter kit, but I get some errors and when I comment them then I get start of the game but I don't see the model. Please may anybody help. Thank in Advance.
  • 10-06-2008 10:12 PM In reply to

    Re: Import model on Racing Starter Kit

    Try clicking the "Fix All Errors" button. If that doesn't work, then get the exact wording of the error message and post it here.
  • 10-06-2008 10:28 PM In reply to

    Re: Import model on Racing Starter Kit

    I thought that this Forum is for helping and not for fun. Fix All Errors??? isn't this a joke.
  • 10-06-2008 10:31 PM In reply to

    Re: Import model on Racing Starter Kit

    Yes he was joking.

    What he was trying to say, with some humor, is that you can't expect people to help if you don't provide all of the information. This means you need to tell us the errors you are getting and the lines of code. Otherwise we are left using psychic abilities and guessing. (Yes that's my humor)



    The ZBuffer News and information for XNA

    Please read the forum FAQs - Bug reporting
  • 10-06-2008 10:36 PM In reply to

    Re: Import model on Racing Starter Kit

    Ok, Thank You, I'm getting errors on: Model.cs cachedEffectParameters[effectParameterIndex++].SetValue(BaseGame.ViewProjectionMatrix); this is one of the errors but when I comment them all (about 5 errors) then game is running but model I can't see all what I see is the Ghost but not model. I think that problem is somewhere on ShaderEffects but how to get them right and also is there for every model one unique shadereffects. Thank You
  • 10-06-2008 10:39 PM In reply to

    Re: Import model on Racing Starter Kit

    Once again - what is the error? What did you change? Did the original version run fine? Go back to the original version and change one thing at a time.

    You are commenting out the passing of parameters into the shader, sounds like the sahder used to draw the car. Without these parameters they shader won't know things like where to draw it, what color to make it etc.



    The ZBuffer News and information for XNA

    Please read the forum FAQs - Bug reporting
  • 10-06-2008 10:52 PM In reply to

    Re: Import model on Racing Starter Kit

    Yes the original is runing OK, and also I add other models without any problems but when I try to change the Car then I got these errors the first error is: MeshRenderManager.cs if (list.technique.Name == techniqueName) { foundedList = list; break; } I read somewhere on the net that I should change the ShaderEffect for my new model but I don't know how to do it.
  • 10-06-2008 11:00 PM In reply to

    Re: Import model on Racing Starter Kit

    That is the line of code that the error occurs on. We need to know what the error message is.

    How are you changing the model? Just swapping out the model files? DO you know if the model files you have replaced have the same structure, bump maps, specular maps etc?



    The ZBuffer News and information for XNA

    Please read the forum FAQs - Bug reporting
  • 10-06-2008 11:06 PM In reply to

    Re: Import model on Racing Starter Kit

    No the new model is a rocket and I try to change with a Car which is on the Racer Kit so it's not the same structure, bump, specular etc. Is that any possible way to do this.
  • 10-06-2008 11:08 PM In reply to

    Re: Import model on Racing Starter Kit

    Probably if you fully understand how the shader is being used. Then you can rewrite the shader or the setup code to make it work. However if your experience is limited to just switching model/texture files and hoping it works then you will be out of luck. Racer is some fairly complex code.


    The ZBuffer News and information for XNA

    Please read the forum FAQs - Bug reporting
  • 10-06-2008 11:12 PM In reply to

    Re: Import model on Racing Starter Kit

    Thank You, but is there any tutorial on how is it use the shaders and should I look this on ShaderEffects.cs or in some other file.
  • 10-06-2008 11:26 PM In reply to

    Re: Import model on Racing Starter Kit

    The readme doc with the starter kits are the only docs. If you buy Ben's book it also talks about the architecture of the game quite a bit. http://www.wrox.com/WileyCDA/WroxTitle/Professional-XNA-Game-Programming-For-Xbox-360-and-Windows.productCd-0470261285.html


    The ZBuffer News and information for XNA

    Please read the forum FAQs - Bug reporting
Page 1 of 1 (12 items) Previous Next