05-3-2013, 06:47 PM | #1 |
♥C.S. + A.M.♥
Join Date: Nov 2006
Location: Nova Scotia, Canada
Age: 30
Posts: 4,892
|
Need Help With XNA C# programming and 3D Models
Right now I'm in something that's somewhat of an extension of normal school, where we're doing XNA programming for 5 weeks. Basically, my situation is that I got a couple free-to-use 3D models of cars (Exported to .fbx with Blender) and they include a bunch of textures in .tga format. I'm looking to use the models inside an XNA project to rotate around and look at for now, and eventually work on some sort of networked racing game. I got the models in and mostly everything is fine, but the problem is, I can't get the textures to work. I did what I thought was right according to some examples online but when I run the project the textures aren't shown. The textures should all work fine right from the downloads and the textures look fine, so those aren't the causes.
Anyone have an idea as to how I could get the textures to load onto the model in my XNA program? (Bonus points if you also know a way to have multiple colour options using one model in a program, since I know I'll be looking for that too). I'll offer 10k credits if someone wants them and you result in everything working! Thanks. (tl;dr version: .tga textures don't display on a .fbx model in my XNA C# program.)
__________________
|
05-8-2013, 11:25 AM | #2 |
FFR Veteran
|
Re: Need Help With XNA C# programming and 3D Models
I'm sorry I can't offer help on this particular thing as I've not done any XNA programming nor have I worked with texture mapping in general. So, why am I replying then, you might ask?
I want to encourage you to continue trying to work on this. You are entering some quite advanced territory (3D modelling and textures) and so you might not get a lot of feedback and I didn't want you to get discouraged, thinking people just didn't care or something like that. In reality, if you manage to get this working, I and I believe many others, would much enjoy (if you would) working source code snippets or such (or the whole thing if you're cool with that) as I think many people could benefit from it. The only advice I can give is try to find some XNA-specific forum or message board or, failing that, a C# one and/or to literally pour through all the available Microsoft documentation. The one good thing is Microsoft tends to have pretty good documentation for most stuff (unless it's really experimental or severely outdated). If someone does manage to help, I don't think they'll do it for the 10K credits reward though. It just seems too small an amount for something more involved like this. |
05-8-2013, 03:59 PM | #3 |
♥C.S. + A.M.♥
Join Date: Nov 2006
Location: Nova Scotia, Canada
Age: 30
Posts: 4,892
|
Re: Need Help With XNA C# programming and 3D Models
Thanks for the reply anyway. I might wait a while before attempting this again since I don't really need it for what I'm doing, but it would be a nice touch and a good thing to know for the future. If I manage to figure it out sometime, parts of the code could probably be available, or at least an explanation of how it ended up working.
It's kind of interesting to hear it's advanced territory in your opinion, since I'm just in my first year right now. It gives me a little more hope, hahaha.
__________________
Last edited by customstuff; 05-8-2013 at 04:11 PM.. |
05-9-2013, 08:59 PM | #4 |
Snek
Join Date: Jan 2003
Location: Kansas
Age: 34
Posts: 9,192
|
Re: Need Help With XNA C# programming and 3D Models
I used to know a lot about this when I worked on a 3D game using XNA / Visual studio with a class.
At the very least I know to change colors you have to change the color of the light hitting the model. I still have the project so I guess I could go through it and see what we did to import everything and add textures. Or I could send you the whole game. |
05-9-2013, 10:12 PM | #5 |
♥C.S. + A.M.♥
Join Date: Nov 2006
Location: Nova Scotia, Canada
Age: 30
Posts: 4,892
|
Re: Need Help With XNA C# programming and 3D Models
That would be amazing if you're willing to send me any of the code you have of it! If you want to, either upload it somewhere and PM me or just PM me if you want my e-mail. It's just hard to find online for some reason and it would be so useful for me to learn. Thanks :D
__________________
|
05-10-2013, 12:20 AM | #6 |
Snek
Join Date: Jan 2003
Location: Kansas
Age: 34
Posts: 9,192
|
Re: Need Help With XNA C# programming and 3D Models
https://mega.co.nz/#!GYtljaoS!BSjd5X...5Ww5svlutHxGO8
It uses a ton of different things, it isn't just a model and lighting. Now that I look through the content files I noticed all of the model textures are .dds files and not .tga. |
05-10-2013, 12:26 PM | #7 |
♥C.S. + A.M.♥
Join Date: Nov 2006
Location: Nova Scotia, Canada
Age: 30
Posts: 4,892
|
Re: Need Help With XNA C# programming and 3D Models
Well I imagine it would still be useful to know and quite possibly done the same way as .tga anyway. Downloading now, thank you so much!
__________________
|
05-13-2013, 11:58 PM | #8 | |
FFR Veteran
|
Re: Need Help With XNA C# programming and 3D Models
Quote:
You ask two different people and you'll likely get two different metrics here, for what it's worth. And thank you Izzy for contributing some XNA code. I might have a look later. It's just not something I've used. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|