-
Notifications
You must be signed in to change notification settings - Fork 69
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
Comments
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). |
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. |
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:
And here it is close-up (ignore the other, orange spheres behind it):
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.
The text was updated successfully, but these errors were encountered: