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

paths and default shaders

Last post 05/10/2009 17:36 by raabix. 1 replies.
  • 04/09/2009 18:54

    paths and default shaders

    Hey guys, i've been searching around for an hr or two now for answers to these but i'm famously rubbish at searching so please excuse me if i've just missed articles I needed :)

    I've always used milkshape but it's taken far too long for them to update the fbx exporter so I decided to upgrade my creators membership a little earlier than planned to get mod tool pro.  I'll probably do alot of my mesh work in milkshape still as its so familier but will finish (texture, shader, etc) in XSI.  But I am running into a few problems..

    The paths that XSI seems to be storing in my exported models are crazy.  Pointing to directories that dont exist because of dodgey relative pathing.  For instance I pulled a texture out of my "My Pictures" folder in windows as a test.  Using win7 here so the full path would of been d:\users\me\pictures\tex.jpg.  When I export my model and then add it to my visual studio project it complains it cant find d:\development\c#\users\me\pictures\tex.jpg - well no it cant because it doesnt exist and it never should!  I suppose i'm going to be told that the correct solution is to have a directory for my 3d models and put allll the textures in there along with the model files hopefully turning the texture relative path into just the texture filename because its in the same dir.  But im just checking to see if there is any other way of stopping this?

    -EDIT - removed the question about shaders and such, i have the objects rendering by default with basiceffect now and only set shaders in XSI for special funky things :)  still, these paths driving me nuts!

    Thanks for tolerating these novice questions - i'm so used to doing things a certain way i'm sort of struggling to update myself here :)
    -Dave
  • 05/10/2009 17:36 In reply to

    Re: paths and default shaders

    Did you connect your XNA project to your XSI project appropriately? I could see problems arising from there.
    Otherwise make sure that you have the images in your pictures folder of your XSI project.

    Also, you can try to get information about the paths by diagnosing your model chossing XNA Game Studio > Diagnose Models. This script will tell you if your model is XNA compliant and warns you about bad image file paths.

    Best Regards,
    ruediger
Page 1 of 1 (2 items) Previous Next