Sprite rendering issues on CPP targets



  • Hi! I'm running into a couple of issues with getting the CPP targets to render sprites how I want them to. The odd thing is that flash builds display just fine. The pics I've included detail the problems.

    CPP Build

    CPP Build

    Flash Build

    Flash Build

    1. If you compare box 1 on the images, you'll see a rotated FlxSprite (by about 45 degrees). in the CPP build its all smoothed out. I'd like to retain the 'chunky' look of the flash build, but I have no idea how. Ive tried messing with the sprite's antialiasing and pixelPerfectRender settings, but its just not doing anything for me.

    2. In box 2 of the images, you'll see that the middle ball of the cursor in the cpp build is off-center. I'm not really sure what steps to take to try and fix that at all. Both builds have an internal resolution of 320x180, so I don't know what exactly is causing it to be off like that.

    Any help would be greatly appreciated. Thanks!


  • administrators

    Have you tried setting FlxG.camera.pixelPerfectRender to true? http://api.haxeflixel.com/flixel/FlxCamera.html?#pixelPerfectRender



  • Unfortunately yes. It didn't seem to affect anything.


Log in to reply