1
vote
0answers
31 views

XNA HLSL UV Mapping

I was testing my hlsl lighting shader, I've copied it from a tutorial and it works perfectly, but all the meshes in the model needs to have texture coordinate, I guess this is because this part: ...
0
votes
0answers
30 views

How do I optimally give current UVs to the shader for animating a spritesheet?

I've implemented sprite animation by passing UVs into the shader with the good-ol' shader.SetParameters[] call. In the vertex shader, I lerp the new UVs with the Texture Coordinates of the original ...
1
vote
0answers
210 views

Getting UV maps from UDK?

I have created a map using UDK and I am exporting it as a .fbx for use within an XNA project. My question is, can I generate a UV map for texturing the map or is there an easier way to texture a map ...
2
votes
1answer
2k views

Multi texturing in XNA

I am attempting to make a map editor for my game, just so I can visualize how the end result would be. To my world I can add cubes (2 triangles) or corners (1 triangle), which are then added to a ...
2
votes
1answer
642 views

XNA UV Mapping flipping the Texture every second time

I am making a tile based game. Recently I moved to drawing tiles as primitives to speed up things and also allow for easier lighting (Vertex Shader). I then took it a step further and made some ...