Page 1 of 1

Loading Images/Bitmaps/Splash Screens

Posted: Sat Jun 13, 2009 4:45 pm
by masonsbro
I am trying to load a simple logo, but it won't display. I'm not sure if it's loading or not, all I know is that it is not showing. :?
This is my Stage2.asm:
http://pastebin.com/f6ec1cf73
This is common.inc:
http://pastebin.com/f18bc2c86
This is Fat12.inc:
http://pastebin.com/f7de7e135
And finally, here's main.cpp:
http://pastebin.com/f1767ac1a

I do not know what's wrong. Please help me. :cry:

P.S. This is the logo. It's very complex.
http://jandestuff.com/safe/LOGO12.BMP

Re: Loading Images/Bitmaps/Splash Screens

Posted: Sun Jun 14, 2009 1:23 pm
by Andyhhp
At this stage in the tutorials, its impossible to display bitmaps.

The VGA displays start in Text mode which is what is currently used.

To display a bitmap, you need to change modes but it is a very complicated procedure.

Read http://wiki.osdev.org/Category:Video for more information

~Andrew

Re: Loading Images/Bitmaps/Splash Screens

Posted: Tue Jun 23, 2009 12:37 am
by masonsbro
I've been talking to Mike about it, but I'm just not there yet.

Re: Loading Images/Bitmaps/Splash Screens

Posted: Tue Jun 23, 2009 1:51 am
by Mike
Hello,

Assuming the file is a bitmap file (.bmp), an easy way of checking if it has been loaded into memory is checking if the two bytes at its loaded location are 'B' and 'M'.

In any case, if you are not already in a video mode I recommend working on that first before continuing. The image format must match the video format of the mode that you set; and you must be able to render to display in order to display the image.

Please follow the link Andyhhp posted, and feel free to let us know if you run into any problems.

(*ps: I do not recognize your nick. If we met on IRC or the chatroom, letting me know your nick will let me know who you are :) )