Results 1 to 5 of 5

Thread: Resizing surfaces

  1. #1

    Thread Starter
    Frenzied Member Devion's Avatar
    Join Date
    Sep 2000
    Location
    The Netherlands
    Posts
    1,049

    Resizing surfaces

    I'm building an adventure engine for when I prolly gonna build a game later on, basically I have no clue how to resize directdraw surfaces..

    Since the character if he walks towards the back he'll shrink and if he comes back he'll grow...

    (Examples: Sam & Max, Monkey Island, etc)

    Anyone got an idea on this or an example?

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    You'd probably use Direct3D for this, even if your end result will be 2D. Look on http://www.directx4vb.com/, DirectX8 -> DirectGraphics -> 3D for 2D (pts. I and II) for more information. Using this, you can do rotation (well, it requires some maths knowledge, but is easy once you have this done), and you can resize surfaces very easily.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  3. #3

    Thread Starter
    Frenzied Member Devion's Avatar
    Join Date
    Sep 2000
    Location
    The Netherlands
    Posts
    1,049
    Actually i'm using Dx7... Dx8 was a bit too much for me to handle.. (as in, I suck at 3D vectors and thus the way Dx8 handles 2d)

  4. #4
    Addicted Member
    Join Date
    Aug 2002
    Location
    Baltimore, MD
    Posts
    230
    Either the BltFast or Blt method handles resizing. You just set the destination rect to whatever size you won't. You might want to reconsider doing something like this in 2D however. Getting the correct perspective won't be easy I believe.

  5. #5

    Thread Starter
    Frenzied Member Devion's Avatar
    Join Date
    Sep 2000
    Location
    The Netherlands
    Posts
    1,049
    hey monkey island 1 looked good, so how difficult can it be to do the engine in Dx ;-)

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