Results 1 to 3 of 3

Thread: Billboarding

  1. #1

    Thread Starter
    Fanatic Member pradeepkrao's Avatar
    Join Date
    Sep 2001
    Location
    New Jersey
    Posts
    534

    Billboarding

    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
    Learn by others experience as you cannot live long to experience them all.
    www.freewebs.com/pradeepkrao

    LOOK AT MY GAMES AT MY WEB SITE.

  2. #2

    Thread Starter
    Fanatic Member pradeepkrao's Avatar
    Join Date
    Sep 2001
    Location
    New Jersey
    Posts
    534
    screen shot....
    Attached Images Attached Images  
    Learn by others experience as you cannot live long to experience them all.
    www.freewebs.com/pradeepkrao

    LOOK AT MY GAMES AT MY WEB SITE.

  3. #3

    Thread Starter
    Fanatic Member pradeepkrao's Avatar
    Join Date
    Sep 2001
    Location
    New Jersey
    Posts
    534

    SOLVED

    Had to position the Image...
    Learn by others experience as you cannot live long to experience them all.
    www.freewebs.com/pradeepkrao

    LOOK AT MY GAMES AT MY WEB SITE.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width