VDP tricks in scr4 using move/logical commands (Development MSX Fora)MSX Resource Center MSXdev 2008 - MSX1 development bonanza!           
            
English Nederlands Español Português Russian         
 Nieuws
   Voorpagina
  Nieuws archief
  Nieuws onderwerpen

 Informatie
   MSX Fora
  Artikelen
  Recensies
  Beursverslagen
  Fotoreportages
  Beurzen en meetings
  Enquêtes
  Links
  Zoek

 Software
   Downloads
  Webshop

 MRC
   Wie we zijn
  Kom bij ons team
  Doneren
  Policies
  Contact met het MRC
  Link naar Ons
  Statistieken

 Zoek
 
  

  

 Login
 

Gebruikersnaam

Wachtwoord




Ben je nog niet lid? Klik hier en word MSX vriend!


 Statistieken
 

Er zijn 110 gasten en 1 MSX vriend online

Je bent een anonieme bezoeker.
 

MSX Fora


MSX Fora

Development - VDP tricks in scr4 using move/logical commands

Schrijver

VDP tricks in scr4 using move/logical commands

ARTRAG
msx master
Berichten: 1578
Geplaatst: 07 November 2005, 12:46   
While in scr4, switching to scr5/6/7/8 during vblank and executing copy commands is feasible, does anyone have ideas for exploiting this feature?

Tiles definition:

Does anyone have in mind some nice way for using the VDP logical commands for dynamic pattern definition?
In order to have parallax, I was considering scr6 logical copy (that can move the patterns of 2 bits), but as far as I can see, the best solution seems to have a bulk of pre-computed patterns to copy with fast copy (in scr8 or scr5 now is irrelevant).
Any suggestion?

Animation:

Using tpset on the logical map, it should be possible to move large objects made of tiles like they where in scr5. This BEFORE copyng the tiles from the logical map to the scr4 page.
On this side things seem easy, unfortunately in order to do 8 direction VDP scrolling the logical map needs to be scrambled (look at the code), so square blocks of tiles have to be split in multiple copy commands...If anyone has the will to open the pandora pot looking the algorithm behind the code he/she is welcome.

Sprite definition:

Here it is easy, as the sprite patters are 32 (4 colors per line) one could store in vram the color definitions corresponding to those patterrns, with and without the blody EC bit active.
This means that wasting 16*2*32*2 = 2048 bytes of VRAM you can copy on fly the color definition of any sprite definition in any sprite plane.
Each copy moves 16*2 bytes (4 colors per lines => 2 sprite planes) and you could need up to 32 pattern to be animated corresponding up to 32 fast copy commands with 32 bytes each.

Any further idea?




msd
msx professional
Berichten: 600
Geplaatst: 07 November 2005, 13:05   
Offcourse on 2+ you can just enable command support for every mode
ARTRAG
msx master
Berichten: 1578
Geplaatst: 07 November 2005, 18:47   
Yes but,
1) in vblank you can have it working also on msx2 in scr5/6/7/8
2) do you have some idea on effects to be done in scr4 using scr8 commands?
msd
msx professional
Berichten: 600
Geplaatst: 08 November 2005, 14:02   
why scr8 commands?
ARTRAG
msx master
Berichten: 1578
Geplaatst: 08 November 2005, 14:09   
You mentioned msx2+.
AFAIK on msx2+ the commands in scr4 work like they were in scr8. Do they?

msd
msx professional
Berichten: 600
Geplaatst: 08 November 2005, 14:38   
Don't they just work like in every mode?
 
 







(c) 1994 - 2008 Stichting MSX Resource Center. MSX is een trademark van MSX Licensing Corporation.