SMFX - So Whatt? QL Sprite Record

Anything QL Software or Programming Related.
Post Reply
spkr
Brittle Membrane
Posts: 103
Joined: Tue May 04, 2021 6:52 pm

SMFX - So Whatt? QL Sprite Record

Post by spkr »

hi there guys,

Ive set the new bar at 35 sprites in a single vbl while running a 1px scroller of 5px high and playing music! The previous record was at 17 sprites...
You can find the link to the binary https://www.pouet.net/prod.php?which=93405, or watch the Youtube video (captured from real hardware, but not at 50hz unfortunately), here: https://youtu.be/bS_Csjm01z0.

Try to beat diz!
Regards,
Wietze


Derek_Stewart
Font of All Knowledge
Posts: 4040
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: SMFX - So Whatt? QL Sprite Record

Post by Derek_Stewart »

Hi,

Nice YouTube video.

I tried the SOHATT.IMG file on the Q68, which runs very nicely in 512x256 4 Colour mode.


Regards,

Derek
spkr
Brittle Membrane
Posts: 103
Joined: Tue May 04, 2021 6:52 pm

Re: SMFX - So Whatt? QL Sprite Record

Post by spkr »

Hi,

that is unexpected; I would expect it to switch to 256x256; I am doing

Code: Select all

	or.b	#%1000,$18063		; set the 256x256 screen mode
The intended use is for Stock QL anyhow, but I can not explain why you are in mode 4.

Regards,
wietze


User avatar
ppe
Trump Card
Posts: 171
Joined: Tue Dec 14, 2010 10:48 am
Location: Espoo, Finland

Re: SMFX - So Whatt? QL Sprite Record

Post by ppe »

Holy cow, that's an amazing achievement on stock QL :o Waiting for ASM gurus like Norman or JanB to step up to the plate and try to beat that one :)

Thank you for bringing demoscene to the QL world, you rock!


stevepoole
Super Gold Card
Posts: 725
Joined: Mon Nov 24, 2014 2:03 pm

Re: SMFX - So Whatt? QL Sprite Record

Post by stevepoole »

Hi Folks,

The quoted YouTube video 3D animation of space vessels is very good.

It would be interesting to try to do it in Basic...

Steve.


User avatar
NormanDunbar
Forum Moderator
Posts: 2287
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: SMFX - So Whatt? QL Sprite Record

Post by NormanDunbar »

ppe wrote: Mon Jan 23, 2023 5:08 am ...Waiting for ASM gurus like Norman or JanB to step up to the plate and try to beat that one :)
I don't "do" graphics! :(

But it was very impressive!

Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
User avatar
dex
Gold Card
Posts: 288
Joined: Thu Dec 23, 2010 1:40 pm

Re: SMFX - So Whatt? QL Sprite Record

Post by dex »

Is the drawing somehow synchronised with the frame?
If yes, how?


ones' complement
Trump Card
Posts: 161
Joined: Tue Nov 30, 2021 1:19 am

Re: SMFX - So Whatt? QL Sprite Record

Post by ones' complement »

Any chance of a Sprite Toolkit?


spkr
Brittle Membrane
Posts: 103
Joined: Tue May 04, 2021 6:52 pm

Re: SMFX - So Whatt? QL Sprite Record

Post by spkr »

dex wrote: Mon Jan 23, 2023 12:45 pm Is the drawing somehow synchronised with the frame?
If yes, how?
The effect is double buffered, so a screen is completed before its displayed. The buffer switch is executed in the vertical blank vector, then the mainloop runs seperately from the vblank code to draw to the backbuffer. The mainloop in this case waits for the vblank to occur and have finished before it starts drawing to the buffer.


spkr
Brittle Membrane
Posts: 103
Joined: Tue May 04, 2021 6:52 pm

Re: SMFX - So Whatt? QL Sprite Record

Post by spkr »

ones' complement wrote: Mon Jan 23, 2023 2:14 pm Any chance of a Sprite Toolkit?
I dont know what you mean here; what do you mean with Sprite Toolkit?

For some other stuff I cobbled together a bmp to ql graphics format conversion (bmp in, assembly statements out).
For this sprite record stuff, the sprite graphic is analyzed and some optimal code generation has been applied. (bmp in, sprite masks and code out).

Kind regards,
Wietze


Post Reply