[Done for V0.39] Specifying a single bitmap for floor items

Messages are moved here (should anyone ever want to see them again) once they are no longer applicable to the current version (e.g. suggestions that have been implemented or bugs that have been fixed).

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting. You may Image to help finance the hosting costs of this forum.
Post Reply
User avatar
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

Post by Gambit37 »

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.
User avatar
Gambit37
Should eat more pies
Posts: 13773
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post by Gambit37 »

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.
User avatar
Gambit37
Should eat more pies
Posts: 13773
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post by Gambit37 »

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.... ;-)
User avatar
Gambit37
Should eat more pies
Posts: 13773
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post by Gambit37 »

Bumping up for possible inclusion in 0.29.

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).
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

You can actually do the BREAKABLE thing already in V0.28 (and earlier). Simply clone a wooden door (and broken version) place it in the dungeon without a door frame or button...
User avatar
Gambit37
Should eat more pies
Posts: 13773
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post by Gambit37 »

Just bringing this back up for consideration. ;)
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

The HALF thing will get done at the same time as I do tables (dunno when that will be though - if it helps, it's on the shortlist!)
User avatar
Gambit37
Should eat more pies
Posts: 13773
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post by Gambit37 »

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:
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).
Is this possible?
User avatar
linflas
My other avatar is gay
Posts: 2445
Joined: Tue Nov 04, 2003 9:58 pm
Location: Lille, France
Contact:

Post by linflas »

bumping too : because you must add some fog depending on the distance on each bitmap : same for puddles, cracks and similar flooritems... which is redundant imho.
User avatar
Gambit37
Should eat more pies
Posts: 13773
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post by Gambit37 »

Fogging has been implemented since v0.31. I never noticed. See this thread:

http://www.dungeon-master.com/forum/vie ... hp?p=59010
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

Done for V0.39 (the auto-scaling if you only specify a single front1 bitmap that is, everything else can already be done).
User avatar
linflas
My other avatar is gay
Posts: 2445
Joined: Tue Nov 04, 2003 9:58 pm
Location: Lille, France
Contact:

Post by linflas »

wonderful ! would this affect all flooritems except pits and stairs ? you know these ones are special..
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

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).
User avatar
linflas
My other avatar is gay
Posts: 2445
Joined: Tue Nov 04, 2003 9:58 pm
Location: Lille, France
Contact:

Post by linflas »

very very VERY useful for trees, bushes, rocks, grass, flowers.. !
User avatar
Gambit37
Should eat more pies
Posts: 13773
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post by Gambit37 »

*Yay* *claps hands*
User avatar
copperman
Um Master
Posts: 476
Joined: Thu Aug 29, 2002 12:49 pm
Location: UK

Post by copperman »

yeay, more content from DM2 can be used without needing to be whack'ed or whatever :D
Don't be scene or herd!
User avatar
Sophia
Concise and Honest
Posts: 4307
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Post by Sophia »

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.
I'm wondering if this wouldn't be too hard to get for asymmetric flooritems, too?

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.
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

I'm wondering if this wouldn't be too hard to get for asymmetric flooritems, too?
It'd be horrifically complex!

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).
User avatar
Sophia
Concise and Honest
Posts: 4307
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Post by Sophia »

George Gilbert wrote:It'd be horrifically complex!
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.

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. :)
User avatar
linflas
My other avatar is gay
Posts: 2445
Joined: Tue Nov 04, 2003 9:58 pm
Location: Lille, France
Contact:

Post by linflas »

GG wrote:- 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!
come on George, why don't you make RTC in full 3D ?!! ;)
User avatar
Lunever
Grand Druid
Posts: 2712
Joined: Thu Feb 14, 2002 4:47 pm

Post by Lunever »

I think it'd be actually enough if such an autoscaling would be able to handle strict 2D opjects, like a 2D-tapestry or a 2D-carpet.
Parting is all we know from Heaven, and all we need of hell.
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

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.
OK - now done this for V0.39.

(But, as above, you should be careful doing this because the diagonal images won't be exactly right).
Post Reply