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
1  
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.