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.

VR general behavior of unloading .gltf

Home Forums General Questions VR general behavior of unloading .gltf

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #85753
    visualizer
    Customer

    Hi
    I noticed some strange thing in a VR scene created with Verge.
    As usual when we append .gltf and unload it with some interaction it works well. No issues.

    But when I append .gltf in scene and grab it then it doesnt unload at all. Why is this happening?
    Does it need some additional puzzle setup ? or am I missing anything in it?

    • This topic was modified 2 months, 2 weeks ago by visualizer.
    #85758

    Hi,
    Could you please elaborate a bit that happens in the second scenario. You grab some object from the appended scene with a VR controller?

    Soft8Soft Tech Chief
    Want more Verge3D updates? Follow me on X, Facebook, or LinkedIn

    #85760
    visualizer
    Customer

    Yes.
    When I grab the object with controller ( the grabbing happens proper no issues ) then later it doesnt unload from the scene.
    If I do not grab it then it unloads properly.

    #85769

    I see, need to check :scratch:

    Soft8Soft Tech Chief
    Want more Verge3D updates? Follow me on X, Facebook, or LinkedIn

    #85830
    visualizer
    Customer

    Yes Alexander. Plz. check.
    looks like something needs to be addressed.

    #85840

    Hi,
    I managed to reproduce this issue. However it appears to be a correct behavior. If you unparent your object from the controller inside the “squeezeend” event, you should return it back to the scene whence it was located originally, not to the “root” scene (which is selected when nothing is specified in the “parent” object).

    So instead of this:

    You should use something like this:

    Soft8Soft Tech Chief
    Want more Verge3D updates? Follow me on X, Facebook, or LinkedIn

    #85856
    visualizer
    Customer

    Question –
    This my_awesome_app2.gltf file you mentioned is the main scene file or the appended scene file which is a specific added object upon interaction.

    Step
    I create a variable “picked” and it needs to be parented to .gltf…
    but qiestion is the puzzle dosnt allow to select the .gltf scene. How to manage this as per screenshot?

    How the object choosing option allows to select teh .gltf scene?

    • This reply was modified 2 months, 1 week ago by visualizer.
    #85860
    visualizer
    Customer

    I am wondering how come you are getting the “parent to object” puzzle with empty socket at the end ?

    What I see in puzzle library is “parent to object” with none already which doesnt allow to select .gltf.

    Attachments:
    #85867

    Hi,

    “my_awesome_app2.gltf” is the appended scene. By default, if the alias option is not provided, the scene name would be the same as the loaded URL and this scene can be selected in Puzzles as text field. If you wish you could select some other value for the scene name.

    Once the “append scene” puzzle finishes, the scene is appended to the root scene as its child, hence the objects that are located on that (“appended”) scene would have it as their parent. This is why when you do parent some object from the non-root scene and wish to unparent it, it should be parented back to the actual scene, not the root scene, hence specifying empty for the “parent” puzzle is not OK.

    Soft8Soft Tech Chief
    Want more Verge3D updates? Follow me on X, Facebook, or LinkedIn

    #85878
    visualizer
    Customer

    Hi
    Alexander,
    Yes got it. actually when I saw your image I was thinking of putting a text puzzle but the thing marked in image confused me.
    There is an object selection indication shown in yoru puzzle and I was wondering how an object selection can allow to select the scene name?

    I added the text puzzle with name. That should work fine with the scene name I believe.

    Once the “append scene” puzzle finishes, the scene is appended to the root scene as its child, hence the objects that are located on that (“appended”) scene would have it as their parent. This is why when you do parent some object from the non-root scene and wish to unparent it, it should be parented back to the actual scene, not the root scene, hence specifying empty for the “parent” puzzle is not OK.

    Yes correct. somewhere I was thinking thi scould be the possibility but you explained it well.
    Understood ! :good:

    • This reply was modified 2 months, 1 week ago by visualizer.
    Attachments:
    #85909
    visualizer
    Customer

    Alexander,
    I tried something else & surprisingly worked well as of now. That is “remove object” puzzle.
    It works as expected as of now.

    I did try your tip once -twice. didnt work may be because I missed something in puzles.
    I will try again but is that “picked” you showed just for reference? or that variable needs to be created for picked object?

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