cognitedata / reveal

Cognite Reveal 3D viewer

Home Page:https://cognitedata.github.io/reveal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

More options for styling of highlighted parts

hkot1991 opened this issue · comments

Is there any possibility for changing the stroke width for a highlighted part?
Also is there a possibility for setting the color used to indicate that a highlighted is behind a non highlighted part?
Thinking of the light purple/redish color here:
image

If its not possible now, then is it something that is coming or we can possibly add ourself?

Short answer is no and no. First one is relatively trivial for us to expose since we can set this internally in Reveal. The second part is a little more problematic. Just to make sure I understand, you want to set a different outline color for fragments that are behind opaque geometry? So an object would in essence have two different outline colors, one for what is for normal viewing and another for the parts that are behind opaque geometry?

@christjt sorry for the late reply.

Not sure I understand why the stroke with cannot be changed from a npm-package user🤔

Yes, our issue is that we feel that the overlapp is not visibel enough for the user. I see that there is some improvments that might help there in this: #2248

So perhaps we will wait for this to be accessible and see if its still an issue

Not being able to set the stroke width is simply because we haven't exposed it. (I have added a task for it, so will try to get it in). Note that for performance reasons we add all outlines in a single pass such that setting this stroke width will be global.

What I was referring to is being able to have a different outline color / stroke based on if a the outline is behind other opaque geometry or not. This is conciderably harder to do for us with our current rendering pipeline.

I will look forward to the chnage with setting the stroke width then 😄

And I have spoken to others on my team and we understand that its hard to have different outline color based on how objects are placed. We will wait for the pr mentioned previously to be released and see if there is still the issue of it being hard for the user to see if objects are overlapping.

Thanks 👍