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.

Is that possible to spawn object?

Home Forums Puzzles Is that possible to spawn object?

Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #53787
    quintagen
    Participant

    Hi

    I’m looking for a way to spawn an object.

    For example, I have a table in the scene,
    I prepared a list of objects to allow the user to spawn the object on the table.

    Any ideas or related forum? thanks

    Regards
    Dexter

    • This topic was modified 1 month, 2 weeks ago by quintagen.
    #53792
    xeon
    Customer

    you have a few options depending on whats best for your scene.

    You can have the objects preloaded in the scene and hidden and then based on users input place the object where desired and then show the item.

    Alternatively, you can load in a gltf as needed if memory is a concern. See scene loader demo that comes with V3D.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com

    #53794
    kdv77kdv
    Participant

    Hide/Show or Append scene puzzles…

    #53795
    quintagen
    Participant

    Thanks for your reply xeon and kdv77kdv

    I think I will prefer the second way because I will let users choose from 100s of them in the list. Using hide and show might compromise most of the browser, haha

    I did go through the scene loader demo, the only thing I worry about is loading too many of gltf might cause the app too laggy. Did you have any experience with this?

    Regards
    Dexter

    • This reply was modified 1 month, 2 weeks ago by quintagen.
    #53804
    kdv77kdv
    Participant

    I think I will prefer the second way because I will let users choose from 100s of them in the list

    I think it’s a questionable solution. You’ll have to create many separate .glTF files…

    I prefer hide/show puzzles. In one of my apps I use ~600 objects, ~200 ones are shown simultaneously, the rest are hidden. It works with no problems on the old iPhone SE even with SSAA 2x enabled (it doubles the count of rendered tris and render calls). Depends on models complexity and the amount of big textures…

    #53824
    quintagen
    Participant

    Thanks, kdv77kdv to share your experiences, I am willing to try using hide and show.

    Using scene loading, the only thing I worry is every time user appends the scene, it will take time to load, UX is not that good.

    I have another question, how did you deal with selecting the duplicated object? I currently facing a problem if I duplicate an object, and I try to use “Picked Object” puzzle to select the second object. Sometimes it will select the first object instead because the component name is the same for duplicated object

    #53828
    kdv77kdv
    Participant

    how did you deal with selecting the duplicated object?

    You mean cloned objects? Objects names can’t be the same, they always differ…

    https://v3d.net/92u

    to select the second object. Sometimes it will select the first object instead

    do not use x-ray in the when clicked puzzle

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