| Poster | : AndyB | | Posts | : 14 | | Country | : Ireland | | City | : Dublin |
| | | | Posted by AndyB on 17/09/2008 at 18:38:16
| | Hey, Just wondering on support for adding textures.
Before I add textures, it works fine, all nice and looks good, But after i add the textures its all scrunched up and has no structure.
Was wondering if anyone could provide advice on fixing this?
Just so you know, due to my graphics card I have had to change the int[] IndexBuffer array to short[] in all instances.
This is how it looks:
[IMG]http://i36.tinypic.com/wa671i.jpg[/IMG]
The whole code can be viewed on pastebin:
http://pastebin.com/m32d8faea
Thanks for your time in reading. | |
|
|
| |
| |
| Poster | : riemer | | Posts | : 1392 | | Country | : Belgium | | City | : Antwerp |
| | | | Posted by riemer on 18/09/2008 at 12:21:09
| | From the looks of it, I would say that your vertex data is scrambled.
Did you create your own vertex format? Then make sure that the SizeInBytes is correct, and that this value is passed to the device before you render your triangles. | |
|
|
| |
| |
| Poster | : Anonymous | | Posts | : | | Country | : | | City | : |
| | | | Posted by Anonymous on 04/10/2008 at 15:39:30
| | I had the same problem, and it's because you (and I) forgot to do this:
However, we’ll have to replace all instances of VertexPositionNormalColored in our code to VertexPositionNormalTexture.
It's in bold at the start of the tutorial. A quick find/replace should fix that problem. | |
|
|
| |
| |
| Poster | : Anonymous | | Posts | : | | Country | : | | City | : |
| | | | Posted by Anonymous on 20/06/2012 at 13:03:04
| | | I definitely wtaend to send a word so as to say thanks to you for all of the marvelous facts you are showing at this website. My time intensive internet lookup has now been paid with reliable suggestions to exchange with my colleagues. I d believe that we site visitors actually are really endowed to exist in a really good place with so many perfect people with insightful tips. I feel rather happy to have encountered the webpages and look forward to really more excellent times reading here. Thanks a lot once more for a lot of things. | |
|
|