MAMEWorld >> MAME Artwork: Official
View all threads Index   Threaded Mode Threaded  

Pages: 1

Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4453
Loc: Melbourne, Australia
Send PM


New features: state masks and parameter animation
#387885 - 09/15/20 07:24 PM


Abracadabra boom shaka dae
I’m Violent J and I’m back like a vertebrae
And I come with a hat full of tricks
Trunk full of Faygo, car full of fat chickseatures

I’ve implemented two more layout features that I’ve been meaning to get done for years now. They’re best demonstrated with examples. Of course, the new layout syntax is documented.



Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4453
Loc: Melbourne, Australia
Send PM


State masks new [Re: Vas Crabb]
#387886 - 09/15/20 07:31 PM Attachment: 705p3prg.zip 31 KB (10 downloads)


MAME now supports state masks, so components can be conditionally drawn depending on selected bits of the element state. Here’s an example using it to show 7-segment displays with external artwork, without needing hundreds of images for all possible states. This also shows alpha blending within an element.

Start the 705p3prg system, hit button 1 to make it start counting, go into video options, and switch views. You can use the built-in 7-segment digits, or two different styles using external images.

This example has active-high outputs, so it only needs statemask attributes. You handle active-low outputs with statemask="0x02" state="0" etc.



Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4453
Loc: Melbourne, Australia
Send PM


Parameter animation new [Re: Vas Crabb]
#387887 - 09/15/20 07:39 PM Attachment: ridgerac.zip 1 KB (21 downloads)


You can now have piecewise liner animation of component position, size and colour within an element.

This sample for Ridge Racer shows the state of the analog controls with bar graphs. Just fire up ridgerac, make sure you have the right view selected, and play with the steering, brake and accelerator.

Analog control display is kind of entertaining, but this would be more useful for something electromechanical like Wacky Gator or Cosmo Gang that has a servomechanism for moving things around.



Nightvoice
MAME Fan
Reged: 03/19/10
Posts: 880
Loc: The Room Next To You
Send PM


Re: New features: state masks and parameter animation new [Re: Vas Crabb]
#387888 - 09/15/20 08:54 PM


Things are about to get a lot more complicated...



----------------------
I have officially retired from sucking at everything I do. Life is much easier now.

My MAME/MESS artwork files: https://drive.google.com/open?id=1ABxeKgNIrKlIsyck7dx4V241NFQDWAF4
Related screen shots: https://drive.google.com/open?id=1U5IbvbVzYW97PuOOQuocvZFE_YJz7WIn



Mr. DoAdministrator
MAME Art Editor
Reged: 09/21/03
Posts: 4860
Loc: California
Send PM


Re: Parameter animation new [Re: Vas Crabb]
#387891 - 09/15/20 10:46 PM


> You can now have piecewise liner animation of component position, size and colour
> within an element.
>
> This sample for Ridge Racer shows the state of the analog controls with bar graphs.
> Just fire up ridgerac, make sure you have the right view selected, and play with the
> steering, brake and accelerator.
>
> Analog control display is kind of entertaining, but this would be more useful for
> something electromechanical like Wacky Gator or Cosmo Gang that has a servomechanism
> for moving things around.

Nice... more new toys. Cosmo Gang was one of the things I was thinking of when I first started reading. Also... the spaceship in Kozmik Kroozr? On a hard drive somewhere, I have all of the graphics ripped from one of the Midway collections.




RELAX and just have fun. Remember, it's all about the games.




nbla000
MAME Fan
Reged: 05/27/20
Posts: 28
Send PM


Re: New features: state masks and parameter animation new [Re: Vas Crabb]
#387894 - 09/16/20 09:14 AM


>Vas Crabb

hi, are you the same who answer me on buggyboy topic on mamedev forum as cuavas ? have you see my reply?

oh yes, you are the same... many thanks for your work!

Do you know if there is a way to cache artwork image before displaying?

Take a look of my hangon artwork (rideon version) to understand the problem (just go left or right after you start).



Mr. DoAdministrator
MAME Art Editor
Reged: 09/21/03
Posts: 4860
Loc: California
Send PM


Re: New features: state masks and parameter animation new [Re: nbla000]
#387896 - 09/16/20 02:24 PM


> > Vas Crabb
>
> hi, are you the same who answer me on buggyboy topic on mamedev forum as cuavas ?
> have you see my reply?
>
> oh yes, you are the same... many thanks for your work!
>
> Do you know if there is a way to cache artwork image before displaying?
>
> Take a look of my hangon artwork (rideon version) to understand the problem (just go
> left or right after you start).


So sorry... I never followed up on this... read this post here by hap, and then the link to the pastebin in that post:

https://forums.bannister.org/ubbthreads....true#Post116159




RELAX and just have fun. Remember, it's all about the games.




nbla000
MAME Fan
Reged: 05/27/20
Posts: 28
Send PM


Re: New features: state masks and parameter animation new [Re: Mr. Do]
#387897 - 09/16/20 03:17 PM


> So sorry... I never followed up on this... read this post here by hap, and then the
> link to the pastebin in that post:
>
> https://forums.bannister.org/ubbthreads....true#Post116159

Don't worry and thanks for the link, so now finally I have something to do this week-end ;-) since seems that I cannot add steering support on buggyboy :-(

Anyway after a quick look, it seems a workaround, no problems for me but a specific attribute for image (something like cache="yes") on mame layout structure is not a bad idea, there is a place to suggest implementations to mame developers?



Comboman
Can't think of a good title
Reged: 12/30/12
Posts: 431
Loc: Halifax, Canada
Send PM


Re: Parameter animation new [Re: Vas Crabb]
#387918 - 09/18/20 03:25 PM


>You can now have piecewise liner animation of component position, size and colour within an element.

Would it be possible to add rotation? When I did the tachometers for Drag Race, it would have been much easier to have a single needle image drawn at a rotation angle set by the analog output rather than pre-rendering 100 different needle images at various angles.



Nightvoice
MAME Fan
Reged: 03/19/10
Posts: 880
Loc: The Room Next To You
Send PM


Re: Parameter animation new [Re: Comboman]
#387919 - 09/18/20 05:25 PM


> > You can now have piecewise liner animation of component position, size and colour
> within an element.
>
> Would it be possible to add rotation? When I did the tachometers for Drag Race, it
> would have been much easier to have a single needle image drawn at a rotation angle
> set by the analog output rather than pre-rendering 100 different needle images at
> various angles.

This goes back to my earlier comment about wanting to be able to center an image on a coordinate. Rotating square graphics could get into some seriously hairy shit otherwise.



----------------------
I have officially retired from sucking at everything I do. Life is much easier now.

My MAME/MESS artwork files: https://drive.google.com/open?id=1ABxeKgNIrKlIsyck7dx4V241NFQDWAF4
Related screen shots: https://drive.google.com/open?id=1U5IbvbVzYW97PuOOQuocvZFE_YJz7WIn



nbla000
MAME Fan
Reged: 05/27/20
Posts: 28
Send PM


Re: New features: state masks and parameter animation new [Re: Mr. Do]
#387953 - 09/21/20 04:47 PM


> So sorry... I never followed up on this... read this post here by hap, and then the
> link to the pastebin in that post:
>
> https://forums.bannister.org/ubbthreads....true#Post116159

I've tried this workaround but without success, it works for single image elements but not with multiple states images like in my case.
I have an element with 25 states but this method caches just the last image state. :-(



Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4453
Loc: Melbourne, Australia
Send PM


SVG support in external artwork new [Re: Vas Crabb]
#388122 - 10/07/20 05:15 PM Attachment: 705p3prg.zip 38 KB (18 downloads)


MAME 0.226 will support simple SVG images in external artwork, constrained by what NanoSVG supports (basically just flat shaded shapes). I’ve attached a demonstration using SVG stencil sheets to show 7-segment LED displays. (The SVG digits view looks the same as one of the views using bitmap segments. That’s the point, it’s showing that you can do stuff with vector graphics instead.)



MooglyGuy
Renegade MAME Dev
Reged: 09/01/05
Posts: 2257
Send PM


Re: SVG support in external artwork new [Re: Vas Crabb]
#388123 - 10/07/20 05:30 PM





Nightvoice
MAME Fan
Reged: 03/19/10
Posts: 880
Loc: The Room Next To You
Send PM


Re: SVG support in external artwork new [Re: Vas Crabb]
#388129 - 10/07/20 11:40 PM


To those of us who work almost exclusively in vector graphics, this is fantastic news!



----------------------
I have officially retired from sucking at everything I do. Life is much easier now.

My MAME/MESS artwork files: https://drive.google.com/open?id=1ABxeKgNIrKlIsyck7dx4V241NFQDWAF4
Related screen shots: https://drive.google.com/open?id=1U5IbvbVzYW97PuOOQuocvZFE_YJz7WIn



RaspBear
retrogamer
Reged: 09/12/16
Posts: 303
Loc: Italia
Send PM


Re: SVG support in external artwork new [Re: Vas Crabb]
#388142 - 10/09/20 07:33 AM


Great feature, thanks!
Is there an impact on performance using svg vs raster artwork?



MooglyGuy
Renegade MAME Dev
Reged: 09/01/05
Posts: 2257
Send PM


Re: SVG support in external artwork new [Re: RaspBear]
#388144 - 10/09/20 11:55 AM


> Great feature, thanks!
> Is there an impact on performance using svg vs raster artwork?

There shouldn't be. The SVG still gets rasterized to a texture at load time.



RaspBear
retrogamer
Reged: 09/12/16
Posts: 303
Loc: Italia
Send PM


Re: SVG support in external artwork new [Re: MooglyGuy]
#388149 - 10/09/20 08:59 PM


Great. That means we could use screen resolution independent SVG bezels.



Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4453
Loc: Melbourne, Australia
Send PM


Anti-aliased disk components new [Re: Vas Crabb]
#388173 - 10/13/20 06:01 PM Attachment: 6TWhP3Q.png 46 KB (1 downloads)


I’m about sick of disk components not really looking round. For MAME 0.226 they’ll have mathematically correct area-based anti-aliasing, because calculus FTW!

[ATTACHED IMAGE]

Attachment



Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4453
Loc: Melbourne, Australia
Send PM


Element clipping bug fixed new [Re: Vas Crabb]
#388181 - 10/14/20 12:29 PM Attachment: sQnVkS1.png 50 KB (0 downloads)


With this fix, the LED bezels at the bottom are actually round.

[ATTACHED IMAGE]

Attachment



Mr. DoAdministrator
MAME Art Editor
Reged: 09/21/03
Posts: 4860
Loc: California
Send PM


Re: Element clipping bug fixed new [Re: Vas Crabb]
#388182 - 10/14/20 01:02 PM


> With this fix, the LED bezels at the bottom are actually round.

Nice... loving all the improvements.




RELAX and just have fun. Remember, it's all about the games.




gregf
Ramtek's Trivia promoter
Reged: 09/21/03
Posts: 8588
Loc: southern CA, US
Send PM


Re: Element clipping bug fixed new [Re: Mr. Do]
#388195 - 10/15/20 01:47 AM



>> With this fix, the LED bezels at the bottom are actually round.

>Nice... loving all the improvements.

*envisioning Taito Ice Cold Beer artwork could look very good in case that piece can be found, scanned, supported as an external artwork piece etc.*


Pages: 1

MAMEWorld >> MAME Artwork: Official
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Mr. Do 
0 registered and 10 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1295