well…i’m so sorry…all work fine…point light and directional light
i’m feel so stupid…
just one thing that doesn’t work as i except :
For directionnal light, i must tween a Vector3d object value, and assign this object on each render frame
directLightDirection = new Vector3D(0,0,0)
TweenMax.to(directLightDirection, 3, {bezierThrough:[{x:-15000, z:-15000}, {x:-15000, z:15000}, {x:15000, z:15000}, {x:15000, z:-15000}],repeat:-1, ease:Linear.easeNone});
private function render(evt:Event):void{
directLight.direction = directLightDirection
view.render();
}
this work fine !
i ‘ve also try to manipulate directly the direction but without effect, the light is not update
directLight.direction = new Vector3D(0,0,0)
TweenMax.to(directLight.direction, 3, {bezierThrough:[{x:-15000, z:-15000}, {x:-15000, z:15000}, {x:15000, z:15000}, {x:15000, z:-15000}],repeat:-1, ease:Linear.easeNone});
This doesn’ t work ! i don’t understand why
Is that normal ?
ps: A little complementary question :
how to add a debugg box around a light ?
thanks again