BASIC

Author Topic: Prescaler disable?  (Read 1211 times)

Offline mrplant

  • Mr. Polyvector
  • ***
  • Posts: 232
    • View Profile
Prescaler disable?
« on: 2016-Jun-21 »
Hi.

I am still trying to work out what has changed between versions 12 and 14 to cause my built in scaling code to suddenly mess up and have slight pixel corruption with the odd slight gap between graphics etc. Almost like rounding errors.

It all works well on 12 and I know 14 introduced a pre scaler .

I am wondering is there a way to turn this off or at least make its effect not noticeable?

Thanks

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3589
    • View Profile
    • Space Fractal
Re: Prescaler disable?
« Reply #1 on: 2016-Jun-21 »
Its disabled by default.

Its more smoothshading issue (I'm not home, so I'm might have spelled it). Rounding errors might happens when that is enabled, but prescaling does nothing by default.
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4174
    • View Profile
    • Portfolio
Re: Prescaler disable?
« Reply #2 on: 2016-Jun-21 »
yep, check the alphamodes and the alphatesting commands, it is probably related to the latest.
see here:
http://www.glbasic.com/xmlhelp.php?lang=en&id=408&action=view

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3589
    • View Profile
    • Space Fractal
Re: Prescaler disable?
« Reply #3 on: 2016-Jun-21 »
im home again. Those commands can effect it:

SETTRANSPARENCY
ALPHATESTING
SMOOTHSHADING

In my games for tiles, im need to disable SMOOTHSHADING to FALSE to avoid those edge artifacts.

Also make sure you dont use a float when using tiles.
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.