Re: Graphics Question
Hello Aidan,
>Having never really attempted to use graphics in my programs, and wanting
>to learn, I have a question if someone would be willing to help.
>Is it possible (using existing libs) to draw a screen at a high frame rate
>(say 60Hz) using sequences, e.g
>{{R,G,B},{R,G,B}..{R,G,B}} -- use a sequence of Red Green and Blue values,
>or colour values, starting from the top left pixel and ending at the bottom
>right pixel
>assuming the procedure of filling that sequence isn't overly time
>consuming?
>If this isn't feasible, what is the generally accepted procedure? (bearing
>in mind that I know very little about ASM or peeking and poking)
>
>Thanks,
>Aidan
A more widely used method would be the 2d sequence:
P = {R,G,B}
{
{P,P,P},
{P,P,P},
{P,P,P}
} -- this is a 3 x 3 image.
You can use display_image() to display it in Neil or if the Ps are
just integers that correspond to palette values you can use
display_image() in a standard graphics.e graphics mode.
There IS another way thogh, since this method can get rather
sluggish whin displaying large images (such as the size of the
screen)
Neil.e offers a very fast alternative: virtual screens. There are
other graphics libraries that are available some of which are
faster even than Neil in some ways. Neil has the most features
though, I believe. I would suggest downloading it and reading the
documentation and then asking more questions because you're sure
to have some. ;)
I have a Neil question myself, if anyone feels enlightened today:
I recently got a new computer. With it, I got a Voodoo3 3000 AGP
graphics card. It is awesome to say the least but the Neil graphics
modes that I'm allowed to use are greatly limited now. I suspect
it is becuase I don't have vesa drivers for my new video card,
however, when I run Neil's modelist.ex, it spits out a long list
of every graphics mode I can imagine and even says:
VESA version 3 "3Dfx Interactive Inc." at the top
So, this seems to fault my theory that I don't have vesa drivers
but What IS wrong? I can run programs that use 320 x 200 x 8 bit
graphics but nothing much better it seems.
Pete, anyone, can you help me with this?
later,
Lewis Townsend
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
|
Not Categorized, Please Help
|
|