fixed chuck's blurryness by increasing the animation size * 4 before exporting and then scale it back down in js, activated renderer antialiasing

This commit is contained in:
logsol 2014-03-08 12:06:54 +01:00
parent 24430049d9
commit b65fbd9825
254 changed files with 8 additions and 4 deletions

View file

@ -80,8 +80,8 @@ function (Parent, Settings, Nc, Exception) {
Nc.trigger("view/createAnimatedMesh", texturePaths, callback, {
visible: false,
pivot: {
x: 35/2,
y: 40
x: 35/2 * 4,
y: 40 * 4
},
width: 35,
height: 40

View file

@ -31,11 +31,15 @@ function (Parent, DomController, PIXI, Settings, Nc) {
PixiView.prototype.init = function () {
var transparent = false;
var antialias = true;
var canvas = null; // lets pixi create one
if(Settings.USE_WEBGL) {
this.renderer = new PIXI.WebGLRenderer(Settings.STAGE_WIDTH, Settings.STAGE_HEIGHT);
this.renderer = new PIXI.WebGLRenderer(Settings.STAGE_WIDTH, Settings.STAGE_HEIGHT, canvas, transparent, antialias);
console.log('WebGLRenderer')
} else {
this.renderer = new PIXI.CanvasRenderer(Settings.STAGE_WIDTH, Settings.STAGE_HEIGHT);
this.renderer = new PIXI.CanvasRenderer(Settings.STAGE_WIDTH, Settings.STAGE_HEIGHT, canvas, transparent, antialias);
console.log('CanvasRenderer - not using WebGL!')
}