You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 21, 2021. It is now read-only.
I add a SpotLight with SpotLightHelper to three box use tb.Object3D({obj:spotLight}),and setCoords(coords),but the SpotLightHelper `s coordinates looks like at the (0,0) even I set any coords, here is the code can be use to test.
@huohuli008
Same problem I get part of the answer to the SpotLightHelper question.
1.I find SpotLightHelper is wrong display but the actually the SpotLight run properly under threebox.
2.The SpotLightHelper appers to be wrong on calculating the matrix inside it`s hard to be corrected from outside threebox.
3.What I recommend is that you should build a alternative helper thing just like the pic below
It`s not work as good as SpotLightHelper but it helps me to deal with the SpotLight problem.
Hope to give you some help.
I add a SpotLight with SpotLightHelper to three box use tb.Object3D({obj:spotLight}),and setCoords(coords),but the SpotLightHelper `s coordinates looks like at the (0,0) even I set any coords, here is the code can be use to test.
`<!doctype html>
<title>Raycaster</title> <script src="js/threebox.js" type="text/javascript"></script>The text was updated successfully, but these errors were encountered: