[SOLVED] Model outline not accurate when changing camera fov Realtime

Hello,

I have fork this project PlayCanvas 3D HTML5 Game Engine

My camera keep changing its FOV according to the distance which lead to this…

image

Can anybody suggest how i can fix this?

EDIT:

Sorry about that added following line in update now its work even after changing camera fov realtime…


// update code called every frame
ApplyOutline.prototype.update = function (dt) {
    this.outlineCamera.camera.fov = this.app.root.findByName('Camera').camera.fov;
    ........
};

2 Likes