Loading Images/Bitmaps/Splash Screens

If you are new to OS Development, plan on spending some time here first before going into the other forums.

Moderator:Moderators

Post Reply
masonsbro
Posts:3
Joined:Sat Jun 13, 2009 4:19 pm
Loading Images/Bitmaps/Splash Screens

Post by masonsbro » Sat Jun 13, 2009 4:45 pm

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

Andyhhp
Moderator
Posts:387
Joined:Tue Oct 23, 2007 10:05 am
Location:127.0.0.1
Contact:

Re: Loading Images/Bitmaps/Splash Screens

Post by Andyhhp » Sun Jun 14, 2009 1:23 pm

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
Image

masonsbro
Posts:3
Joined:Sat Jun 13, 2009 4:19 pm

Re: Loading Images/Bitmaps/Splash Screens

Post by masonsbro » Tue Jun 23, 2009 12:37 am

I've been talking to Mike about it, but I'm just not there yet.

User avatar
Mike
Site Admin
Posts:465
Joined:Sat Oct 20, 2007 7:58 pm
Contact:

Re: Loading Images/Bitmaps/Splash Screens

Post by Mike » Tue Jun 23, 2009 1:51 am

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 :) )
Lead Programmer for BrokenThorn Entertainment, Co.
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com

Post Reply