FOnline Development > Questions and Answers
Animated art
hexer:
I have a few questions about animated art:
1) Does FOnline support GIF animations?
2) Is there a certain background color for animations that can be used as transparent color or I really need to have each frame transparent?
John Porno:
I'm not entirely sure about gifs. I've seen them being used as inventory icons, but I dont know if it properly animated.
Apart from using the good old .frm, you can use .fofrm now, which is basically a .frm, split into a .fofrm textfile that takes care of the fps, offset and filepaths to a bunch of .png's. It allows you to use alpha channel and stuff while mimicking a .frm. You'll see examples in the 2238 sdk.
JovankaB:
Beside standard alpha channel in pngs, RGB(0,0,255) or in other words pure blue color
is rendered as transparency. There is one advantage of using it over alpha channel
- resized images look slightly better (or at least they did with the last version of FOnline
engine which I was using). The difference is large enough IMHO to stick with blue, at
least in the case of items' inventory pictures, which are usually resized to fit in the slots.
Another case where the difference is visible, is when player zooms in/out the map view,
so I would always use blue for transparency unless alpha channel was really required
to achieve some effect (like smoke, glass, soft shadows, etc) or it didn't matter at all
(like in the case of interface backgrounds).
hexer:
I've read in one of the update logs those last FOnline revisions that support for the blue is out. I can't confirm this since I can't run Fonline revisions 413+ because my hardware doesn't support vertex shaders.
I will try to create smoke effects - can they obscure vision?
John Porno:
if you talk about something like smoke grenades where the smoke blocks the sightlines for targetting, then yes, that's possible.
Navigation
[0] Message Index
[#] Next page
Go to full version