A demonstration of tilelayers and their strengths
7 Attachment(s)
Hi there!
I spent the majority of today putting together a tileset composed out of graphics that had either been released as free-for-use on the forums or been used on Maloria in the past. That was the easy part though, making most of the tileset transparent, giving all the shadows 50% transparency and generally fiddling around with it was annoying parts. In any case, once the tileset was ready, I set out to make an example level with it. I really wanted to get back into making levels again, I think it's been around 5 years since I last gave it a serious attempt. I also wanted to show the community why they should give layers and Gonstruct (unofficial level editor with layer support) way more attention, because right now barely anyone uses either of it. The result? Attachment 54790 I ended up using a total of 6 layers for it. Layer 0: Basic grass and background for the stream. Layer 1: Stone path, cliffs and the water covered chest. Layer 2: Trees, bushes, grass variations, graves, mushrooms, flowers and swamp. Layer 3: The fence, the cathedral and the bridge. Layer 4: The sign. I had to have it show above the cathedral. I could've put it on Layer 5, but I found it more organized to leave that for the leafy parts. Layer 5: Leafy stuff. Attachment 54785Attachment 54786Attachment 54787Attachment 54788Attachment 54789Attachment 54790 Credit goes too Dusty, for the huge amount of graphics he's released to the community. You're making Graal better as a whole just by being around! Sage, for making some great additions that fits very nicely with Dusty's stuff. Graal would be a better place if you would just be more committed to your work. And finally, Aeko, for the leafy stuff. Hopefully you won't mind me using it, haven't had the chance to ask you in private yet though. I attached the tileset I made. No, you may not use it on your server without the consent of me, Sage and Aeko. Yes, all three of us. You may however use it freely for personal use. Attachment 54784 I'd love to hear your thoughts on the level as a whole. Could I have done anything better? As closing words, I'd like to say this: Stefan, imagine how awesome this level would be to play on, if a tilelayer could be drawn above players/npcs. I'd be able to walk under the leafy edges, create fish npcs that swim below the water, and much more. Pretty please make it happen? :) |
Underwater chest looks neat. Are the leafy parts blocking?
|
Quote:
|
Looks so nice, can't wait to see (and make) some of the Maloria levels!
|
Quote:
I wish that Stefan would either just make tile layer 0 definitions used(that way we could hide layer 0 and make it a collision map) and add proper onwall/tiles functions for each layer. |
Quote:
|
You shouldn't use too many layers, it can get expensive from a rendering perspective. Graal allocates a buffer to render to for each layer, because when you don't move, tiles are not rendered as polygons, but as a pixel buffer. When you move, the pixel buffer is shifted and only the edges redrawn.
While this technique sounds like a good idea, there's a few drawbacks. It saves rendering time, but is expensive on VRAM. When VRAM budgets are exceeded, Graal is forced to perform deallocations. Deallocations are quick, but loading the images back into memory is slow and runs on the same thread in Graal, so it blocks. Since you're taking up parts of VRAM with the buffer each tile layer draws to, Graal, especially on mobile devices, is going to be forced to deallocate images frequently, which isn't so bad, but it means that it's going to have to reload them from file way more frequently now, which can take several seconds of freezing on an iDevice. Now the real kicker is that allocating 7 buffers for 7 layers on a touch device will cost 7 MB of VRAM. Now, when I says VRAM, it's a slot of 24 MB in RAM reserved for video. Exceeding that budget will force the VRAM sector to move memory around between the other sectors, causing significant performance hits. This applies super hard on lower end devices. And be thankful that Graal doesn't run at retina resolutions. If it did, it would cost 49 MB for 7 layers. |
Fyi, no one needs to ask me for permission, it's a couple of tiles I dont care at all about o-o...
|
Forget about my post.. I thought I was on Graalians. That really only applies to mobile devices, unless someone has a really, really bad PC.
|
Good work, I've been trying to push for greater layer support for some time and dropping Dusty's name as much as possible because he made an unfinished layer tileset a while ago.
|
I love it
|
Quote:
|
Quote:
Sometimes you can make the artifacts appear so that the black area is the entirety of the screen and you can watch as the tiles draw onto the buffer. This is complete conjecture, obviously, as I don't have access to the source of Graal, but those artifacts are telltale of that type of rendering technique being used. There isn't any other way to explain them. |
The final version ended up looking like this after an excellent shadow suggestion by Dusty:
http://i.imgur.com/7CFmZ.png |
I never noticed until now, but the layering with the water and cliff tiles as it is now makes the water look extremely shallow and that if the chest had a lid it would not be submerged. Was this intentional?
|
All times are GMT +2. The time now is 03:24 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.