i have 2 question
1.iam confuse how to correctly match the size of image (ex: *.tga 256x256) to the 3D space when we using CustomVertex.PositionTextured, how can we render the actual size of image in the 3D space
2. ex:
void OnCreateBuffer(object sender, EventArgs e)
{
VertexBuffer buffer = (VertexBuffer)sender;
positionTex = new CustomVertex.PositionTextured[4];
positionTex[0].Position = new Vector3(-1.0f, 1.0f, 0);
positionTex[0].Tu = 0; positionTex[0].Tv = 0;
positionTex[1].Position = new Vector3(1.0f, 1.0f, 0);
positionTex[1].Tu = 1.0f; positionTex[1].Tv = 0;
positionTex[2].Position = new Vector3(-1.0f, -1.0f, 0);
positionTex[2].Tu = 0.0f; positionTex[2].Tv = 1.0f;
positionTex[3].Position = new Vector3(1.0f, -1.0f, 0);
positionTex[3].Tu = 1.0f; positionTex[3].Tv = 1.0f;
buffer.SetData(positionTex, 0, LockFlags.None);
}
this buffer will create polygon wiht the width =2 n height =2;
so what the meaning is 2 in width n height, 2 pixel or 2 inch or..