squarefeet / ShaderParticleEngine

A GLSL-heavy particle engine for THREE.js. Originally based on Stemkoski's great particle engine (see README)
http://squarefeet.github.io/ShaderParticleEngine/
MIT License
853 stars 115 forks source link

The particles are not displayed when moving the camera #113

Closed korner-brazers closed 7 years ago

korner-brazers commented 8 years ago

Hi, I noticed a bug, if you move and rotate the camera in certain corners of the particles disappear from the screen. I use EditorControls.js of three.js library and stir the particle at position 3000, 0, 300 If you move the camera at different positions and look at the particle appears this bug! Maybe something I forgot to add this real or a bug?

Here are a couple of screenshots.

squarefeet commented 8 years ago

It's going to be difficult to reproduce this, could you make an online version (JSBin or similar) that I can look at?

korner-brazers commented 8 years ago

Oh sure) http://codepen.io/korner/pen/BLLNVX

rafaelcastrocouto commented 7 years ago

Also happens in my project. How can we solve it?

squarefeet commented 7 years ago

Could one of you try setting the following property on your group(s) and see if it fixes the issue?

group.mesh.frustumCulled = false

rafaelcastrocouto commented 7 years ago

Yes @squarefeet it fixes the issue http://codepen.io/rafaelcastrocouto/pen/jyKMYE You can close it!

squarefeet commented 7 years ago

Yay! Glad that worked, saves me a lot of digging around :)