Logicielsmoto.com

Nous sommes le 20 Sep 2019, 04:29

Heures au format UTC + 1 heure




Poster un nouveau sujet Répondre au sujet  [ 29 messages ]  Aller à la page Précédente  1, 2
Auteur Message
MessagePosté: 16 Juin 2018, 15:53 
Hors ligne

Inscription: 27 Juin 2006, 19:44
Messages: 1054
Localisation: France (24)
Amazing! My guess is that you don't move the whole screen but only the displayed elements already shifted in memory (try-to-know-how-i-have-done-that time :))...

_________________
Marche a suivre pour s'inscrire sur ce forum
Do not forget to contact one of the administrators to validate your registration.
Le site des démos de Puls
L'émulateur Teo


Haut
 Profil  
Répondre en citant le message  
MessagePosté: 16 Juin 2018, 16:19 
Hors ligne

Inscription: 04 Jan 2013, 13:18
Messages: 72
Prehisto a écrit:
Amazing! My guess is that you don't move the whole screen but only the displayed elements already shifted in memory (try-to-know-how-i-have-done-that time :))...


Yes the trick is pre-shifting :)

I have another way of doing scroll but it can only go at one speed while the above can have any speed we want.

BTW Prehisto thank you so much for all the invaluable info on the hardware and 6809 you gave me years ago when I first found out about these interesting machines. :)


Haut
 Profil  
Répondre en citant le message  
MessagePosté: 16 Juin 2018, 18:21 
Hors ligne

Inscription: 21 Aoû 2006, 09:06
Messages: 1111
Localisation: Brest
Pre-shifting is one thing, but there is still the clipping to do for elements near the edges of the playfield. That also costs CPU. Or did you also have pre-clipped elements as well ?

_________________
Good morning, that's a nice Tnetennba


Haut
 Profil  
Répondre en citant le message  
MessagePosté: 16 Juin 2018, 19:01 
Hors ligne

Inscription: 27 Juin 2006, 19:44
Messages: 1054
Localisation: France (24)
I think he has. The screen resolution is bitmap16, so all the shifted combinations don't take too much place in memory, because two shifted positions each (remember a bitmap16 point is 4 bits long) are enough to display everything.

_________________
Marche a suivre pour s'inscrire sur ce forum
Do not forget to contact one of the administrators to validate your registration.
Le site des démos de Puls
L'émulateur Teo


Haut
 Profil  
Répondre en citant le message  
MessagePosté: 16 Juin 2018, 20:45 
Hors ligne

Inscription: 04 Jan 2013, 13:18
Messages: 72
I am preparing another version of the scroll engine, I will post here a video when it is done and then you will confirm or not if you are correct :)


Haut
 Profil  
Répondre en citant le message  
MessagePosté: 24 Juin 2018, 11:12 
Hors ligne

Inscription: 04 Jan 2013, 13:18
Messages: 72
I am a bit delayed with the other version because of real life intrusion so I will tell you how I did the scroll.

The scroll area is 28 bytes x 128 lines = 3584 bytes, in a ram bank we have 16384 bytes so we can fit a map of roughly 4 screens * 3584 bytes = 14336, the map can have three configurations:

- 1234

-
12
34 (as in the demo)

-
1
2
3
4


As you can see we can still make the scrolling area a lbit bigger as we have 2048 bytes free in a bank, which gives 512 bytes to use to increase the scroll area to 146 lines but then I can't guarantee if the copying routine will be able to handle it in one frame as I haven't tested it.

Then I pre-shift the bank three times into 3 other banks, so the total is 4 * 16k = 64k. Why four times? because we have 4 pixels in a byte as I am using a non standard screen mode, the 160x200x4, at the moment this only works on MESS and the real machine :)

Then I use a double buffer and with the stack I copy from each ram bank to the hidden screen as the scroll offset requires.

My other version will use the mode 160x200x16 two layers where I will use the technique above for the scrolling background (4 colours) and then I will use the other layer for sprites I can use 4 other colours if the sprites don't overlap the background or the same 4 colours of the background if they do overlap the background. The game will be at 25hz as I need the second frame to draw sprites but it won't be too costly as I don't need to restore the background I just need to delete the sprites which is a bit faster.

Another thing that we can do is to pre-shift the screen into 7 banks, and we can scroll the screen per byte in hires 2 colours at 50hz. This would be cool to show a picture, if I have time I will try to do this demo too.

PS: I have also studied another option to do scroll where it can scroll huge maps but at a fixed speed of 1 pixel per byte and no more whereas the method above allows for several speeds and perhaps we can find a way to increase the size of the maps?!


Haut
 Profil  
Répondre en citant le message  
MessagePosté: 07 Juil 2018, 10:05 
Hors ligne

Inscription: 27 Juin 2006, 19:44
Messages: 1054
Localisation: France (24)
It's like you took us by surprise, don't you, W_oo_d ? :lol:
Of course, a 160x200x4 screen... So a screen has only 8k data? It's indeed faster to fill up.

_________________
Marche a suivre pour s'inscrire sur ce forum
Do not forget to contact one of the administrators to validate your registration.
Le site des démos de Puls
L'émulateur Teo


Haut
 Profil  
Répondre en citant le message  
MessagePosté: 07 Juil 2018, 19:04 
Hors ligne

Inscription: 04 Jan 2013, 13:18
Messages: 72
Prehisto a écrit:
It's like you took us by surprise, don't you, W_oo_d ? :lol:
Of course, a 160x200x4 screen... So a screen has only 8k data? It's indeed faster to fill up.

:cool: :lol:


Haut
 Profil  
Répondre en citant le message  
MessagePosté: 11 Avr 2019, 15:40 
Hors ligne

Inscription: 04 Jan 2013, 13:18
Messages: 72
Amazing how time passes by...

Finally I have had some time and I am working on a game for the Thomson TO8, with vertical scroll. It is running at 25 fps and it goes much smoother on the real machine than on this video but you can have an idea of how it is looking.
phpBB [video]


Dernière édition par W_oo_d le 11 Avr 2019, 21:31, édité 1 fois.

Haut
 Profil  
Répondre en citant le message  
MessagePosté: 11 Avr 2019, 15:45 
Hors ligne

Inscription: 21 Aoû 2006, 09:06
Messages: 1111
Localisation: Brest
Damn, that's look promissing! I hope you could finish the game and let us enjoy it :bien: :jap:

_________________
Good morning, that's a nice Tnetennba


Haut
 Profil  
Répondre en citant le message  
MessagePosté: 11 Avr 2019, 15:56 
Hors ligne

Inscription: 27 Juin 2006, 19:44
Messages: 1054
Localisation: France (24)
:eek: :good:
With sound?

_________________
Marche a suivre pour s'inscrire sur ce forum
Do not forget to contact one of the administrators to validate your registration.
Le site des démos de Puls
L'émulateur Teo


Haut
 Profil  
Répondre en citant le message  
MessagePosté: 11 Avr 2019, 16:05 
Hors ligne

Inscription: 04 Jan 2013, 13:18
Messages: 72
Thank you Sam and Prehisto.

I have not thought of sound and music yet, and I am dreading it because I am null at it specially regarding a computer with just a DAC. I will need help.

I am focused on finishing this.


Haut
 Profil  
Répondre en citant le message  
MessagePosté: 11 Avr 2019, 21:31 
Hors ligne

Inscription: 04 Jan 2013, 13:18
Messages: 72
I have updated the youtube video as the previous one had very little quality.


Haut
 Profil  
Répondre en citant le message  
MessagePosté: 15 Avr 2019, 13:25 
Hors ligne

Inscription: 06 Juin 2004, 08:23
Messages: 373
Wow, mindboggling !!! :tourne:

With Mission Lift Off and now that, it shows that the machine actually missed its career by a big chunk ... Imagine if we had that back in the days ...


Haut
 Profil  
Répondre en citant le message  
Afficher les messages postés depuis:  Trier par  
Poster un nouveau sujet Répondre au sujet  [ 29 messages ]  Aller à la page Précédente  1, 2

Heures au format UTC + 1 heure


Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 2 invités


Vous ne pouvez pas poster de nouveaux sujets
Vous ne pouvez pas répondre aux sujets
Vous ne pouvez pas éditer vos messages
Vous ne pouvez pas supprimer vos messages
Vous ne pouvez pas joindre des fichiers

Rechercher:
Aller à:  
cron
Développé par phpBB® Forum Software © phpBB Group
Traduction par phpBB-fr.com