Author Topic: How were the maps for Blake Stone and Wolf 3d made?  (Read 33862 times)

0 Members and 1 Guest are viewing this topic.

Offline bradhig

  • Newbie
  • *
  • Posts: 6
How were the maps for Blake Stone and Wolf 3d made?
« on: October 04, 2010, 07:58:59 pm »
What was used to make those 3d maps?

Offline DarkWolf

  • Hero Member
  • *****
  • Posts: 640
Re: How were the maps for Blake Stone and Wolf 3d made?
« Reply #1 on: October 05, 2010, 07:30:42 am »
I used PHP.  To make things easy I wrote a few scripts.  One transformed the wall textures into an isometric perspective, one transformed the floors (needed for Blake), and the final script assembled all the pieces together.  I also used a map editor for those games so I didn't have to deal with decompression (also made it easier to map walls and sprites to their number values).

Using the same idea in one my scripts I skewed the Doom textures and made some stuff.

Offline bradhig

  • Newbie
  • *
  • Posts: 6
Re: How were the maps for Blake Stone and Wolf 3d made?
« Reply #2 on: October 06, 2010, 04:58:17 pm »
UGH I was hoping to use it to map Corridor 7 and Operation Body Count which use the same engine as Wolf3d.

Also I was wondering about mapping the two addon missions for Spear of Destiny.

Offline DarkWolf

  • Hero Member
  • *****
  • Posts: 640
Re: How were the maps for Blake Stone and Wolf 3d made?
« Reply #3 on: October 07, 2010, 06:42:23 am »
Unfortunately I'm not going to make the script public.  Not because I want to withhold anything, but because the script is sloppy and it's not like you can just put it in a certain directory, execute it and it produces a finished product.  There are some things that have to be done manually.

I have thought about doing Body Count, but it has a lot of special engine enhancements (even more than Blake vs Wolf) and I'd have to alter the script quite a bit.  I've never really cared for Corridor 7, so I'm probably not going to do that.

Offline osrevad

  • Newbie
  • *
  • Posts: 28
Re: How were the maps for Blake Stone and Wolf 3d made?
« Reply #4 on: October 07, 2010, 09:19:26 pm »
Your Wolfenstein maps bring back a lot of memories. Not so much from playing the game. I don't know if anyone else remembers this, but when I had the shareware DOS version of doom, it came with an exe called mapedit. It allowed you to view the maps from the game from a simple top-down view, and even change it if you want. My older brother and I would create maps and challenge each other with them. Good times.

I played Blake Stone too (PC-13 for Profound Carnage), although I never got very far. I seem to remember enjoying it a lot more than Wolfenstein. Maybe it was easier, or the texture design was more varied.

Offline Will

  • Hero Member
  • *****
  • Posts: 602
Re: How were the maps for Blake Stone and Wolf 3d made?
« Reply #5 on: October 07, 2010, 11:34:44 pm »
Wolfenstein 3D was lucky enough to upgrade and advance into "Return to Castle Wolfenstein". Heh! I'm surprised Blake Stone didn't get an equivalent action 3D packed sequel.

Offline TerraEsperZ

  • Hero Member
  • *****
  • Posts: 2326
Re: How were the maps for Blake Stone and Wolf 3d made?
« Reply #6 on: July 06, 2011, 09:44:06 pm »
I know this is an old topic, but I had a question for you DarkWolf. I'm interested in the actual algorithms involved in turning square tiles into isometric walls and floors. Would you accept to share just that, or else give us a link to a site that shows how to do that? Actual code wouldn't be that useful since I would have no idea how to run it anyhow.
Current project:
Mega Man: Powered Up (PSP)

Offline Maxim

  • Hero Member
  • *****
  • Posts: 974
Re: How were the maps for Blake Stone and Wolf 3d made?
« Reply #7 on: July 08, 2011, 11:47:48 pm »
It's easy for walls - it's a skew up/down 1px every 2px across. I don't know a good way to achieve that in image editors, though. Floors are trickier, I think you'd need a blurry algorithm to avoid losing pixels.

Offline TerraEsperZ

  • Hero Member
  • *****
  • Posts: 2326
Re: How were the maps for Blake Stone and Wolf 3d made?
« Reply #8 on: July 09, 2011, 12:14:24 am »
I pretty much figured how to do the walls but I'll be honest and admit I didn't check your map to see if you were using 2:1 skewing or using scripts to achieve a projection where all three axes are 120 degrees apart. It was really the floors I was wondering about. I remember reading a pixel art tutorial on a site that's no longer online that showed how you could replicate the effect in Paint somewhat by skewing, enlarging and then skewing again but I simply can't remember the exact instructions. Thanks anyway.
Current project:
Mega Man: Powered Up (PSP)

Offline DarkWolf

  • Hero Member
  • *****
  • Posts: 640
Re: How were the maps for Blake Stone and Wolf 3d made?
« Reply #9 on: July 13, 2011, 07:25:36 am »
Walls are exactly like Maxim said, you just shift every two columns of pixels up or down (depending on the angle) incrementing by 1.  For the floors I'm actually just going to release the code I used since it's small.  The script is fixed to work with 64x64 images so you'll have to figure out some additional math to process variable sized images.  The method probably isn't 100% accurate, more complex graphics might look crappy, but it did the job for the project at hand.

http://garoux.net/forum/floor_con.phps

Offline TerraEsperZ

  • Hero Member
  • *****
  • Posts: 2326
Re: How were the maps for Blake Stone and Wolf 3d made?
« Reply #10 on: July 13, 2011, 10:14:02 pm »
Thanks a lot for sharing this! I'll admit that I'm a bit rusty in terms of programming, since I haven't written a single line of code in over a decade, but this might be just what I need to get back on the game. I'm sure I could do a lot of neat graphical stuff with PHP, provided I learn how to actually run a script. Between this and learning the basics in Cinema4D, I'm finally challenging myself after years of of relative comfort :)
Current project:
Mega Man: Powered Up (PSP)

Offline Maxim

  • Hero Member
  • *****
  • Posts: 974
Re: How were the maps for Blake Stone and Wolf 3d made?
« Reply #11 on: July 29, 2011, 09:29:09 am »
I think it goes something like this. Let's say you have a texture like this:
Code: [Select]
ABCD
EFGH
IJKL
MNOP

If you put it on a wall it would come out like these:
Code: [Select]
  CD      AB
ABGH      EFCD
EFKL  or  IJGH
IJOP      MNKL
MN          OP

If you stuck them together and drew a floor in, it'd look like this:
Code: [Select]
  CDAB
ABGHEFCD
EFKLIJGH
IJOPMNKL
MN____OP
________
  ____
...so if we align things with the top-left of the texture at the left of the __ area:
Code: [Select]
  CDAB
ABGHEFCD
EFKLIJGH
IJOPMNKL
MNcdghOP
abefklop
  ijmn
(floor in lowercase to hopefully aid clarity). If the floor texture is quite "texturey" it might look OK, but this texture (a diagonal line):
Code: [Select]
XOOO
OXOO
OOXO
OOOX
would come out like this (OK on the left wall, bad on the right, terrible on the floor):
Code: [Select]
  OO  XO
XOOO  OXOO
OXXO  OOOO
OOOX  OOXO
OO OOOO OX
 XOOXXOOX
   OOOO

Hopefully this ASCII art isn't too awful. The only way to really avoid this ugliness is to use some filtered rendering which would mean a lot of blurring.

Offline TerraEsperZ

  • Hero Member
  • *****
  • Posts: 2326
Re: How were the maps for Blake Stone and Wolf 3d made?
« Reply #12 on: August 07, 2011, 08:57:04 pm »
Sorry for replying to this so late. Thanks for the explanation, and I can see how, depending on the tile being transformed this way, how ugly it might end up looking. I remember another method being shown that involved different transformation but I recall it involving filtering as well since there was some horizontal or vertical resizing going on.
Current project:
Mega Man: Powered Up (PSP)