Dynamic Sprites

Anything QL Software or Programming Related.
dilwyn
Mr QL
Posts: 1913
Joined: Wed Dec 01, 2010 10:39 pm

Dynamic Sprites

Postby dilwyn » Sat Jan 16, 2021 4:25 pm

Anyone know of a QL sprite viewer that's able to display Dynamic Sprites (GD2 especially)?

Need something to test the output of my animated GIF viewer program. I appreciate I could quickly cobble together a simple menu in Easyptr and load the dynamic sprite as a pointer sprite to display that way, but why reinvent the wheel as square if someone's already invented a round one.

I've used Per's sprite viewer to go through it frame by frame, looks OK, but need some way to see that (a) the animation works, and (b) that the frame timings are working correctly.

(Many thanks to Per for his PIC/Sprite conversion routines and PIC compression - just need to test now if I've destroyed his code while integrating it into my program)


--
All things QL - http://www.dilwyn.me.uk
User avatar
pjw
Aurora
Posts: 792
Joined: Fri Jul 11, 2014 8:44 am
Location: Norway
Contact:

Re: Dynamic Sprites

Postby pjw » Sat Jan 16, 2021 6:00 pm

Dilwyn,
I wrote something to display dynamic sprites using an asynchronous job, but it didnt work very well, so its in my pile of "try something else" abandoned projects. However, my sprite viewer, Sprv V0.07 (I believe that was the last released version?) can display dynamic sprites (up to 64x64 pixels) as pointer sprites: Just display the sprite and DO the down arrow. ESC to exit that mode. But perhaps you already tried that and it wasnt what you wanted..?


Per
Be wary of large West-Coast corporations bearing gifts!
- Ancient Trojan proverb
dilwyn
Mr QL
Posts: 1913
Joined: Wed Dec 01, 2010 10:39 pm

Re: Dynamic Sprites

Postby dilwyn » Sat Jan 16, 2021 6:29 pm

pjw wrote:Dilwyn,
I wrote something to display dynamic sprites using an asynchronous job, but it didnt work very well, so its in my pile of "try something else" abandoned projects. However, my sprite viewer, Sprv V0.07 (I believe that was the last released version?) can display dynamic sprites (up to 64x64 pixels) as pointer sprites: Just display the sprite and DO the down arrow. ESC to exit that mode. But perhaps you already tried that and it wasnt what you wanted..?

Ah, I was afraid of that - I had used it, but it just grunts and does nothing when I DO on the down arrow. That must mean that there is a fault with the sprites I generate. Although some of the animated GIFs I've been using are larger than 64x64 pixels (I forgot about that limit), so that may be the reason. I'll see if I can find smaller GIFs to try.


--
All things QL - http://www.dilwyn.me.uk
dilwyn
Mr QL
Posts: 1913
Joined: Wed Dec 01, 2010 10:39 pm

Re: Dynamic Sprites

Postby dilwyn » Sat Jan 16, 2021 6:55 pm

Yes, it does work for sprites up to that size :oops: silly me. Looks like the dynamic sprites are being generated correctly after all. Thanks Per.


--
All things QL - http://www.dilwyn.me.uk
User avatar
BSJR
Brittle Membrane
Posts: 101
Joined: Sun Oct 18, 2015 12:53 pm
Location: Amsterdam
Contact:

Re: Dynamic Sprites

Postby BSJR » Mon Jan 18, 2021 11:42 am

dilwyn wrote:Yes, it does work for sprites up to that size :oops: silly me. Looks like the dynamic sprites are being generated correctly after all. Thanks Per.

Dilwyn,

If Sprv 0.07 is giving a problem you could try SprvAPM on my site which is an update from that.
I don't remember if I fixed any Dynamic issues then though.
And there is also SQRview, that too can step through Dynamic Sprites and show statistic on each one.
https://home.hccnet.nl/b.spelten/ql/index.html

BSJR


dilwyn
Mr QL
Posts: 1913
Joined: Wed Dec 01, 2010 10:39 pm

Re: Dynamic Sprites

Postby dilwyn » Mon Jan 18, 2021 7:29 pm

BSJR wrote:
dilwyn wrote:Yes, it does work for sprites up to that size :oops: silly me. Looks like the dynamic sprites are being generated correctly after all. Thanks Per.

Dilwyn,

If Sprv 0.07 is giving a problem you could try SprvAPM on my site which is an update from that.
I don't remember if I fixed any Dynamic issues then though.
And there is also SQRview, that too can step through Dynamic Sprites and show statistic on each one.
https://home.hccnet.nl/b.spelten/ql/index.html

BSJR

Thanks Bob. In fact, it was just the fact that I'd forgotten about the dynamic sprite size limit which Per mentioned - I "created" a problem where there was none.

In fact, playing around with chasing a non-existent bug gave me a few ideas for more facilities to add to the animated GIF viewer! I'm enjoying programming this little project.

But these programs on your site will still prove useful.


--
All things QL - http://www.dilwyn.me.uk

Who is online

Users browsing this forum: No registered users and 8 guests