Search the Community
Showing results for tags 'highlightlayer'.
-
Hello, I run into three questions when I use BABYLON.HighlightLayer. The first question is:I create two planes that are very close to each other ,and I set useLogarithmicDepth=true to avoid z-fighting。But when I set HighlightLayer on the farside plane,the nearside plane looks flickering:https://www.babylonjs-playground.com/#2A2DG0.How can I avoid this flickering? Secondly,when I distance the distance between two planes,there still is a hightlighted edge on the nearside plane.How can I remove the Unwanted edge? Third,how can I adjust the thickness of the hightlighted edge? Thanks!
-
Hello together, in PG https://www.babylonjs-playground.com/#1KUJ0A#104 you can see an default scene with an additional sphere outside the view (sphere_boycott) with renderingGroupId=1. Until now all looks good. If you focus the rendering window/side and press 'cursor key down' to get an larger distance with the actual camera position - or rotate the view to the right side - the added sphere will be shown and the tittled glow-effect fills up the whole sphere. I think, this is not the expected behavior?! Are more information needed? regards and thank you all for the great work and help edit 3 -- (start additional information) there is anonther (for me) unexpected behavior: in PG http://www.babylonjs-playground.com/indexstable#B73AIM (opacity on HighlightLayer) are 2 more cases, where the HL not correct works: The 1st 2 spheres are from an material example. there, the 2nd (middle) and over that the 3rd (right) added from me (example 1) has an opacityTexture (tree) over the grass diffuseTexture - both don't show the HL the 4th sphere (front) is added like the sides of the cube with dog-puzzle-piece, the tree.png with hasAlpha=true and looks beautiful, like expected. -- (end additional information) Edit (link string to link) Edit2 (2nd try) Edit3 (additional information about 8hrs after post) ... thanks for reading
-
After highlighting a layer... what is the best way to remove that highlight? In other words: after addmesh() to a highlight layer, is there a remove mesh? Looking in docs, code and playground... . For example: hover toggle highlight. Falcon deep-dives... into deglow. Thx.
-
I've added a bounding box on a plane (with AdvancedDynamicTexture) to demonstrate a culling issue I am having. This plane, which does not block other meshes or skyboxes is mysteriously blocking the HighlightLayer. Wondering if anybody knows what I am missing: http://www.babylonjs-playground.com/indexstable#E0WY4U#18
-
Hi, Setting a renderingGroupId on a spritemanager breaks the highlightlayer feature for the whole scene. I have this bug in 2.5, but it is reproducible in the current playground: spritemanager without renderingGroupId, everything is fine (see picture 1): http://www.babylonjs-playground.com/#E3D3Y#6 Result as expected: setting a renderingGroupId on the sprite manager, all highlights break and are now filling out the highlighted objects: http://www.babylonjs-playground.com/#E3D3Y#5 The only change is line 114 is now commented in, the result is the unexpected and undesired filling of all highlighted objects: Note: This is not about the interaction of sprites with the highlight layer (the whole sprite in front of a highlighted object gets colored) this is only about highlights breaking that are no where near the sprites when the spritemanager has a renderingGroupId. Any workaround would be great. For my game I need some effect sprites to render above all 3d objects and I also use the highlight layer - this is not possible right now.
- 2 replies
-
- highlightlayer
- spritemanager
-
(and 1 more)
Tagged with:
-
As per title. Clones work fine, but trying to add an instance makes BJS throw an error.
- 2 replies
-
- babylonjs
- highlightlayer
-
(and 1 more)
Tagged with: