LookAt() Does not work with the CSS3DRenderer in Safari

The camera lookAt() method does not work in Safari on Mac and iOS devices when you use CSS3DRenderer. It works fine in both Chrome and Firefox.

Here’s a JSFiddle to demonstrate:

Three.js version
  • Dev
  • r76
  • All of them
  • Safari
  • Chrome
  • Firefox
  • Internet Explorer

I haven’t tested on other than OSX and iOS

  • All of them
  • Windows
  • Linux
  • Android
  • OSX
  • IOS

Author: Fantashit

1 thought on “LookAt() Does not work with the CSS3DRenderer in Safari

  1. The suggestion in #8845 largely fixes this bug in Safari. Modify the following function in CSS3DRenderer.js like so:

    var epsilon = function ( value ) {
        return Math.abs( value ) < Number.EPSILON ? 0 : value.toFixed( 6 );

    It is not an acceptable solution, though, because it leads to innacuracies.

Comments are closed.