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.

hide objects that are not visible/obscured

Home Forums Puzzles hide objects that are not visible/obscured

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #50436
    zottelbock
    Participant

    Hi,

    i want to show/hide an html-element dependent on wheter an 3D-object is currently obscured or not. Similar to the functionality of annotations.
    It should be so that the html-element is shown/hidden in realtime when the 3D-Scene is rotated by the user and specific objects of that scene are obscured / not obscured.

    Is there a simple way to do that?

    I tried doing so with the “is visible -Puzzle” but cant get it to work.

    Thanks a lot.
    J :bye:

    #50447

    hi,

    you can probably employ the raycast puzzle for this purpose

    Chief 3D Verger | LinkedIn | Twitter

    #50530
    zottelbock
    Participant

    Hi Yuri,

    thanks for your answer. I tried using the raycast-puzzle but i cant really wrap my head around how to make it work. Do you have any hint?

    #50614
    zottelbock
    Participant

    hi,

    you can probably employ the raycast puzzle for this purpose

    Currently my puzzle looks like this: (see attatched screenshot)

    I want to send a ray from the camera in the direction of a specific object (in this case “Empty_Display”). When the first object in the list is the object “Empty_Display” this means that it is visible, if it is not it means it must be obscured by something else. Thats my thinking so far.

    It works when i use the cameras direction however i cant manage to send the ray in the direction of a specific object. But that would be neccesary to duplicate the final puzzle and check for each object in scene wheter it is obscured or not.

    So my question is: How can i send a ray from camera in the direction of a specific object?

    (in the final app i want to have the functionality as in the oppo find x2 example thats made with v3d: https://www.oppo.com/de/events/find-x2-pro-vodafone/ )

    Attachments:
    You must be logged in to view attached files.
    #50802
    zottelbock
    Participant

    Does nobody have an idea? :unsure:

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