Fats vga graphics 
Author Message
 Fats vga graphics

This question does not necessarily relate to basic, but all languages.  
If vga modes do not have enough memory to have several pages stored in
memory, how do people create fast graphics in vga mode?

--------------------------------------------------------------
Caleb Joliffe
Alias: Cujo



Cronulla Sharks Homepage:
http://www.*-*-*.com/ ~u953592/home.html

"Don't be afraid to go for what you want, or what you want to
 be, but don't be afraid to pay the price." --Lane Frost
--------------------------------------------------------------



Thu, 17 Dec 1998 03:00:00 GMT  
 Fats vga graphics

Quote:

> This question does not necessarily relate to basic, but all languages.
> If vga modes do not have enough memory to have several pages stored in
> memory,

What makes you think that ? There are many ways of using more than one
page in for instance mode 13h.
I use powerbasic and there are some pretty good ModeX libs for doing so.

how do people create fast graphics in vga mode?

Quote:

> --------------------------------------------------------------
> Caleb Joliffe
> Alias: Cujo



> Cronulla Sharks Homepage:
> http://student.canberra.edu.au/~u953592/home.html

> "Don't be afraid to go for what you want, or what you want to
>  be, but don't be afraid to pay the price." --Lane Frost
> --------------------------------------------------------------



Thu, 17 Dec 1998 03:00:00 GMT  
 Fats vga graphics

U9>This question does not necessarily relate to basic, but all languages.
U9>If vga modes do not have enough memory to have several pages stored in
U9>memory, how do people create fast graphics in vga mode?

There are tricks that allow you to get more video pages in Screen 13...
One of these is called MODE X.  (Atleast I think MODE X is used to get
more video pages...)
Of course if you figure out how to enable mode x (there is an
explanation on how to do this in the PC Game Programmers Encyclopedia)
you will have to write your own SETPIXEL routines... it's a little more
complex than in regular screen 13 as well. I think you have to use bit
planes and everything... (I've never used MODE X, but scanned through
the PCGPE mode x explanation and this is what I got out of it..)



Sat, 19 Dec 1998 03:00:00 GMT  
 Fats vga graphics

On 2 Jul 1996 Tyler.Barnes said:
 Ty>U9>This question does not necessarily relate to basic, but all
 Ty>U9>languages. If vga modes do not have enough memory to have
 Ty>U9>several pages stored in memory, how do people create fast
 Ty>graphics in vga mode?
 Ty>There are tricks that allow you to get more video pages in Screen
 Ty>13... One of these is called MODE X.  (Atleast I think MODE X is
 Ty>used to get more video pages...)
 Ty>Of course if you figure out how to enable mode x (there is an
 Ty>explanation on how to do this in the PC Game Programmers
 Ty>Encyclopedia) you will have to write your own SETPIXEL routines...
 Ty>it's a little more complex than in regular screen 13 as well. I
 Ty>think you have to use bit planes and everything... (I've never used
 Ty>MODE X, but scanned through the PCGPE mode x explanation and this
 Ty>is what I got out of it..)
I've got a question though... Is ModeX 320x200? I can't really determine it
from the Source code I have... Best I can make out is that it's like 160x200
or something, hardly worth the trouble.
`[1;31;45mNet-Tamer V 1.04 - Test Drive



Mon, 21 Dec 1998 03:00:00 GMT  
 Fats vga graphics

KB>I've got a question though... Is ModeX 320x200? I can't really determine it
KB>from the Source code I have... Best I can make out is that it's like 160x200
KB>or something, hardly worth the trouble.
KB>`[1;31;45mNet-Tamer V 1.04 - Test Drive

It's 320x200



Mon, 21 Dec 1998 03:00:00 GMT  
 Fats vga graphics

Quote:

>On 2 Jul 1996 Tyler.Barnes said:
>I've got a question though... Is ModeX 320x200? I can't really determine it
>from the Source code I have... Best I can make out is that it's like 160x200
>or something, hardly worth the trouble.

 That depends on how you program it. Mode X is simply setting the Card
 to Bit-plane mode, you then program the X,Y values depending on what
 card you have, ect.


Mon, 21 Dec 1998 03:00:00 GMT  
 Fats vga graphics

Quote:

> On 2 Jul 1996 Tyler.Barnes said:
>  Ty>U9>This question does not necessarily relate to basic, but all
>  Ty>U9>languages. If vga modes do not have enough memory to have
>  Ty>U9>several pages stored in memory, how do people create fast
>  Ty>graphics in vga mode?
>  Ty>There are tricks that allow you to get more video pages in Screen
>  Ty>13... One of these is called MODE X.  (Atleast I think MODE X is
>  Ty>used to get more video pages...)
>  Ty>Of course if you figure out how to enable mode x (there is an
>  Ty>explanation on how to do this in the PC Game Programmers
>  Ty>Encyclopedia) you will have to write your own SETPIXEL routines...
>  Ty>it's a little more complex than in regular screen 13 as well. I
>  Ty>think you have to use bit planes and everything... (I've never used
>  Ty>MODE X, but scanned through the PCGPE mode x explanation and this
>  Ty>is what I got out of it..)
> I've got a question though... Is ModeX 320x200? I can't really determine it
> from the Source code I have... Best I can make out is that it's like 160x200
> or something, hardly worth the trouble.
> `[1;31;45mNet-Tamer V 1.04 - Test Drive

Mode X comes in many forms--320x200, 320x240, 640x400 (SxMODE), etc.

Here is the code for activating 320x240 mode:

SUB MODEX
    SCREEN 13
    DEF SEG = &HA000
    OUT &H3C4, &H4
    OUT &H3C5, &H6
    OUT &H3C4, &H2
    OUT &H3C5, &HF
    CLS
    OUT &H3D4, &H14
    OUT &H3D5, &H0
    OUT &H3D4, &H17
    OUT &H3D5, &HE3
    OUT &H3C2, &HE3
    OUT &H3D4, &H11
    OUT &H3D5, &H2C
    OUT &H3D4, &H6
    OUT &H3D5, &HD
    OUT &H3D4, &H7
    OUT &H3D5, &H3E
    OUT &H3D4, &H10
    OUT &H3D5, &HEA
    OUT &H3D4, &H11
    OUT &H3D5, &HAC
    OUT &H3D4, &H12
    OUT &H3D5, &HDF
    OUT &H3D4, &H15
    OUT &H3D5, &HE7
    OUT &H3D4, &H16
    OUT &H3D5, &H6
END SUB

I converted some asm code to this (there is no need for ML due to nothing but
ports).

--
______________________________

Steven Sensarn

______________________________



Mon, 21 Dec 1998 03:00:00 GMT  
 Fats vga graphics

Quote:

> KB>I've got a question though... Is ModeX 320x200? I can't really determine it
> KB>from the Source code I have... Best I can make out is that it's like 160x200
> KB>or something, hardly worth the trouble.
> KB>`[1;31;45mNet-Tamer V 1.04 - Test Drive

> It's 320x200

Correcton: It CAN BE 320x200

--
______________________________

Steven Sensarn

______________________________



Tue, 22 Dec 1998 03:00:00 GMT  
 Fats vga graphics

: This question does not necessarily relate to basic, but all languages.  
: If vga modes do not have enough memory to have several pages stored in
: memory, how do people create fast graphics in vga mode?

Easy - they cheat and use RAM to store the images. That's why DOOM, ROTT,
etc. require so much memory, to store pictures.

Wayne

--
                        Wayne Borean - AKA The Mad Hatter

I'll expand your universe....



Wed, 23 Dec 1998 03:00:00 GMT  
 Fats vga graphics

Quote:


> : This question does not necessarily relate to basic, but all languages.
> : If vga modes do not have enough memory to have several pages stored in
> : memory, how do people create fast graphics in vga mode?

> Easy - they cheat and use RAM to store the images. That's why DOOM, ROTT,
> etc. require so much memory, to store pictures.

> Wayne

Or, more accurately, they use extended memory to store textures (the pictures which are
"wrapped" around the walls and objects), and a separate 64K block of RAM, which could
either be in standard (<640K) or extended memory.


Fri, 25 Dec 1998 03:00:00 GMT  
 
 [ 10 post ] 

 Relevant Pages 

1. Fats vga graphics

2. Accessing VGA graphics via GWBASIC/QBASIC

3. Custom Char in vga graphics mode?

4. QB 4.5 VGA GUI+Graphics

5. VGA Graphics help

6. Printing VGA graphics in QB 4.5

7. QBasic and VGA graphics question.

8. HELP - AUTOSIZING FORMS AND CONTROLS FOR VGA & S-VGA

9. Creating a web interface from a fat client

10. VGA Retrace

11. VGA ART|STS/MIDI COMPOSERS/SFX SPECIALISTS WANTED!

 

 
Powered by phpBB® Forum Software