We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Annotation hierarchy/z-index

Home Forums General Questions Annotation hierarchy/z-index

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #46040
    web
    Customer

    Does anyone how you can alter the hierarchy/z-index of annotations?

    I’ve got the problem that when multiple annotations are present and I move the perspective so that they overlap each other, some of them dont overlap correctly.

    One would suspect that the annotations get a z-index depending on the distance to the camera. Is there anything you can do via javascript?

    Attached a screenshot

    Attachments:
    You must be logged in to view attached files.
    #46080

    Hi,

    yes, you might calculate the distance to the camera each frame, and assign a proper z-index via CSS property.

    Chief 3D Verger | LinkedIn | Twitter

    #46112
    web
    Customer

    Okay, managed to implement a fix for my needs, via adding different z-index to the annotations when camera is moving.

    Would it be possible to implement that on your side? I think this would be a plus for many verge3d users.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.