Replies: 1 comment
-
Ok I got this to work, it seems if lightning is not set to ![]() As a final step, I would like to be able to show just the outline of the model, without the model itself, so that I can move the model silhouette along the map. Anyone knows how I could do this? I would like to get some similar result to what can be seen in this CesiumJS examples |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to be able to highlight the border of a 3D model loaded in a
ScenegraphLayer
.My idea is to use the inverse hull technique:
ScenegraphLayer
instances for the same object: one with the model, another one for the outline.This partly works out of the box, setting these props for the second
ScenegraphLayer
(the one used for the outline)However, even if this kinda works, the border is not ok, as using the
sizeScale
prop to make the solid layer bigger is not the right approach. Instead, the vertices should be extruded along their normals. I try to do this with a custom shader, injecting the following code onvs:DECKGL_FILTER_GL_POSITION
However, this seems to move the model upwards, not make it bigger.
Can someone help me to understand why this is happening?
Beta Was this translation helpful? Give feedback.
All reactions