Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot change target of DirectionalLight #16

Open
chrisdembia opened this issue Sep 23, 2016 · 4 comments
Open

Cannot change target of DirectionalLight #16

chrisdembia opened this issue Sep 23, 2016 · 4 comments

Comments

@chrisdembia
Copy link
Member

I am unable to change the target of the DirectionalLight. I can change where the light is, but I cannot change the orientation of the light: it is always oriented towards what I think is (0, 0, 0). Chrome 53

@aymanhab
Copy link
Member

All lights are objects in the scene and can be rotated, translated.
Documentation missing :)

On Sep 22, 2016 5:50 PM, "Christopher Dembia" [email protected]
wrote:

I am unable to change the target of the DirectionalLight. I can change
where the light is, but I cannot change the orientation of the light: it is
always oriented towards what I think is (0, 0, 0). Chrome 53


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#16, or mute the thread
https://github.com/notifications/unsubscribe-auth/ADyccGS2rCJxBdBSbm46-jG8Z_qBH-bAks5qsyI_gaJpZM4KEgar
.

@chrisdembia
Copy link
Member Author

For the bones, I see both Position and Rotation under Object. But under DirectionalLight, I only see Position. No Rotation.

@aymanhab
Copy link
Member

There are shortcuts to enable translation rotation and scaling of selected object (when Debug is On). You can expose these using W, E, R respectively. While I was able to rotate the icon, the change didn't seem to affect shadows. I can troubleshoot further. I included that on the front page .md file but maybe it wasn't prominent. Let me know what you find out. Thanks.

@chrisdembia
Copy link
Member Author

chrisdembia commented Sep 23, 2016

Ah I see that in the README now. It is prominent; I just didn't read carefully. I think a more natural way to control the orientation of the DirectionalLight is to change the Position of its target. E.g., it could have properties "Position" and "Target Position".

I have not yet played with the W, E, R keys, so I don't know what the current behavior of rotating is. I apologize if it is as I described.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants