Page 1 of 1

Issue with wallsets that use transparent wall gfx

Posted: Tue Apr 09, 2013 12:17 pm
by Lord_BoNes
While converting the DM2 thicket wallset, I noticed that DSB has some strange behavour with the wall graphics. There are many times that the default wallset's floor (grey bricks) shows through the transparent sections of the wall (it's not using the thicket floor underneath the thicket walls).
I suggest adding a new variable for wallsets, a flag that basically says "contains transparent walls, always draw floor underneath for any tiles that use these walls"... it could just be a boolean value that you slap onto the end of dsb_make_wallset.

EDIT: It only seem to show the default floor when you stand back a bit... it seems to work the way it should when you're right up against the wall... stepping to the side, or moving back a square reveals the evil grey bricks.

Re: Issue with wallsets that use transparent wall gfx

Posted: Tue Apr 09, 2013 12:21 pm
by Gambit37
There's an alternate ceiling/floor rendering mode that I use for mixing short and tall wallsets on the same level. Turning that on might solve the transparency issue?

It's in Edit > Level Info > "Iterated Alt Ceiling Draw" - toggle it to on.

Re: Issue with wallsets that use transparent wall gfx

Posted: Tue Apr 09, 2013 1:18 pm
by Gambit37
Also, are you sure you're painting the floor/ceiling centre sub-tile as well as all the side sub-tiles? You are using the "paint wallset" mode, right?

Re: Issue with wallsets that use transparent wall gfx

Posted: Tue Apr 09, 2013 4:15 pm
by Lord_BoNes
I've only been painting the centre of the wall square. And I'll try the "Iterated Alt Ceiling Draw" mode...

Alt ceiling mode makes the problem stay on all the time (the default grey bricks always stay visible above and below the thicket walls)

Re: Issue with wallsets that use transparent wall gfx

Posted: Tue Apr 09, 2013 4:23 pm
by Lord_BoNes
And painting the other sides of the wall tile doesn't make any difference. The only thing that I've found that stops it is setting the whole level's wallset to the thicket one, but this just feels like a bandaid.

Re: Issue with wallsets that use transparent wall gfx

Posted: Tue Apr 09, 2013 4:32 pm
by Gambit37
Any chance of posting screenshots from different views, and the corresponding ESB map with wallpaint shown? I can't picture what you're describing.

Re: Issue with wallsets that use transparent wall gfx

Posted: Tue Apr 09, 2013 5:05 pm
by Lord_BoNes
In RTC, it would be setting the DM2 thicket wallset's floor and roof graphics to the default DM1 grey brick floor/roof...
But, every floor tile has the normal thicket grass, and the thicket sky... and every wall tile has the dodgy looking grey brick floor/roof.

When "Iterated Alt Ceiling Draw" is off, the grey bricks seem to appear and disappear, but the grey bricks hang around when it's turned on.

Re: Issue with wallsets that use transparent wall gfx

Posted: Tue Apr 09, 2013 6:00 pm
by Gambit37
I still need a screenshot, picture paints a 1000 words and all that... ;-)

Re: Issue with wallsets that use transparent wall gfx

Posted: Tue Apr 09, 2013 6:17 pm
by Lord_BoNes
Image
You see the grey brick floor/roof? The wall is using the same wallset as the floor around it.

Re: Issue with wallsets that use transparent wall gfx

Posted: Tue Apr 09, 2013 6:38 pm
by Gambit37
Cheers; ok, that's clearly not right. ;-)

You're sure you painted the necessary alt floor tiles too?

When you paint alt wallsets on a wall (rather than a floor), a small grey "hole" is shown in the middle of the tile. If you point to that hole in with your mouse while in wallpaint mode, the status bar should show it to be the name of your alt wallset. It may have got changed to "default" if you've been painting/re-painting areas. When this happens, I find it's quickest to switch back to default, drag-paint out all the errors (removing the pink), and then paint the alt wallsets again. Zooming in may help.

Re: Issue with wallsets that use transparent wall gfx

Posted: Tue Apr 09, 2013 9:05 pm
by Lord_BoNes
I always use double zoom, and yes, all the tiles are painted with centred wallset objects.
As I said before, the only way I've found to stop it is by setting the whole level's wallset to thicket... but then I'd run into the same problem if I wanted to use the misty thicket too, or even the standard DM2 walls... they have transparent sections, not big, but they're there. And I'd be able to see the thicket sky through those tiny transparent areas.

Re: Issue with wallsets that use transparent wall gfx

Posted: Tue Apr 09, 2013 9:08 pm
by Sophia
I agree with Gambit. It seems like what is happening is that you've painted the walls, but you haven't actually painted the entire tile. That is, you have to paint the center, not just paint four walls.

I also think the interface for painting/re-painting walls like that is clumsy and things like this crop up because of it. I'm open to suggestions.

Re: Issue with wallsets that use transparent wall gfx

Posted: Tue Apr 09, 2013 9:10 pm
by Lord_BoNes
I'm not painting the outer walls of the tile, I am painting the center. It seems to be an issue with handling transparent wall graphics.

Re: Issue with wallsets that use transparent wall gfx

Posted: Tue Apr 09, 2013 9:13 pm
by Lord_BoNes
Image
This is the view from the editor. I could upload the dungeon, but it'd have to wait until I wake up (it's currently 5:15am here... yawn)

EDIT: If you think that it is clumsy, my only suggestion is to not allow wallset objects to be placed anywhere but the centre of the tile.

Re: Issue with wallsets that use transparent wall gfx

Posted: Tue Apr 09, 2013 9:14 pm
by Sophia
That's very... purple. :mrgreen:

No, it's ok, I think I get it now. :)

Re: Issue with wallsets that use transparent wall gfx

Posted: Tue Apr 09, 2013 9:19 pm
by Lord_BoNes
I'm guessing that the cause is that you've written it not expecting transparent walls, so where they're transparent it doesn't actually bother drawing the floor/roof underneath the wall graphic (it just ends up using the level's default floor/roof image because nothing else gets drawn for the tile... I'm guessing that part of the initial dungeon rendering is drawing the floor/roof, then you slap the walls & objects over it)

Re: Issue with wallsets that use transparent wall gfx

Posted: Tue Apr 09, 2013 10:14 pm
by Gambit37
^^ Makes sense. I guess DSB simply isn't drawing that alt floor.
If you think that it is clumsy, my only suggestion is to not allow wallset objects to be placed anywhere but the centre of the tile.
No! Sometimes you need to paint corners and intersections and not he whole tile...

Re: Issue with wallsets that use transparent wall gfx

Posted: Wed Apr 10, 2013 7:32 am
by Lord_BoNes
Gambit37 wrote:No! Sometimes you need to paint corners and intersections and not he whole tile...
Makes sense. There would be situations that require "wall based" painting. But, then my suggestion to Sophia would be to make the "lock wallsets to centre" option part of the editor options like "Don't save instances in Limbo" and "Lock flooritems to the centre of a tile"... you could just add another entry to that list called "Lock wallsets to the centre of a tile".