View Single Post
Old 12-31-11, 12:42 AM   #377
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

In order to verify that the texture coordinates are being written/read correctly I coded in something to view them. These are the first set of texture coordinates for the NVV hull 03. Something doesn't look right as they seem displaced a little to the right and down (things just don't line up right like the door below)



I took the texture coordinates and subtracted 0.5f from X and added 0.5f to Y to get to screen coordinates (rendered as transformed primitives - thus already specified in screen space). I rendered them to a surface where the surface is the diffuse texture for NVV hull 03. I then saved this texture to a graphics stream and used that stream as input into creating an new image. The new window's background image was set to this image. I had the TextureLoader class save the texture (and thus the rendered surfaced) to file so I could display it here. Anyone have any ideas why it seems displaced?
TheDarkWraith is offline   Reply With Quote