Map backgrounds (was: Death world again)

Content and general development discussion, including maps, quests, and server code from the development team.
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 17:08
Location: Germany

Map backgrounds (was: Death world again)

Post by Crush » 25 Dec 2009, 16:30

I just added support for background images. The star graphic in the following image is just a quick&dirty proof of concept. But they are actually 4 layers of stars which scroll parallax when the screen scrolls. This already looks pretty impressive, in my opinion. It would look even better when using better star images.
Attachments
Mana_Screenshot_2.png
Mana_Screenshot_2.png (115.95 KiB) Viewed 2209 times
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 17:08
Location: Germany

Re: Death world again [WIP]

Post by Crush » 25 Dec 2009, 17:07

Here I used some astronomy pictures from http://apod.nasa.gov as layer graphics. Looks even more impressive when seen in motion. Framerate is stable:
Mana_Screenshot_3.png
Mana_Screenshot_3.png (637.6 KiB) Viewed 2233 times
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 17:08
Location: Germany

Re: Death world again [WIP]

Post by Crush » 25 Dec 2009, 17:53

Customdata to see it live (uses two similar but different pictures for the 2nd and 3rd layer due to copyright reasons)
Attachments
botcheck_stary.zip
(5.77 MiB) Downloaded 65 times
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
User avatar
Len
Knight
Knight
Posts: 1479
Joined: 05 Feb 2007, 07:17
Location: Lurking in the shadows

Re: Death world again [WIP]

Post by Len » 25 Dec 2009, 18:08

It needs to be darkened a bit with more of a bluish hue than red (this will make it push back rather than forward visually)http://forums.themanaworld.org/download ... hp?id=4873

Does it more slower than the foreground (multiplane)
Image
Pixel Battalion
User avatar
meway
Knight
Knight
Posts: 1736
Joined: 04 Jan 2009, 06:02
Location: Detroit MI
Contact:

Re: Death world again [WIP]

Post by meway » 25 Dec 2009, 21:51

wow that's pretty awesome crush I did not think it was possible.
Should i create a bigger star layout?

Edit: you think we could put a sand like image below the water, while the water is moving?

I thank it would be awesome because nobody's perspective of it will be the same

would require some alpha to the water.
User avatar
Kage
Warrior
Warrior
Posts: 927
Joined: 02 May 2009, 19:12

Re: Death world again [WIP]

Post by Kage » 26 Dec 2009, 06:35

meway wrote:wow that's pretty awesome crush I did not think it was possible.
Should i create a bigger star layout?

Edit: you think we could put a sand like image below the water, while the water is moving?

I thank it would be awesome because nobody's perspective of it will be the same

would require some alpha to the water.
This feature was just added... we can't use it yet because it won't work on older clients, but we can use it in CR1... if people agree and we can find a suited location for it.
<Kage_Jittai> ... are you saying I am elite :D
<thorbjorn> Yes. :P
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 17:08
Location: Germany

Re: Death world again [WIP]

Post by Crush » 26 Dec 2009, 14:30

Len wrote:It needs to be darkened a bit with more of a bluish hue than red (this will make it push back rather than forward visually)http://forums.themanaworld.org/download ... hp?id=4873
This is just a proof of technology. This example is completely over the top and I don't intent it to be used seriously.
Does it more slower than the foreground (multiplane)
Sure. The backgrounds have all abilities the forgrounds (overlays) have too, including parallax scrolling, optional fit-to-screen and self-movement. all independent from the others.
This feature was just added... we can't use it yet because it won't work on older clients
And that's the caveat.

Background images are only visible where the map has no or transparent tiles. This is something we avoid at all cost in the maps for the current client, because without a background image the existing clients will show ugly graphic bugs in its place.

We can only start to use backgrounds after we dropped support for the current 0.0.29.1 client.

But... there is a little trick we could abuse. 0.0.29.1 pulls its updates from resource2.txt, the current git pulls a file named resources.xml. We could put an update without backgrounds into resource2.txt and another versions with backgrounds into resources.xml.
but we can use it in CR1... if people agree and we can find a suited location for it.
Possible applications would be, for example:
  • The view from a high tower, mountain top, cliff etc.
  • Any Island-in-the-sky scenarios
  • A cave dungeon map which consists of bridges over a magma lake
  • It could also be used for water effects, although I would rather use animated tiles for this.
  • Or water surfaces which reflect the sky
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
User avatar
i
TMW Adviser
TMW Adviser
Posts: 1113
Joined: 07 Mar 2005, 18:29
Location: Poland
Contact:

Re: Death world again [WIP]

Post by i » 26 Dec 2009, 15:06

Crush wrote:[*]It could also be used for water effects, although I would rather use animated tiles for this.
[*]Or water surfaces which reflect the sky[/list]
What about bottom of sea? Water could be semi transparent. I like the idea. :)
Retired chainsaw seller. CEO @ Advertising Agency N2P
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 17:08
Location: Germany

Re: Map backgrounds (was: Death world again)

Post by Crush » 26 Dec 2009, 15:08

Bottom of the sea = solid mapped ground with transparent water in the foreground = overlays = was already possible :wink:

Or did I misunderstand what you mean?
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
User avatar
Jaxad0127
TMW Adviser
TMW Adviser
Posts: 4209
Joined: 01 Nov 2007, 18:35
Location: Internet

Re: Death world again [WIP]

Post by Jaxad0127 » 26 Dec 2009, 17:36

Relying on backgrounds for water is quite bad, IMO. We wouldn't be able to do river animations like WoA is doing, unless we make those transparent, with the background reflecting the sky (a good option, IMO). For oceans and larger lakes, we can use the backgrounds to reduce mapping load. If we do ship deck maps, backgrounding the ocean will allow for a lot of detail with little mapping effort. Balloon and train maps too (something that would be interesting to look into).
Crush wrote:But... there is a little trick we could abuse. 0.0.29.1 pulls its updates from resource2.txt, the current git pulls a file named resources.xml. We could put an update without backgrounds into resource2.txt and another versions with backgrounds into resources.xml.
Just to make sure this is out here: the next client will try the XML first, and fall back on the older format if the XML isn't found. No need to provide XML if you don't want the newer features (like the abuse above, or optional updates).
Image
User avatar
Kage
Warrior
Warrior
Posts: 927
Joined: 02 May 2009, 19:12

Re: Death world again [WIP]

Post by Kage » 26 Dec 2009, 19:19

Crush wrote:But... there is a little trick we could abuse. 0.0.29.1 pulls its updates from resource2.txt, the current git pulls a file named resources.xml. We could put an update without backgrounds into resource2.txt and another versions with backgrounds into resources.xml.
:shock: Your right.... I didn't think of doing something like that... :?

Though do we really want to maintain two versions of the same map :?:

Your play a dangerous game my friend.... :twisted:
<Kage_Jittai> ... are you saying I am elite :D
<thorbjorn> Yes. :P
User avatar
meway
Knight
Knight
Posts: 1736
Joined: 04 Jan 2009, 06:02
Location: Detroit MI
Contact:

Re: Map backgrounds (was: Death world again)

Post by meway » 26 Dec 2009, 20:25

semi transparent animated water on top of background. Whats the worst that could come from testing it?
User avatar
octalot
Novice
Novice
Posts: 214
Joined: 23 Sep 2008, 20:15

Re: Death world again [WIP]

Post by octalot » 27 Dec 2009, 00:39

Crush wrote:But... there is a little trick we could abuse. 0.0.29.1 pulls its updates from resource2.txt, the current git pulls a file named resources.xml. We could put an update without backgrounds into resource2.txt and another versions with backgrounds into resources.xml.
Instead of having two versions of the map, how about another magic layer name like the "Fringe" layer which:
* New clients wouldn't draw
* Mappers should put as the bottom layer, and only use a special tileset containing a single black tile
Retired from TMW; incomplete projects looking for a dev:
Cave foliage (plants up the walls): http://forums.themanaworld.org/viewtopic.php?f=8&t=5659
Cave wetwalls (water down the walls): http://forums.themanaworld.org/viewtopic.php?f=8&t=5816
User avatar
Jaxad0127
TMW Adviser
TMW Adviser
Posts: 4209
Joined: 01 Nov 2007, 18:35
Location: Internet

Re: Death world again [WIP]

Post by Jaxad0127 » 27 Dec 2009, 06:11

octalot wrote:
Crush wrote:But... there is a little trick we could abuse. 0.0.29.1 pulls its updates from resource2.txt, the current git pulls a file named resources.xml. We could put an update without backgrounds into resource2.txt and another versions with backgrounds into resources.xml.
Instead of having two versions of the map, how about another magic layer name like the "Fringe" layer which:
* New clients wouldn't draw
* Mappers should put as the bottom layer, and only use a special tileset containing a single black tile
I'd rather not, as it has no use going forward.
Image
User avatar
meway
Knight
Knight
Posts: 1736
Joined: 04 Jan 2009, 06:02
Location: Detroit MI
Contact:

Re: Map backgrounds (was: Death world again)

Post by meway » 30 Dec 2009, 18:18

really? what has no use going for-word?
Post Reply