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 a clipped object permeable?

Home Forums Graphics / Blender Make a clipped object permeable?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #55614
    Pascal
    Customer

    Can I set up an object so that it is permeable for click- and hover-events, so the underlying objects get triggered?

    In my use-case right now, I have an outside object, that is being clipped away by a clipping plane, so that several inner object get visible. But the when-hover or when-clicked events on these inside objects don’t work. I have to hide or delete the outside object in puzzles, then it works as expected, but that would mean I have to leave out the clipping functionality. Before I do so, any suggestion is very welcome!

    #55615
    kdv
    Participant

    Try to use x-ray option

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #55629
    Pascal
    Customer

    You are right, I can activate the x-ray option on the inner objects events. But then, the event is triggered always. I need it to be triggered only when the inner objects are visible. The not clipped part of the outer object should block the trigger.
    See the example screenshot. The event on Suzanne should only be triggers when clicking on Suzanne (gray) but it also gets fired when clicking on the golden cube in the area where Suzanne is hidden by the cube.
    I understand that my question was missing this information. Just making the box permeable is not what I actually need. it needs to be permeable only where it is clipped away. Could that work somehow?

    Attachments:
    You must be logged in to view attached files.
    #55631
    kdv
    Participant

    Try raycast puzzle

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #55637
    Pascal
    Customer

    Thanks again for the good idea, but unfortunately the golden cube gets always hit by the ray, no matter if it is clipped away or not. So I cannot use the intersections array to determine if the cube is visually covering Suzanne or not.
    Or am I missing something here? :unsure:

    #55677
    Pascal
    Customer

    Are these conclusions right for now?

    1. Hover- and click-events can not be triggered (on the visible parts only) on objects which are wrapped by an other object, even if that wrapping object is clipped away by a clipping plane.

    2. Raycast always intersects a given object, even if it is clipped by a clipping plane.

    Thanks for any confirmation or contradiction!

    Attachments:
    You must be logged in to view attached files.
    #55679
    kdv
    Participant

    I think, a clipping plane just makes a part of an object transparent.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #55681
    Pascal
    Customer

    I see. And transparent parts are also hit by raycasts, because the geometry is still there, its just transparent.
    I will change the plan of my app and find an other solution for the functionality we had on our mind.
    Thank you for your feedback!

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