   how to render a tree's leaf in DX?
  I try to use rectangle to denote a leaf. why my following code doesn't work correctly: the surround of the leaf is green(as follows),how to make the rectangle looks like the leaf's texture? the generated leaf see the last line of the post. sorry,I dont know how to create one link of the url.  //(1)  create rectangle Device-&gt;CreateVertexBuffer(   6 * sizeof(Vertex),    D3DUSAGE_WRITEONLY,   Vertex::FVF,   D3DPOOL_MANAGED,   &Quad,   0);    Vertex* v;    Quad-&gt;Lock(0, 0, (void**)&v, 0);    // quad built from two triangles, note texture coordinates:    v[0] = Vertex(-1.0f, -1.0f, 1.25f, 0.0f, 0.0f, -1.0f, 0.0f, 1.0f);    v[1] = Vertex(-1.0f,  1.0f, 1.25f, 0.0f, 0.0f, -1.0f, 0.0f, 0.0f);    v[2] = Vertex( 1.0f,  1.0f, 1.25f, 0.0f, 0.0f, -1.0f, 1.0f, 0.0f);    v[3] = Vertex(-1.0f, -1.0f, 1.25f, 0.0f, 0.0f, -1.0f, 0.0f, 1.0f);    v[4] = Vertex( 1.0f,  1.0f, 1.25f, 0.0f, 0.0f, -1.0f, 1.0f, 0.0f);    v[5] = Vertex( 1.0f, -1.0f, 1.25f, 0.0f, 0.0f, -1.0f, 1.0f, 1.0f);    Quad-&gt;Unlock();//(2) set the material of the rectangle    BkGndMtrl = d3d::WHITE_MTRL;    BkGndMtrl.Diffuse.a=0;//(3) create the leaf's texture    D3DXCreateTextureFromFile(Device,"leaf.png",&Tex);    Device-&gt;SetSamplerState(0, D3DSAMP_MAGFILTER, D3DTEXF_POINT);    Device-&gt;SetSamplerState(0, D3DSAMP_MINFILTER, D3DTEXF_POINT);    Device-&gt;SetSamplerState(0, D3DSAMP_MIPFILTER, D3DTEXF_POINT); //(4) Set alpha blending states.use alpha in material's diffuse component for alpha    Device-&gt;SetTextureStageState(0, D3DTSS_ALPHAARG1, D3DTA_DIFFUSE);    Device-&gt;SetTextureStageState(0, D3DTSS_ALPHAOP, D3DTOP_SELECTARG1);    // set blending factors so that alpha component determines transparency    Device-&gt;SetRenderState(D3DRS_SRCBLEND, D3DBLEND_SRCALPHA);    Device-&gt;SetRenderState(D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA);//(5)render the rectangle with texture   Device-&gt;SetMaterial(&BkGndMtrl);    Device-&gt;SetTexture(0, Tex);    Device-&gt;SetRenderState(D3DRS_ALPHABLENDENABLE, true);//turn on alpha    Device-&gt;DrawPrimitive(D3DPT_TRIANGLELIST, 0, 2);//render rectangle    Device-&gt;SetRenderState(D3DRS_ALPHABLENDENABLE, false);//disable alphathe generated leaf: the leaf one in the pic is what i rendered and the left is the orignal texture. how to rend the rectanle just look like the texture.http://s19.photo.store.qq.com/http_imgload.cgi?/rurl4_b=1b718b3be555acf251d8a74b64ff766e790d9f6d7beb4b0410164e12e6eb95574ce13077280ad6486edff0a947bb01159ab41c5ae783b2cf62f7abb0cf771e7ffac49230cb3a30b0c44dbffcf698cff35d5f73e0   