GLBasic forum

Main forum => GLBasic - en => Topic started by: mrplant on 2016-Jun-21

Title: Prescaler disable?
Post by: mrplant 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
Title: Re: Prescaler disable?
Post by: spacefractal 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.
Title: Re: Prescaler disable?
Post by: erico 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
Title: Re: Prescaler disable?
Post by: spacefractal 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.