Page 1 of 1

BGF Image Service

Posted: Thu Sep 14, 2017 4:29 pm
by Sha'Krune
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

Re: BGF Image Service

Posted: Fri Sep 15, 2017 3:21 pm
by Morbus
Ohh, nice! That could have a ton of useful applications in automated content generation!

Re: BGF Image Service

Posted: Fri Sep 15, 2017 4:50 pm
by Sha'Krune
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

Re: BGF Image Service

Posted: Sun Sep 17, 2017 10:30 am
by Morbus
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...

Re: BGF Image Service

Posted: Sun Sep 17, 2017 3:41 pm
by Sha'Krune
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.

Re: BGF Image Service

Posted: Mon Sep 18, 2017 6:41 am
by Everglow
@ShaKrune is there a list of all URL's, or how do we get them to implement them on the Wiki?

Re: BGF Image Service

Posted: Mon Sep 18, 2017 1:03 pm
by Sha'Krune
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

Re: BGF Image Service

Posted: Mon Sep 18, 2017 8:56 pm
by Morbus
Very, VERY nice work there Shak! Can't wait to have a bit of time on my hands to delve into it. :D