Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I am using XNA and HLSL to render all the models in my game, so far there is only one, a flashlight. My flashlight model is a .fbx file type, and it loads the model in the game perfectly fine. However, I have tried many different tutorials to render the texture, however the only method that actually works, and it doesn't work correctly is using a "BasicEffect" instead of my HLSL "Effect". When using the BasicEffect, the texture loads, but it is flattened, almost looking like it got cut into pieces and then loaded on a model that is 3 times the size of the texture. I have tried many different things, loading all of the different "maps", combining all maps into a single .tga file, using a Texture2D[] array that loads textures for each mesh, and loading it as a BasicEffect like before.

Any help would be greatly appreciated, if code or the model, or the texture is needed, please do not hesitate to ask!

share|improve this question

put on hold as off-topic by Josh Petrie 2 days ago

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions about debugging a problem in your project must present a concise selection of code and context so as to allow a reader to diagnose the issue without needing to read all of your code or to engage in extensive back-and-forth dialog. For more information, see this meta thread." – Josh Petrie
If this question can be reworded to fit the rules in the help center, please edit the question.

Post the code you are using to render the model, the hlsl file you are using, and an image of the results afterwards for the various solutions you have tried. It will help a lot in figuring out who to fix what is going wrong. –  ClassicThunder Aug 4 '13 at 20:34
And welcome to GDSE! I'm glad you have found the site useful and by asking a question here for us to solve you make the site even more useful for future visitors :) –  ClassicThunder Aug 4 '13 at 20:35

Browse other questions tagged or ask your own question.