|
-
Mar 11th, 2003, 06:06 PM
#1
Thread Starter
Frenzied Member
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?
-
Mar 11th, 2003, 06:09 PM
#2
Good Ol' Platypus
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)
-
Mar 11th, 2003, 06:14 PM
#3
Thread Starter
Frenzied Member
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)
-
Mar 12th, 2003, 08:46 AM
#4
Addicted Member
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.
-
Mar 12th, 2003, 11:17 AM
#5
Thread Starter
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|