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

Round / circular points via Three.PointsMaterial with WebGL #11157

Closed
Bandit opened this issue Apr 10, 2017 · 3 comments
Closed

Round / circular points via Three.PointsMaterial with WebGL #11157

Bandit opened this issue Apr 10, 2017 · 3 comments

Comments

@Bandit
Copy link

Bandit commented Apr 10, 2017

Been learning a bit about Points. I have a series of points that make up a shape and rotate slowly. Each point is one of 6 colours.

I want to make them circular rather than square, but all of the examples I've seen to do that don't use Points at all. Should I change to a Sprite (as per this example: https://github.com/mrdoob/three.js/blob/master/examples/canvas_lines_sphere.html#L65-L90) and re-factor my code in order to get circular points, or is there another way?

Using r84

@Bandit Bandit changed the title Round / circular points via Three.PointsMaterial Round / circular points via Three.PointsMaterial with WebGL Apr 10, 2017
@jostschmithals
Copy link
Contributor

Possibly a duplicate of #11016 (especially http://jsfiddle.net/myy7x4zd/10/)?

@Bandit
Copy link
Author

Bandit commented Apr 10, 2017

Thanks for the reply. So in summary the only way is via an image colorized via a custom shader?

Feels pretty overengineered but I guess it's a limitation of WebGL or something

@Mugen87
Copy link
Collaborator

Mugen87 commented Apr 10, 2017

You don't have to use a custom shader. Check out how PointsMaterial is created in this example:

https://threejs.org/examples/#webgl_points_billboards

@Mugen87 Mugen87 closed this as completed Apr 10, 2017
Repository owner deleted a comment from Odin04ka Feb 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants