Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pixel size in FLEX Stage 3D

I'm trying to do some pixel art using FLEX Stage 3D (with minko engine). I want a pixel size on the viewport of 4 "real pixels".

I think I'm not being very clear, so lets have an example. This is what I have now : enter image description here

And this is what I want to have (so it looks like pixel art). enter image description here The point is that I have absolutely no idea how I should do. I've tried re-sizing the viewport down and up, unsuccessfully.

Any idea will be very welcomed.

like image 610
sbouba Avatar asked Nov 12 '22 18:11

sbouba


1 Answers

if you want to do that in real time you should write your own shader for that. As i remember minko offers quite good solution for that.. a shader language so you can write them in as3, so no AGAL. Other idea is to set viewport antialias to 0. If it could be done by setting antialias to -5 your problem could be solved super easy :)

like image 118
val Avatar answered Dec 06 '22 22:12

val