Results 1 to 3 of 3

Thread: One image many colours (DDraw 7 & vb6)

  1. #1

    Thread Starter
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176

    One image many colours (DDraw 7 & vb6)

    Hello,

    I have been practising my direct draw 7 in VB6, I have created a game that will use the same bitmaps for up to 8 players of different colours. Other than creating bitmaps for each stick man colour is there a way of using the one bitmap but convert its colour based on which player I am blt'ing?

    I have tried Palettes but they run too slow, I might have to write a function that creates the images in memory on the fly
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  2. #2
    Hyperactive Member singularis's Avatar
    Join Date
    Nov 2006
    Location
    Over There!
    Posts
    372

    Re: One image many colours (DDraw 7 & vb6)

    Are you limited to DirectDraw or DirectX7 ?

    You could make the vertices (that you are going to cover with the texture) the color you wish in Direct3D7

    If you are doing this as a hobby, I recommend switching to DirectX8 ( I am starting to sound like Jacob Roman!)
    If what I said was helpful, give me rep!

    My Complete Games: -- 2D Zone (Space Shooter game) || _2D Zone 2_ || Ninja Blob (2D platformer) || Dren (Co-op up to 4 player base defence game)

    My Projects: -- The Dread Engine (2D VB game Engine) || A* Path Finding


    An excellent site for learning DirectX7, 8 & 9 (for VB6, C# & VB.net) would be: directx4vb.vbgamer.com --- For my projects and games see: pieper.freehostia.com

  3. #3

    Thread Starter
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176

    Re: One image many colours (DDraw 7 & vb6)

    managed to do it by locking the surface and setting the pixels

    Thanks though
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

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