anything new about creating boot animations?

Posted by: Draghtnod

anything new about creating boot animations? - 08/03/2002 04:45

hi there!

i searched the FAQ and the board for infos to change the boot animation(at 2.0)... they are all a bit old.. huh?

is there something new known how to -create- an own animation and load it up to the flash?

Tino
Posted by: tfabris

Re: anything new about creating boot animations? - 08/03/2002 10:53

No one has (so far) created an editor for the factory boot up animations. Only the custom logo (which appears AFTER the factory boot up animations) has been editable so far. I've been meaning to update my logo editor to do this, but have not gotten around to it.

I will say this, though:

Anyone who wishes to create such an editor, I have reason to believe that the necessary information is in the publicly-available kernel source code. For instance, the flash memory locations of the stored frames are in the kernel source code if I recall correctly.

So. Who's up for it?
Posted by: mlord

Re: anything new about creating boot animations? - 08/03/2002 11:47

If people get serious about this, I could make it simpler to locate the flash memory spot for it (as things move around..).
Posted by: tfabris

Re: anything new about creating boot animations? - 08/03/2002 12:00

I thought the flash memory location was fixed for the animated logos.
Posted by: mlord

Re: anything new about creating boot animations? - 08/03/2002 12:05

Nope. It's just a data structure inside the kernel. With a Hijack kernel, we can do whatever we please, so long as we leave a signature of some kind for uploader's to query.

Cheers
Posted by: Draghtnod

Re: anything new about creating boot animations? - 08/03/2002 12:30

hum.. i would like to program an editor for this animations! but i can only simple C/C++ and good delphi (and some other stuff)..
so if i got an editor working with delphi, you couldnt implement it in your editor, right? -> not good!

hum.. i gonna try to change the animation in the kernel manually! is there already some point where i should start to search?
maybe we could export the animation out of the kernel and implement some functions wich can read various animations out of another part of the flash..? who knows?
Posted by: justinlarsen

Re: anything new about creating boot animations? - 08/03/2002 13:08

tony comeon.. build version 2 of your logo edititor with everything you want.. you know you want to
Posted by: Draghtnod

Re: anything new about creating boot animations? - 08/03/2002 15:56

#ifdef NO_ANIMATION
/* The Rio logo for the splash screen */
#include "rio_logo.h"
/* The empeg logo for the splash screen: includes tux */
#include "empeg_logo.h"
#else
/* Animations for both empeg and rio players. */
#include "empeg_ani.h"
#include "rio_ani.h"

the rio_ani.h/empeg_ani.h includes an animation.. i just dont know what animation this is.. i hope its the boot animation.. right?
Posted by: tfabris

Re: anything new about creating boot animations? - 08/03/2002 16:12

Don't see why there's an ifdef, they're both in there...
Posted by: Draghtnod

Re: anything new about creating boot animations? - 08/03/2002 16:19

yeah! there both in there.. the ifdef is only an unused feature! if the NO_ANIMATION is set, an picture is displayed instead of an animation at boot!

well.. i got the code of the animations and i got the code wich decompresses the other code... or something i think i just can do it!
gimme some time *calculating*
Posted by: Draghtnod

Re: anything new about creating boot animations? - 08/03/2002 17:22

after 3 hours headbreaking calculations and tries,.... I GOT IT!!!
im reconstruating the first frame of the empeg animation now.. then ill see if im right
Posted by: mschrag

Re: anything new about creating boot animations? - 08/03/2002 20:54

I'm game ... Is the animation basically a concanated series of stills in the usual format (2048b)?
Posted by: mlord

Re: anything new about creating boot animations? - 08/03/2002 21:02

Close. Yes, just a bunch of catenated images, but if I recall correctly, they're packed 4 pixels per byte, 1024bytes per frame.

Cheers
Posted by: mlord

Re: anything new about creating boot animations? - 08/03/2002 21:07

And oh yeah, at the beginning is a table of frame offsets (int's) from the beginning of the animation (offsets from start of the offset table). Final offset in table is zero, as an end marker.

Cheers
Posted by: Draghtnod

Re: anything new about creating boot animations? - 09/03/2002 05:02

youre right.. why didnt you say that earlyer? *g*
whatever.. im onby progging a player for this animations..
Posted by: Draghtnod

Re: anything new about creating boot animations? - 09/03/2002 07:24

look at this:
http://server2040.virtualave.net/draghtnod/empeg.jpg
the offsetthing at the begining is a liddl confusing.. but it shouldnt be a problem..

is anyone else working on this???
Posted by: wfaulk

Re: anything new about creating boot animations? - 09/03/2002 09:54

Just in case it didn't occur to you, it looks like you've got an order wrong somewhere. I think you need to flip the first and second halves of the bytes to get it in the right order, IIRC.
Posted by: smu

Re: anything new about creating boot animations? - 09/03/2002 10:00

Hi.

It look more like a byteorder (big endian versus little endian) problem to me. But the effect is pretty much the same. Look at this:
Packed 4 pixels/Byte:

AABB CCDD
Decode on empeg:
00AA 00BB 00CC 00DD
Decode on PC (without reversing byteorder)
00CC 00DD 00AA 00BB
If you reverse the byte order on the PC, or swap the nibbles (hi/low 4 bit) in the packed byte, you will get the correct result.

cu,
sven
Posted by: wfaulk

Re: anything new about creating boot animations? - 09/03/2002 10:05

You're probably right. It's been months since I wrote my code to extract that data and I'm too lazy to bother looking at it.
Posted by: Draghtnod

Re: anything new about creating boot animations? - 09/03/2002 10:20

hum.. the real problem is: what do i have to do with the begining of the code? there are a lot of equals and so on.. but i dont really see the connection to the single frame!
for example i know that 0x54 means the last frame.. but why?
Posted by: wfaulk

Re: anything new about creating boot animations? - 09/03/2002 12:03

Ummm ... what?

Your initial problem is that the pixels are being drawn in the wrong order. That's why your jpeg looks like it's being viewed through a lenticular screen. You need to either swap pairs of bytes or swap nybbles within bytes (probably the former) in order to get it to print out properly.

Beyond that, I don't understand what you're asking.
Posted by: Draghtnod

Re: anything new about creating boot animations? - 09/03/2002 12:28

ups sorry for my bad english
the problem with the wrong order is corrected.. it paints a perfect picture now!

my last problem:
the first enterys in the animationcode are the pointers to the several frames (they are needed to prevent doubled frames)! i dont know how i have to use them! hum.. i have an idea! well.. i think this night will be full of calculations too *dreaming of flying pixels and offsets*
Posted by: mlord

Re: anything new about creating boot animations? - 09/03/2002 12:34

Look in the game_finale() routine of Hijack (hijack.c), and/or at the empeg_display.c driver, both of which decode and "play" the animations.

Cheers
Posted by: peterk

Re: anything new about creating boot animations? - 09/03/2002 19:44

My comment is a little more "low tech " then byte ordering.

On the boot animation for my Rio IIa (personality changed to empeg), tux is on the RIGHT of the empeg logo. How come yours is on the left?

PeterK
Posted by: Draghtnod

Re: anything new about creating boot animations? - 10/03/2002 03:10

i know.. was a little fault by my side!

great news:
i do now know what the code at the begining means! (and now tux is on the right side) i need only a liidle time to complete the player! creating animations is no problem! i also think you can crate the animation as long as you want until the flash is full! and if the next hijack deletes all 2 animations, you can crate a very cool long one

the player is complete this evening if nothing terrible happens..
Posted by: Draghtnod

Re: anything new about creating boot animations? - 10/03/2002 03:32

http://server2040.virtualave.net/draghtnod/empeg2.jpg
Posted by: justinlarsen

Re: anything new about creating boot animations? - 10/03/2002 07:49

looks good.. now if i could just figure it out.. anyone planning on writing a program to do the animations and it will also flash it to the player?
Posted by: Draghtnod

Re: anything new about creating boot animations? - 10/03/2002 08:59

u need to modify the kernel before you can flash it up! i cant and i wont do that.. i can do the program wich writes the animation!
i dont know how that flashing thing works..
Posted by: justinlarsen

Re: anything new about creating boot animations? - 10/03/2002 13:51

maybe you can work with tony and/or mark they know all about flashing, try writing to the program to just do that animations and/or ask them to see if they would help to to do the flashing part there both pretty good about helping maybe it will modivate tony, tony also mentioned he had something that would make it real easy but he didt have the time to implant it ect.
Posted by: Draghtnod

Re: anything new about creating boot animations? - 11/03/2002 07:14

okay..

Tony? Mark? what do i have to do to flash an animation up to the flash? i will do the program to read, modify and write the animation... isnt it possible to simple export the animation to a seperat memory area?

my empeg_ani.h/rio_ani.h player will be up in some hours..
Posted by: rob

Re: anything new about creating boot animations? - 11/03/2002 07:42

Is the attached code of use? It takes a bunch of raw files (as output from LogoEdit) and bundles them up into an animation file. You set the frame order within the code itself.

Maybe you're already past this stage, though.

Rob
Posted by: Draghtnod

Re: anything new about creating boot animations? - 11/03/2002 08:37

uhm.. yeah.. i am.. well if you made some animations, you can test them with my player:

http://server2040.virtualave.net/draghtnod/anima.zip
(if there are some errors or something, please email me or potst here. thanks)

but thanks! this will help me at programming an animation writer! or something that does read/modify/write/flash animations.. it depends on toms or marks help if i do one..
Posted by: justinlarsen

Re: anything new about creating boot animations? - 11/03/2002 13:41

looks good.. tony! comeon man you gotta give him a lil insight.. we are so close i can taste it
Posted by: Draghtnod

Re: anything new about creating boot animations? - 12/03/2002 06:50

hum.. i can compile my animations by myself.. thats ok for now

maybe the next jemplode has such a feature in it? who knows..
Posted by: mschrag

Re: anything new about creating boot animations? - 12/03/2002 06:56

Not _the next one_, but _one of the next ones_. I'm working on it ... Rob's code snippet saves me a heck of a lot of time, actually. I have most of the other code already (just need a little slider bar for changing frames, and we're money
Posted by: Draghtnod

Re: anything new about creating boot animations? - 12/03/2002 07:49

Oops sorry for my english.. *g*

if i can help you anyway, let it know me
(or let it me know? huh.. my english teachers were as terrible as the german ones )
Posted by: mschrag

Re: anything new about creating boot animations? - 12/03/2002 08:16

I wasn't picking on your english -- Just letting you know that I'm working on it, but it probably won't be the _next_ release (but it will be in one of the upcoming releases). Believe me, I can ONLY speak English, so I'm the last guy to pick on your language skills (and if you've read my posts on here, I even manage to screw up my only language sometimes )

Mike
Posted by: Draghtnod

Re: anything new about creating boot animations? - 12/03/2002 11:47

oh.. now i understand it
Posted by: justinlarsen

Re: anything new about creating boot animations? - 12/03/2002 12:49

mike i do the same.. i do the same.. english is imperfect to even the best english professor