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

The sprites examples doesn't work with three.js rev. 64 and upper #19

Open
eliazarx opened this issue Feb 18, 2014 · 0 comments
Open

The sprites examples doesn't work with three.js rev. 64 and upper #19

eliazarx opened this issue Feb 18, 2014 · 0 comments

Comments

@eliazarx
Copy link

If i use the sprites examples (particulary the "Labeled Geometry" example) I am receiving the following error.

var radarMaterial = new THREE.SpriteMaterial( { map: radarTexture2, useScreenCoordinates: true, alignment: THREE.SpriteAlignment.topLeft } );

Uncaught TypeError: Cannot read property 'topLeft' of undefined.

If i doesn't use the "alignment: THREE.SpriteAlignment.topLeft" the sprites are not centered with respect to the center of the Cartesian axes. (I read that SpriteMaterial.alignment and SpriteMaterial.useScreenCoordinates have been removed from Threejs.) Could You update these examples to make them compatible with the version 64?

Many thanks in advance,
Fabrizio.

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

1 participant