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

Particles scale incorrectly with distance from camera #36

Open
interfect opened this issue Apr 26, 2018 · 2 comments
Open

Particles scale incorrectly with distance from camera #36

interfect opened this issue Apr 26, 2018 · 2 comments

Comments

@interfect
Copy link

I'm rendering a bunch of spheres, with a particle system on each. I want to eventually achieve a glow effect, but right now I'm just using the default star-shape texture.

Here's a sphere from far away:

screen shot 2018-04-25 at 9 13 37 pm

And here it is close-up (ignore the other, orange spheres behind it):

screen shot 2018-04-25 at 9 14 59 pm

When I get the camera close to the sphere, the star shape of the particle is much smaller, compared to the size of the sphere, than it is when the camera is far from the sphere. This should not happen (or at least is not documented) and suggests that there is a bug in the particle shader.

@interfect
Copy link
Author

Another bug that you can see in the second shot is that particles do not render in proper Z order. Some of the particles from the closer, white system are being drawn over by particles from other systems behind it. Having the spheres sort of mitigates this (as the particles interact with the spheres correctly according to Z order).

@weddingdj
Copy link
Contributor

The A-Frame component is just wrapping this particle engine: https://github.com/squarefeet/ShaderParticleEngine - I guess your issue is rather related to the engine itself than to the component.

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