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:
  1. Call SetCordinates(G3DFile1)
  2. Call generateNormals
  3.  
  4. Set VBuffer = D3DDevice.CreateVertexBuffer(Len(POINTS(0)) * NoOfPoints, 0, Unlit_FVF, D3DPOOL_DEFAULT)
  5. If VBuffer Is Nothing Then Exit Sub
  6.  
  7. D3DVertexBuffer8SetData VBuffer, 0, Len(POINTS(0)) * NoOfPoints, 0, POINTS(0)
  8.  
  9. For I = 0 To 11
  10.  
  11. Set MeshTextures(I) = D3DX.CreateTextureFromFileEx(D3DDevice, App.Path & _
  12. "\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)
  13. Next


Please see the screen shot..

Help me out..
Pradeep