Allow second transparency colour in dungeon items

Suggestions for new features for inclusion in RTC. Note that all the suggestions that have already been implemented have been moved to the RTC Archive forum.

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
Gambit37
Should eat more pies
Posts: 13203
Joined: 31-May-00 11:57
Location: Location, Location
Contact:

Allow second transparency colour in dungeon items

Post by Gambit37 » 10-Sep-09 18:55

The Magic Window spell uses a second transparency colour (255,0,0) which tells the engine to not draw any pixels of the wall behind it.

If this property was copied over to other wallitems, we could create cool effects like windows, which are currently impossible to do just with powerpink.

User avatar
Trego
Artisan
Posts: 174
Joined: 26-May-09 12:03
Location: Brunei

Re: Allow second transparency colour in dungeon items

Post by Trego » 11-Sep-09 07:57

That would be easier.
I was thinking of using a wall item with an 'alpha channel' (no image, not white) where the window/glass is and use a mechanic to cast magic window on the wall. Thus having the wallitem over the magic window the wall item isn't effected and you can see through the window, my wall item may need a large wall image attached to though or it could look as if it is floating.
It's not a bug in the program, I've just gone and done something weird.

Duckman
Adept
Posts: 235
Joined: 17-Jun-06 09:39
Location: Finland

Re: Allow second transparency colour in dungeon items

Post by Duckman » 20-Sep-09 06:49

Good idea I think.

I support
I don't post anymore for reasons real-life.

User avatar
beowuuf
Archmastiff
Posts: 20660
Joined: 16-Sep-00 12:00
Location: Basingstoke, UK

Re: Allow second transparency colour in dungeon items

Post by beowuuf » 20-Sep-09 07:21

Why is it impossile? Oh, I see, as a simple wallitem. You can create a wndow by actually having a faked wall. Even easier now there is a half-height blocker available. You can copy and paste the window throughout your dungeon!

User avatar
Gambit37
Should eat more pies
Posts: 13203
Joined: 31-May-00 11:57
Location: Location, Location
Contact:

Re: Allow second transparency colour in dungeon items

Post by Gambit37 » 20-Sep-09 12:30

Using a pillar doesn't work very well though, if you want your window to be part of a standard wallset. If an object gets thrown at it, it sits "ontop" of the image, so it looks like it's in the wall...

Faked walls don't work either, because items behind it take on the light level of that room. This can make the window look completely black if there's no light on that side.

Trust me, I tried lots of ways and none of them really work :(

User avatar
beowuuf
Archmastiff
Posts: 20660
Joined: 16-Sep-00 12:00
Location: Basingstoke, UK

Re: Allow second transparency colour in dungeon items

Post by beowuuf » 20-Sep-09 16:35

I just remember doing a window way back, but I guess the light level wasn't an issue I thought about :(

Post Reply