Author Topic: Looking to design a super simple theme - is attract mode right for this?  (Read 8072 times)

keithcorcoran

  • Full Member
  • ***
  • Posts: 25
    • View Profile
Re: Looking to design a super simple theme - is attract mode right for this?
« Reply #15 on: January 14, 2019, 09:38:33 AM »
You can probably tweak the carrier.nut to just load the required pictures instead of "local obj = fe.add_artwork( "wheel" )" but in the end this is going to mess with rawset_index_offset changes. I'll have to look into it.

Is that a function I call from layout.nut to get the carrier to use a different named art source in AM. Or do I need specify it it in carrier.nut

That would be easiest.

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1233
    • View Profile
    • My deviantart page
Re: Looking to design a super simple theme - is attract mode right for this?
« Reply #16 on: January 14, 2019, 10:07:52 AM »

Is that a function I call from layout.nut to get the carrier to use a different named art source in AM. Or do I need specify it it in carrier.nut


As far as I can see no, you have to go in the carrier.nut code and in the line

Code: [Select]
local obj = fe.add_artwork( "wheel" )
substitute "wheel" with the name of the artwork you have created in AM

keithcorcoran

  • Full Member
  • ***
  • Posts: 25
    • View Profile
Re: Looking to design a super simple theme - is attract mode right for this?
« Reply #17 on: January 14, 2019, 10:32:13 AM »
cool will try it

FrizzleFried

  • Sr. Member
  • ****
  • Posts: 243
    • View Profile
    • Idaho Garagecade
Re: Looking to design a super simple theme - is attract mode right for this?
« Reply #18 on: January 15, 2019, 06:27:22 AM »
Looking good!!
Visit my arcade blog ... www.idahogaragecade.com (updated 06-27-19)

keithcorcoran

  • Full Member
  • ***
  • Posts: 25
    • View Profile
Re: Looking to design a super simple theme - is attract mode right for this?
« Reply #19 on: January 16, 2019, 07:18:53 PM »
Is there any way to keep AM from antialiasing the layout when it resizes it to screen size?

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1233
    • View Profile
    • My deviantart page
Re: Looking to design a super simple theme - is attract mode right for this?
« Reply #20 on: January 16, 2019, 11:56:06 PM »
Is there any way to keep AM from antialiasing the layout when it resizes it to screen size?

Oh for the picture you should use "picturename.smooth = false", for the whole layout I have no idea...

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1167
    • View Profile
Re: Looking to design a super simple theme - is attract mode right for this?
« Reply #21 on: January 17, 2019, 12:38:58 AM »
There's no option to anti-alias a single shape. To get anti-aliased shapes (i.e. shapes with smoothed edges), you have to enable anti-aliasing globally when you create the window, with the corresponding attribute of the sf::ContextSettings structure.

I don’t think sfml applies anti-aliasing to textures. I could be wrong. Perhaps it’s a driver thing?

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1233
    • View Profile
    • My deviantart page
Re: Looking to design a super simple theme - is attract mode right for this?
« Reply #22 on: January 17, 2019, 12:53:57 AM »
I don’t think sfml applies anti-aliasing to textures. I could be wrong. Perhaps it’s a driver thing?

I think the term anti-aliasing in this case is misleading since it applies to shapes borders. When you define a Layout at a certain size and AM enlarges it to fit the screen it applies bilinear filtering, that's what he's trying to avoid.

keithcorcoran

  • Full Member
  • ***
  • Posts: 25
    • View Profile
Re: Looking to design a super simple theme - is attract mode right for this?
« Reply #23 on: January 17, 2019, 08:48:16 AM »
picturename.smooth=false worked out perfect applied to my background video

however..
carrier.smooth = false

did not work.

nor did adding
selector.smooth = false

to carrier.nut


keithcorcoran

  • Full Member
  • ***
  • Posts: 25
    • View Profile
Re: Looking to design a super simple theme - is attract mode right for this?
« Reply #24 on: January 17, 2019, 09:00:23 AM »
figured it out...

added this to carrier.nut around line 152 to turn off smoothing of wheel images... if you're into that sort of thing.

Code: [Select]
153    obj.smooth=false