2022-07-01 at 5:29 am #53787
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
2022-07-01 at 6:58 am #53792xeonCustomer
- This topic was modified 1 month, 2 weeks ago by quintagen.
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.
Route 66 Digital
Interactive Solutions - https://www.r66d.com2022-07-01 at 10:03 am #53794
Append scenepuzzles…2022-07-01 at 10:11 am #53795
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?
2022-07-01 at 11:38 am #53804
- This reply was modified 1 month, 2 weeks ago by quintagen.
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…2022-07-03 at 6:11 am #53824
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 object2022-07-03 at 12:45 pm #53828
how did you deal with selecting the duplicated object?
You mean cloned objects? Objects names can’t be the same, they always differ…
to select the second object. Sometimes it will select the first object instead
do not use x-ray in the
- You must be logged in to reply to this topic.