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

why and when, a vector3's position need to be normalized? #2389

Closed
piglite opened this issue Sep 7, 2012 · 2 comments
Closed

why and when, a vector3's position need to be normalized? #2389

piglite opened this issue Sep 7, 2012 · 2 comments
Labels

Comments

@piglite
Copy link

piglite commented Sep 7, 2012

When I read the example canvas_lines.html, all the geometry's vertices positions were normalized, is it necessary? yes, it's look like a little different with use normalize or not, but is it just for a good-looking?

@WestLangley
Copy link
Collaborator

In the canvas_lines example, the normalization was just for appearance. Examples where normalization is required are when a rotation axis is specified, or when a ray direction vector is specified.

@mrdoob
Copy link
Owner

mrdoob commented Sep 7, 2012

Yes, it was for controlling the look. If you move the camera backwards you'll see it has a sphere shaped form. If you don't normalize the random numbers you usually get a cube shaped form.

@mrdoob mrdoob closed this as completed Sep 11, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants