WHACK: A minimalist wallset creation program
Moderator: George Gilbert
Forum rules
Please read the Forum rules and policies before posting.
Please read the Forum rules and policies before posting.
- Parallax
- DMwiki contributor
- Posts: 424
- Joined: Mon Aug 28, 2006 7:56 pm
- Location: Back in New Jersey
I never said it was hard, I said I was lazy.
Anyways, WHACK has helped me TREMENDOUSLY! Is there a similar program for floor items and wall items? I guess 3D objects cannot be reliably distorted by a WHACK-like program, but flat ones (horizontal or vertical) should accomodate automation fairly readily. Just wondering.
Anyways, WHACK has helped me TREMENDOUSLY! Is there a similar program for floor items and wall items? I guess 3D objects cannot be reliably distorted by a WHACK-like program, but flat ones (horizontal or vertical) should accomodate automation fairly readily. Just wondering.
- Parallax
- DMwiki contributor
- Posts: 424
- Joined: Mon Aug 28, 2006 7:56 pm
- Location: Back in New Jersey
I have noticed that the side0 and side0_alt bitmaps cram the entire wallset bitmap in the picture, which they shouldn't. One should only be able to see the corner of the wall on side0, so I'd say 1/3 to 1/2 of the wallset. Using a narrow wallset for the side view in the config file kind of fixes that (side0_alt is based on the wallset flipped horizontally, which, if you have a pattern on the wall, places the middle of the pattern on the away edge of side0_alt.) But then, one has to run whack 3 times: 0nce to get side0 right, once to get side0_alt right, and a third time with the full wallset picture to get all the other side views right.
Also, it appears to me that, with minor modifications, WHACK could easily generate bitmaps for flat flooritems. The main problem with flooritems is the tiling that does not have the same periodicity as the game grid. It may be possible to tile a square picture manually on a 512x256 floor base, if the correspondance was known, and cut the resulting image in tidbits, but it sounds like a pain, and wouldn't include directional views and so on.
Any plans for WHACK08?
Also, it appears to me that, with minor modifications, WHACK could easily generate bitmaps for flat flooritems. The main problem with flooritems is the tiling that does not have the same periodicity as the game grid. It may be possible to tile a square picture manually on a 512x256 floor base, if the correspondance was known, and cut the resulting image in tidbits, but it sounds like a pain, and wouldn't include directional views and so on.
Any plans for WHACK08?
- Sophia
- Concise and Honest
- Posts: 4240
- Joined: Thu Sep 12, 2002 9:50 pm
- Location: Nowhere in particular
- Contact:
Well, they do display roughly 75% of the side bitmap, but that's how DM does it, too. Have a look at the individual bitmaps-- you'll see that the amount displayed is (as close as I can get to) equal to the amount that WHACK gives you. Remember, also, that due to a perspective anomaly in DM that WHACK can (but doesn't have to) emulate, the side bitmaps are only half as wide as the front ones, anyway.Parallax wrote:I have noticed that the side0 and side0_alt bitmaps cram the entire wallset bitmap in the picture, which they shouldn't.
It's a little harder than that, because WHACK is a sloppily coded hack-job (see, I say this kind of stuff about my own code, too!), so it makes some assumptions that wouldn't be true for flooritems, like that it doesn't matter where the bitmap tiles and that the resulting bitmaps are all going to be the same size. WHACK also requires that the flooritem base bitmap have powers of two as its dimensions, which may or may not work nicely with flooritems of all kinds of strange sizes.Parallax wrote:Also, it appears to me that, with minor modifications, WHACK could easily generate bitmaps for flat flooritems.
Possibly, if something that needs to be added that wouldn't be a major pain to add comes up.Parallax wrote:Any plans for WHACK08?
- Parallax
- DMwiki contributor
- Posts: 424
- Joined: Mon Aug 28, 2006 7:56 pm
- Location: Back in New Jersey
Actually, I have tried it again using a black bitmap with a one pixel colored border, and the border appears at the close edge of the side0 and side0_alt bitmaps, so I can affirm with confidence that these use the entire bitmap, minus the corners that perspective cuts off. I tried with both narrow and wide side wallsets.Sophia wrote:Well, they do display roughly 75% of the side bitmap, but that's how DM does it, too.
Although that is fine when the side bitmap used is narrow, the effect is very bad when the side bitmap is wide, since roughly only half of it should be visible on each side view. I was indeed wrong earlier in affirming that only 1/3 to 1/2 of the front view should be visible. Calculations done, it is actually slightly more than 1/2 of the front view, although considering that wallitems do not show on the side0 views, less is more, really.
So, to summarize, I maintain that too much of a wide side wallset is shown on side0 and side0_alt. Narrow side wallsets are actually OK.
For flooritems, it's OK, I'll see if I can find the correspondance to tile the 512x256 bitmap so it comes out right. I'll post it here if I manage.
- Sophia
- Concise and Honest
- Posts: 4240
- Joined: Thu Sep 12, 2002 9:50 pm
- Location: Nowhere in particular
- Contact:
I'd believe this. The perspective in DM is weird: the front views are twice as wide as the side views. Counting bricks tells the story very quickly. So, trying to make proper side views using the DM perspective is probably going to look a bit ugly.Parallax wrote:Although that is fine when the side bitmap used is narrow, the effect is very bad when the side bitmap is wide
Did you know you already can specify a half-wide bitmap as a base for rendering the side views while still using a full-wide bitmap as a base for the front views? (using SideWall= in the .ini file)
If it'd help, it'd be fairly quick and easy to add an option to specify an alternate bitmap for side0 only.
- Parallax
- DMwiki contributor
- Posts: 424
- Joined: Mon Aug 28, 2006 7:56 pm
- Location: Back in New Jersey
Well, more options are always nice.
How quick and easy would it be to add an option to use only the right-hand-side half of the wallset_side bitmap for side0, and only the left-hand side half flipped horizontally of wallset_side for side0_alt?
You'll have your own line in the credits when my custom dungeon is done regardless, I promise.
Edit: And yes, I know about using different bitmaps for front and side views. It's actually how I work around the problem right now, doing manually what I describe in my request above.
How quick and easy would it be to add an option to use only the right-hand-side half of the wallset_side bitmap for side0, and only the left-hand side half flipped horizontally of wallset_side for side0_alt?
You'll have your own line in the credits when my custom dungeon is done regardless, I promise.
Edit: And yes, I know about using different bitmaps for front and side views. It's actually how I work around the problem right now, doing manually what I describe in my request above.
- Chaos-Shaman
- High Lord
- Posts: 2642
- Joined: Wed May 03, 2006 7:26 pm
- Location: The Gates of Hell
rtcwm
Thanks Linflas.linflas wrote:you can try RTCWM, for pits/stairs/doorframes and other stuff but it's very buggy !
i don't have a lot of time to correct the bugs at the moment because i'm very busy with my own custom dungeon !
Just made a couple wall sets. Cool little program.
keep your gor coin handy
Re: WHACK: A minimalist wallset creation program
Is WHACK 07 still available? Or could some kind soul send it me?!
- Sophia
- Concise and Honest
- Posts: 4240
- Joined: Thu Sep 12, 2002 9:50 pm
- Location: Nowhere in particular
- Contact:
Re: WHACK: A minimalist wallset creation program
http://www.dungeon-master.com/forum/vie ... 53&t=27294
I stopped updating it for RTC a while ago, but an RTC wallset and a DSB ext wallset are essentially identical, so you should no problems using the output in whatever program. (Except CSBwin, that's not happening)
I stopped updating it for RTC a while ago, but an RTC wallset and a DSB ext wallset are essentially identical, so you should no problems using the output in whatever program. (Except CSBwin, that's not happening)
Re: WHACK: A minimalist wallset creation program
Cheers me dears, I can have a good whack tonight now.
I remember using an early version to make graphics for CSBWin - just had to resize, and cut and paste carefully. Worked well, neat programme!
I remember using an early version to make graphics for CSBWin - just had to resize, and cut and paste carefully. Worked well, neat programme!
Re: WHACK: A minimalist wallset creation program
Bizarre, or I am being thick - keeps saying 'can't find wall', even though it is there, as a BMP, in the directory and correctly sized.
- Sophia
- Concise and Honest
- Posts: 4240
- Joined: Thu Sep 12, 2002 9:50 pm
- Location: Nowhere in particular
- Contact:
Re: WHACK: A minimalist wallset creation program
I'm not sure. By default, it looks for a "wallset.bmp" in the same directory as WHACK, but check your whack.ini to make sure it's looking for the right thing in the right place.PaulH wrote:Bizarre, or I am being thick
If it's actually there, the only other thing I can think of is that Allegro (the graphics library that I use for WHACK and DSB) reports a bitmap that it was unable to load the same as one that it can't find, so maybe you're using some sort of strange BMP format that it doesn't know what to do with. I've noticed it has trouble with OS/2 bitmaps, some 16 color bitmaps, and some other weirdness, so you could try re-saving it in MS Paint or something.
Re: WHACK: A minimalist wallset creation program
It was a strange bitmap lol. I had saved it has a 256 colour bmp, but somehow it got corrupted and then wouldn't load in Paint Shop. All sorted now, and working well! Many thanks!
Pity RTC has the flip bug, as the left walls don't alternate - need to tweak the results.
Pity RTC has the flip bug, as the left walls don't alternate - need to tweak the results.
Re: WHACK: A minimalist wallset creation program
As entered from Whack, the side walls do not alternate - front 2 does, and shouldn't.
Anyway, can get over it - currently wondering around the moon!
Anyway, can get over it - currently wondering around the moon!
- Gambit37
- Should eat more pies
- Posts: 13718
- Joined: Wed May 31, 2000 1:57 pm
- Location: Location, Location
- Contact:
Re: WHACK: A minimalist wallset creation program
Oh right. I use Linflas's tool, dunno if that works the same, though you have to manually flip the FRONT ALTs in your graphics package as RTC expects both the standard and ALT image to be on the same side: the engine then does the flipping.
- Sophia
- Concise and Honest
- Posts: 4240
- Joined: Thu Sep 12, 2002 9:50 pm
- Location: Nowhere in particular
- Contact:
Re: WHACK: A minimalist wallset creation program
I still don't understand what you mean. If by "alternate" you mean the image is flipped, then none of the front images are flipped by WHACK. The perspective view walls are flipped in the "alt" views. This is exactly what DSB needs and it used to work fine in RTC as well, though I haven't tested it in RTC in years, so I don't know.PaulH wrote:As entered from Whack, the side walls do not alternate - front 2 does, and shouldn't.
Can you show me what the program generates and what you expected to be generated?
- Gambit37
- Should eat more pies
- Posts: 13718
- Joined: Wed May 31, 2000 1:57 pm
- Location: Location, Location
- Contact:
Re: WHACK: A minimalist wallset creation program
Actually, yeah, the more I re-read paul's post, the more I'm confused. Sample please!
- linflas
- My other avatar is gay
- Posts: 2445
- Joined: Tue Nov 04, 2003 9:58 pm
- Location: Lille, France
- Contact:
Re: WHACK: A minimalist wallset creation program
the whole "distance 2" view is flipped by the engine, which means that left2 and right2 must be exchanged to fit properly with the flipped front2 bitmap.
i don't remember if RTCWM do that internally or not..
i don't remember if RTCWM do that internally or not..
"The only way out is another way in." Try Sukumvit's Labyrinth II
- Gambit37
- Should eat more pies
- Posts: 13718
- Joined: Wed May 31, 2000 1:57 pm
- Location: Location, Location
- Contact:
Re: WHACK: A minimalist wallset creation program
All I do is take the front bitmaps output by RTCWM and flip the RIGHT HAND images ONLY. RTC is happy then.
Re: WHACK: A minimalist wallset creation program
Alternate download link HERE
It contain missing alleg42.dll file and two bitmaps of floor and wall with RTC walls size ready to convert, with correct name (wallset.bmp not wall.bmp like point readme) Graphic XY position:
[1 scaling medium]
floor 0x132 (size 448x140)
roof 0x0 (size 448x58)
(walls)
front1 64x18
front2 120x40
front3 148x50
left1 0x18
left2 0x40
left3 0x50
side0 0x0
side1 64x18
side2 120x40
side3 148x50
far 0x50
Just find texture, copy/paste to bmp files and run exe, my favourite wallmaker
It contain missing alleg42.dll file and two bitmaps of floor and wall with RTC walls size ready to convert, with correct name (wallset.bmp not wall.bmp like point readme) Graphic XY position:
[1 scaling medium]
floor 0x132 (size 448x140)
roof 0x0 (size 448x58)
(walls)
front1 64x18
front2 120x40
front3 148x50
left1 0x18
left2 0x40
left3 0x50
side0 0x0
side1 64x18
side2 120x40
side3 148x50
far 0x50
Just find texture, copy/paste to bmp files and run exe, my favourite wallmaker