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.

Make custom annotation fade when obscured

Home Forums Puzzles Make custom annotation fade when obscured

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #77177
    gee
    Customer

    Hi, i actually made a reply on this post asking the same question but I guess I’ll make a new topic since I haven’t get a reply.

    So, I made my custom div that shows dialog on hover, cool.
    The thing is, when I rotate the object the custom div is still hover-able.
    I want it to behave like the on-click annotation where it fades and not clickable. I’ve dive in to the user manual and found out about .fadeObscured so I thought putting my custom div into that class will solve the problem?

    I’m not a coder so I tried to look up on how to do it but the stuff I tried just didn’t work so how do you do that? Do I need to use puzzle or code it directly to the .js file, or is there any better way to achive the result I wanted?

    Thanks!

    #77196

    You need manually hide them on click on any of the object on your scene like this.

    Instead of the “name_of_your_annotation” put ID of your annotation or the list of ID’s.

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

    Co-founder and lead graphics specialist at Soft8Soft.

    #77220
    gee
    Customer

    Thank you for the reply,

    but, does it have to be apply on click? I’m trying to do it exactly like the orange button (.gif attached); change color and unclickable when obscured by other object (in my case make it not hoverable).

    i’m thinking, if it’s possible to know if an object is in front of the camera or not (hidden behind other object), i can just change the style property by using the logic puzzle. is it possible with the puzzle?

    Attachments:
    You must be logged in to view attached files.
    #77281
    gee
    Customer

    would be nice to get a solution for this :scratch:

    #77283
    qiangge
    Participant

    class Newnnotation extends v3d.AnnotationControl {…}

    Attachments:
    You must be logged in to view attached files.
    #77285
    qiangge
    Participant

    Only plugin puzzles

    Attachments:
    You must be logged in to view attached files.
    #77293
    gee
    Customer

    Only plugin puzzles

    perfect! this is exactly what i want to do!

    may i ask where do you get the first two puzzles? the purple ones. do i need to make a custom div like in this post ?

    thank you so much for responding by the way, been stuck with this for weeks now..

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