[Done for V0.39] Specifying a single bitmap for floor items
Moderator: George Gilbert
Forum rules
Please read the Forum rules and policies before posting. You may
to help finance the hosting costs of this forum.
Please read the Forum rules and policies before posting. You may

- Gambit37
- Should eat more pies
- Posts: 13773
- Joined: Wed May 31, 2000 1:57 pm
- Location: Location, Location
- Contact:
[Done for V0.39] Specifying a single bitmap for floor items
Just a quick one, would it possible to have pillars that only require ONE graphic image that can be scaled by the game engine? For things like trees, etc, this would be a lot better than having to create 6 images, and would help keep file sizes down.
- Gambit37
- Should eat more pies
- Posts: 13773
- Joined: Wed May 31, 2000 1:57 pm
- Location: Location, Location
- Contact:
Just raising this back to the top again. This would be very, very useful to cut down on file sizes, and effort required to create static objects.... Perhaps with the ability to automatically scale and shade if no extra scalings specified, or to use the other images if they ARE specified.
Also, after having played with the editor a bit, would it be possible to automatically use the main graphic as the icon graphic when using added bitmaps?
For example, I have created an animated fountain by cloning the pillar, but I didn't create an icon for it. It shows up in the editor as a pillar. It would be very useful for the editor to automatically use the items first frame as it's icon rather than default to the internal one.
Also, after having played with the editor a bit, would it be possible to automatically use the main graphic as the icon graphic when using added bitmaps?
For example, I have created an animated fountain by cloning the pillar, but I didn't create an icon for it. It shows up in the editor as a pillar. It would be very useful for the editor to automatically use the items first frame as it's icon rather than default to the internal one.
- Gambit37
- Should eat more pies
- Posts: 13773
- Joined: Wed May 31, 2000 1:57 pm
- Location: Location, Location
- Contact:
Additionally, would it be possible to add two other behaviours to pillars?
1) HEIGHT attribute (FULL or HALF). Setting to HALF would allow flying creatures to occupy the same tile, and also for the party to throw items over the object. In this way, using custom graphics, it would then be possible to create most kinds of decorations
2) BREAKABLE attribute. Speaks for itself really. For this to work, you'd need a CONVERT_TO parameter so that the broken object is non-blocking and can have a different graphic.
These additions would open up massive scope to RTC, and would allow a lot of DM2 funcitonality to be emulated....
1) HEIGHT attribute (FULL or HALF). Setting to HALF would allow flying creatures to occupy the same tile, and also for the party to throw items over the object. In this way, using custom graphics, it would then be possible to create most kinds of decorations
2) BREAKABLE attribute. Speaks for itself really. For this to work, you'd need a CONVERT_TO parameter so that the broken object is non-blocking and can have a different graphic.
These additions would open up massive scope to RTC, and would allow a lot of DM2 funcitonality to be emulated....

- George Gilbert
- Dungeon Master
- Posts: 3022
- Joined: Mon Sep 25, 2000 11:04 am
- Location: London, England
- Contact:
- George Gilbert
- Dungeon Master
- Posts: 3022
- Joined: Mon Sep 25, 2000 11:04 am
- Location: London, England
- Contact:
- Gambit37
- Should eat more pies
- Posts: 13773
- Joined: Wed May 31, 2000 1:57 pm
- Location: Location, Location
- Contact:
My main issue in this thread is being able to get clones of pillars that only require ONE graphic and are scaled by the engine, like the fountain I gave as an example at the top of this thread.
Also, as I noted further down, i think this is actually essentail if you ever implement different coloured fogging:
Also, as I noted further down, i think this is actually essentail if you ever implement different coloured fogging:
Is this possible?This feature (one image for pillars and scalable) would actually be essential if you are going to add the coloured fogging parameter (for things like Linflas' desert fog).
- Gambit37
- Should eat more pies
- Posts: 13773
- Joined: Wed May 31, 2000 1:57 pm
- Location: Location, Location
- Contact:
Fogging has been implemented since v0.31. I never noticed. See this thread:
http://www.dungeon-master.com/forum/vie ... hp?p=59010
http://www.dungeon-master.com/forum/vie ... hp?p=59010
- George Gilbert
- Dungeon Master
- Posts: 3022
- Joined: Mon Sep 25, 2000 11:04 am
- Location: London, England
- Contact:
- George Gilbert
- Dungeon Master
- Posts: 3022
- Joined: Mon Sep 25, 2000 11:04 am
- Location: London, England
- Contact:
The auto-scaling only kicks in if *ONLY* the front1 bitmap is specified. If any others are then it uses the bitmaps exactly as specified.
Note that loads of other things apart from the pits / stairs (e.g. pads, grates, doorframes, pillars etc) require individual specification of each bitmap because of the perspective problem.
You should only use this feature if your flooritem looks the same from any direction (in particular, diagonally).
Note that loads of other things apart from the pits / stairs (e.g. pads, grates, doorframes, pillars etc) require individual specification of each bitmap because of the perspective problem.
You should only use this feature if your flooritem looks the same from any direction (in particular, diagonally).
- Sophia
- Concise and Honest
- Posts: 4307
- Joined: Thu Sep 12, 2002 9:50 pm
- Location: Nowhere in particular
- Contact:
I'm wondering if this wouldn't be too hard to get for asymmetric flooritems, too?George Gilbert wrote:The auto-scaling only kicks in if *ONLY* the front1 bitmap is specified. If any others are then it uses the bitmaps exactly as specified.
What I mean is, to be able to specify one north, one south, one east, and one west bitmap, but let the engine handle the scaling, positioning, and shading of the bitmap from each of these directions.
- George Gilbert
- Dungeon Master
- Posts: 3022
- Joined: Mon Sep 25, 2000 11:04 am
- Location: London, England
- Contact:
It'd be horrifically complex!I'm wondering if this wouldn't be too hard to get for asymmetric flooritems, too?
If something looks differently from the north to how it looks from the east, then how it looks from the northeast (i.e. one of the side bitmaps needed) would be some mixture of the two bitmaps. To work out how much of each of the two bitmaps, you need to know the geometry of the object the bitmap is representing - specifically you'd need to take the 2D bitmap and turn it into a 3D model, then splice the bitmaps together and generate a 2D bitmap again - RTC might be quite nifty, but it isn't that good!
To see this, consider the example of a square pillar and a thin fence.
- In the square pillar case, the north east bitmap will be 50% of the north bitmap combined with 50% of the south bitmap (then scaled because of the root 2 extra distance).
- In the case of a thin fence (the north bitmap being wide, and the east bitmap being thin), the north east bitmap would be about 90% of the north bitmap and 10% of the east bitmap.
i.e. the proportion of the bitmaps depends on the geometry of the object (which is unknown to RTC).
- Sophia
- Concise and Honest
- Posts: 4307
- Joined: Thu Sep 12, 2002 9:50 pm
- Location: Nowhere in particular
- Contact:
Eh, it doesn't have to be. All of that stuff you talked about is perfectly valid, for a proper 3d implementation, but I guess what I had in mind is far simpler, and is already used for monsters, in fact.George Gilbert wrote:It'd be horrifically complex!
The side views are simply the head-on view shifted a few pixels one way or the other. It's not strictly accurate, but for most objects, it looks good enough.

- George Gilbert
- Dungeon Master
- Posts: 3022
- Joined: Mon Sep 25, 2000 11:04 am
- Location: London, England
- Contact:
OK - now done this for V0.39.Sophia wrote:What I mean is, to be able to specify one north, one south, one east, and one west bitmap, but let the engine handle the scaling, positioning, and shading of the bitmap from each of these directions.
(But, as above, you should be careful doing this because the diagonal images won't be exactly right).