BGF Image Service

Discuss Meridian 59 changes.
Post Reply
Sha'Krune
Posts: 11
Joined: Sun Sep 18, 2016 7:51 am

BGF Image Service

Post by Sha'Krune » Thu Sep 14, 2017 4:29 pm

Introduction
This is a small project I've been working on the last months and it's almost ready for productive use.
The BGF Image Service provides an easy way to retrieve images of ingame objects (includig animated GIF).
It's a public webservice which creates and caches the images on the fly from the original BGF files.

Why?
This can be used to generate images for Wiki pages or for forum signatures.
It can also be used to load the BGF images and their included data into web based or mobile clients which don't natively support BGF.

More information / Links
http://bgf.meridian59.de
http://bgf.meridiannext.com

Example Player
Image

Example GIF
Image
Morbus
Posts: 55
Joined: Sat Aug 06, 2016 6:49 pm

Re: BGF Image Service

Post by Morbus » Fri Sep 15, 2017 3:21 pm

Ohh, nice! That could have a ton of useful applications in automated content generation!
Sha'Krune
Posts: 11
Joined: Sun Sep 18, 2016 7:51 am

Re: BGF Image Service

Post by Sha'Krune » Fri Sep 15, 2017 4:50 pm

I think this could be perfectly used to retrieve images on wiki pages like:

http://www.wiki.meridian59.de/index.php ... %20Pi-Piep

Just replace the IMG url with:

http://bgf.meridian59.de/render/180/220 ... 6-200/58/0

And you get:

Image

Instead of:

Image
Morbus
Posts: 55
Joined: Sat Aug 06, 2016 6:49 pm

Re: BGF Image Service

Post by Morbus » Sun Sep 17, 2017 10:30 am

Depending on how easy it is to implement color translations etc., this could also be used for a sort of wardrobe feature. Possibly even for some sort of character roster such as WoW's armory...
Sha'Krune
Posts: 11
Joined: Sun Sep 18, 2016 7:51 am

Re: BGF Image Service

Post by Sha'Krune » Sun Sep 17, 2017 3:41 pm

Depending on how easy it is to implement color translations etc., this could also be used for a sort of wardrobe feature. Possibly even for some sort of character roster such as WoW's armory...
Have a look at the parameter specs...
It can already render any color translation, any angle and any kind of multi-bgf object like players.
In fact it can render any ingame object.
The parameters which have to be specified in the calls are the ones which are normally sent by the server.

I really DO like the armory idea.

PS: I think the biggest problem is currently the fact that building the query-url is a non trivial task for multi-bgf objects like players. You can use the admin-view in OgreClient to get the list of used suboverlays, their animations and palettes, but this is still quite unhandy.
User avatar
Everglow
Posts: 21
Joined: Tue Jan 17, 2017 2:22 pm

Re: BGF Image Service

Post by Everglow » Mon Sep 18, 2017 6:41 am

@ShaKrune is there a list of all URL's, or how do we get them to implement them on the Wiki?
Sha'Krune
Posts: 11
Joined: Sun Sep 18, 2016 7:51 am

Re: BGF Image Service

Post by Sha'Krune » Mon Sep 18, 2017 1:03 pm

Check out the additional information on http://bgf.meridian59.de/
It explains what requests are possible and how the URL is built for the different requests.
For creating wiki-images the queries described in (2) and (3) are most interesting.

PS: Here's a quick guide how to get animated GIF for monsters

Let's consider this example:
http://bgf.meridian59.de/render/256/256 ... -1-100/0/0

/render --> What kind of query
/256 --> Width of image to create
/256 --> Height of image to create
/30 --> Scale (Size of Object, =Shrink x10, object is placed bottom-center in image and may not be fully visible if scale is too big)
/orc --> Name of Main-BGF
/1-1-100 --> Animation of Main-BGF (=cycle all groups starting from 1 with interval 100ms between frames)
/0 --> Palette to use (0=default=no colorchanges, max=255)
/0 --> Angle (Rotates the object, Possible: 0-7)

For objects which have more than one BGF involved things are a bit more complicated.
Each suboverlay is defined by: s={file};{anim};{palette};{hotspot}

For instance a skeleton:
http://bgf.meridian59.de/render/256/256 ... 7-100;69;1
Morbus
Posts: 55
Joined: Sat Aug 06, 2016 6:49 pm

Re: BGF Image Service

Post by Morbus » Mon Sep 18, 2017 8:56 pm

Very, VERY nice work there Shak! Can't wait to have a bit of time on my hands to delve into it. :D
Post Reply