Myjestic reacted to hcmetal in How to occlude glow effect
As shown in PG: https://playground.babylonjs.com/#QLBNSV#2
1. Include sphere1 in the glow layer, and set its material's emmissiveColor to black. Then sphere1 will occlude sphere2's glow effect.
If you want both spheres to glow, consider setting their emmissiveColor to different colors or intensities. Don't over-blow the exposure so you can see the "occluded" effect.
2. You can use the sphere materials' emmissiveColor to control the glow color, or use "gl.customEmissiveColorSelector" on the glow layer.
Hope this solves your problems. Please let me know if there are any further questions.
Myjestic reacted to RaananW in registerBeforeRender on childmeshes created in "for loop"
Just for understanding -
I find it cleaner, but it is all a matter of taste in that case.
Myjestic reacted to aWeirdo in registerBeforeRender on childmeshes created in "for loop"
It is also possible with a little change, adding the registerBeforeRender to the child itself,
I just prefer it the other way
Have a nice friday.
Myjestic got a reaction from RaananW in Problems with Playground URL
Perfect. Now it's working for me.
Short explanation about the proxy I'm talking about. I am behind a corporate proxy (bluecoat) where all urls are blocked by default.
The rules for the whitelist comes from a server, where every user can submit a request of a specific blacklistet url.
For "http://babylonjs-api2.azurewebsites.net/" someone has done it yet, so this url was categorized as "save for use" and whitelisted.
The url "https://babylonjs-api2.azurewebsites.net/" was not categorized until yersterday, so it was blacklisted. All I got back from this blacklisted url is "Hello, you are not allowed because of reasons." And PG is awaiting a JSON String and not a "you are not allowed string", so it always redirected to the basic scene.
I submitted the https-url yesterday evening for review and got a positive approve this morning. This means, the https-url is now whitelisted.
Nonetheless, independent from this proxy issue, there are some firefox users suffering from wrong or bad configured certificate policy. That cause some https pages not to load.
Another problem could be the mixing of http and https pages. Some browser are blocking mixed content by default. This could be the problem of @lihis
Summarizing, this change in the code should be a good approach to ensure access to PG without problems.
Thanks all for your help.
Myjestic got a reaction from Deltakosh in switching from 2.4 to 2.5 and get error "Uncaught TypeError: Cannot read property 'removeEventListener' of undefined"
Little mistake, big impact
With adding "canvas" to the line, everthing works as aspected.
Thanks a lot, Deltakosh!
Myjestic got a reaction from Deltakosh in Change particle System emitRate live
Argh. I was searching for days for this problem.
Now I found it. My particle emitter was a clone of a mesh and that was the reason why nothing happend if I changed the emit rate. Know the emitter is a single mesh and everything works like a charm.
Myjestic got a reaction from Deltakosh in decreasing fps in Corner of meshed plane / free camera
Thanks to all for dealing with this problem.
It tested this and the problem appear even if you switch to wireframe mode.
You are right. This eleminates the fps drop. BABYLON.Mesh.MergeMeshes only works with clones not with instances.
As far as I remember, Deltakosh wrote in another post, that merging instances is now possible. I will search for this post and read it again.
Thanks so far.