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 Object Puzzle not working?

Home Forums Graphics / Blender Hide Object Puzzle not working?

  • This topic has 5 replies, 2 voices, and was last updated 9 months ago by kdv.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #71907
    jefferywright
    Participant

    I have an object that is clearly an object.
    Blender Object

    In Puzzles it does not show this as an object, but something else…
    Not working, not an object?

    Everything else in the function works but my object remains visible if the Hide puzzle is contained in the When Loaded slot of an Append Scene function.

    The Hide function works when it is not contained within the When Loaded slot of an Append Scene function… what could the issue be?
    this does work, why?

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

    Interactive Multimedia and Visual Design
    https://jefferywright.com/

    #71914
    kdv
    Participant


    It’s a group of meshes (a multi-material mesh).

    It’s hard to figure out what’s wrong without your files.

    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.

    #71916
    jefferywright
    Participant


    It’s not a hidable mesh. It’s an empty.

    Right, but as you can see in Blender, it is an object, not an Empty, what can explain this?

    The Hide puzzle does hide engCoverPort if the Append Scene is disabled.

    Interactive Multimedia and Visual Design
    https://jefferywright.com/

    #71917
    kdv
    Participant

    Right, but as you can see in Blender, it is an object, not an Empty, what can explain this?

    It’s a group of meshes, a multi-material mesh. That’s how meshes with several materials are exported to glTF.

    As for hiding issue, share your app for testing. Guessing won’t much help. The hide puzzle is very simple in code and it won’t work only in two cases: 1) the specified object’s name is not found in the scene; 2) there are two (or more) objects with the same name (for example, the second one came from an appended scene) and the puzzle found the one that wasn’t expected first.

    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.

    #71970
    jefferywright
    Participant

    One mystery solved:

    Actually, the puzzle was hiding engCoverPort as intended, which is indeed an Object and not an Empty even though it has an Empty symbol in puzzles for some reason, still no explanation.

    The problem was, in the model I am loading and unloading, I have a copy of the engCoverPort object in it, used for placement and Hidden, but it exported to the gltf and appeared when the model loaded making it seem as if engCoverPort was not being hidden… holy crap. This explains “The Hide puzzle does hide engCoverPort if the Append Scene is disabled.”

    Removed it from the loading model and now works fine, in spite of puzzles showing engCoverPort as an Empty, that must be a bug because it hides just fine.

    Interactive Multimedia and Visual Design
    https://jefferywright.com/

    #71971
    kdv
    Participant

    in spite of puzzles showing engCoverPort as an Empty, that must be a bug

    It’s not a bug, it’s a multi-material mesh which is actually a group of meshes (one mesh – one material). In three.js a group is actually an empty object, just a parent for other objects.

    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.

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