Graphics 1 Chapter has been released

News discussions

Moderator:Moderators

Post Reply
User avatar
Mike
Site Admin
Posts:465
Joined:Sat Oct 20, 2007 7:58 pm
Contact:
Graphics 1 Chapter has been released

Post by Mike » Sat Jan 30, 2010 11:13 pm

Hello everyone,

Graphics 1, the first of several chapters covering graphics programming and topics have been released. This is the first chapter of a spinoff miniseries based off of the OS Development Series. This chapter covers general graphics concepts, some hardware concepts, VGA BIOS interface, and more.

Any feedback is welcome :D
Lead Programmer for BrokenThorn Entertainment, Co.
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com

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

Re: Graphics 1 Chapter has been released

Post by Andyhhp » Sun Jan 31, 2010 3:22 pm

Thats a fair amount of detail.

I would argue that description of CRT is misleading. There arnt 3 "different coloured beams of electrons". There are 3 beams specifically designed to hit different colours of phosphours on the screen. Then again, I might just be being picky.

in the CDA section, you say
The CGA only supported a Color Palette of 16 colors, because it was limited to 4 bytes per pixel.
Should this be 4 bits per pixel? 4 bytes per pixel is 4 billion colours.

Other than that, it looks good :)

~Andrew
Image

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

Re: Graphics 1 Chapter has been released

Post by Mike » Sun Jan 31, 2010 5:21 pm

Hello,

Those are good catches - Ill be sure to fix the second error (Should be 4 bits per pixel) and update the CRT section.

I can expand a lot more on the chapter, however I am worried of the chapter getting too big. I can see about expanding a little more. Any more suggestions are always welcome :D
Lead Programmer for BrokenThorn Entertainment, Co.
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com

Ecoboy
Posts:4
Joined:Fri Jul 31, 2009 3:55 pm

Re: Graphics 1 Chapter has been released

Post by Ecoboy » Sun Jan 31, 2010 5:42 pm

Hey, :D
I'm so happy, i was waiting for that tutorial for a long while :wink:
I'm very waiting for the next :P
PS : When the Sound's integration comes ?
PS2: What about the FileSytem ? Can't wait ofr that too :mrgreen:
Thanks so much ~Mike~ for your great tutorial

wererabit
Posts:30
Joined:Wed Sep 03, 2008 2:50 am

Re: Graphics 1 Chapter has been released

Post by wererabit » Tue Feb 23, 2010 10:04 am

thanks, cant wait for the next tutorial

Hoozim
Posts:34
Joined:Sun Nov 21, 2010 6:40 pm

Re: Graphics 1 Chapter has been released

Post by Hoozim » Sun Nov 21, 2010 6:46 pm

This is a little off topic but how do you enter V86 mode. I want to implement automatic shutdown but in order to do so, I want to us the real mode APM interface (accessible through APM). I have tried before but it has always resulted in an immediate triple fault.

Hoozim
Posts:34
Joined:Sun Nov 21, 2010 6:40 pm

Re: Graphics 1 Chapter has been released

Post by Hoozim » Sun Nov 21, 2010 6:56 pm

Ecoboy, what I did for filesystems is base off of the Windows file system method. So I have CD and DIR. OS DEV WIKI has some good references to the FAT filesystem (the main series has good ones too).

For sound, I would look into PCI first. It is actually fairly simple. There are only two registers for PCI and they are simple to use. The problem with sound cards is that they are often not standardized. That's why they come with driver cds. You might be able to figure out how it works on your computer but you would be throwing away portability. Contact the card's manager if you want details.

PCI is also a good way to get 100% control of the video card. VGA is great and easy, but it limits you to low resolutions and few colours. If you can figure out your graphics (they are less standardized than the Sound card), you can have graphics just like Windows.

If you haven't already, look into PCI. You can use it to access almost all deivces from Ethernet cards to Video Cards to USB. USB is also interesting but painfully long. The 2.0 specification is 600 pages long. On top of that there are the 3 interfaces that you need to implement.

On the topic of graphics, when will the next Graphics tutorial come out? It has been almost a year. HAVE FUN :lol:

Post Reply