aframe-area-light-component icon indicating copy to clipboard operation
aframe-area-light-component copied to clipboard

Area-light-component doesn't seem to work properly with A-Frame v 0.7.0 and higher

Open frederic-schwarz opened this issue 7 years ago • 2 comments

sample code

      <a-entity area-light="width: 10; height: 3; intensity: 100; color:#fff;"
                position="1.5 1.5 -10"
                rotation="0 -90 0">
      </a-entity>

using A-Frame 0.6.1 localhost_8081

using A-Frame 0.7.1

  • area-light is rotated incorrect
  • area-light is not casting light localhost_8081

frederic-schwarz avatar Nov 02 '17 12:11 frederic-schwarz

A-Frame 0.6 is using Three r84 but there are changes to the THREE.RectAreaLight and THREE.RectAreaLightHelper.

Besides the difference in positioning, there's also a change in Three.js r85 from r84 that changes the material to THREE.LineBasicMaterial instead of a MeshBasicMaterial.

AVGP avatar Dec 26 '17 00:12 AVGP

Hi AVGP

Could you please advise if it is possible to amend a file to have the area lighting work in aframe 7 and higher? Im bewildered by the engine of this stuff.

Thank you in advcance.

Eoin

eoinapplaud avatar Nov 22 '18 12:11 eoinapplaud