Hi,
I need an explosion example as in the tutorial found in
directx4vb.com..
I have created a vertexbuffer to hold the frame
Then I have loaded all the frame texture to as array.
Then while rendering i am showing one texture after another.. This is working fine..
But i am not able to scale the image..
The sprite appears 4 times..
VB Code:
Call SetCordinates(G3DFile1) Call generateNormals Set VBuffer = D3DDevice.CreateVertexBuffer(Len(POINTS(0)) * NoOfPoints, 0, Unlit_FVF, D3DPOOL_DEFAULT) If VBuffer Is Nothing Then Exit Sub D3DVertexBuffer8SetData VBuffer, 0, Len(POINTS(0)) * NoOfPoints, 0, POINTS(0) For I = 0 To 11 Set MeshTextures(I) = D3DX.CreateTextureFromFileEx(D3DDevice, App.Path & _ "\a" & Format$(I, "00") & ".bmp", 256, 256, D3DX_DEFAULT, 0, D3DFMT_UNKNOWN, D3DPOOL_MANAGED, D3DX_FILTER_LINEAR, D3DX_FILTER_LINEAR, 0, ByVal 0, ByVal 0) Next
Please see the screen shot..
Help me out..
Pradeep


Reply With Quote