Home › Forums › General Questions › geometry instancing
- This topic has 8 replies, 7 voices, and was last updated 2 years, 10 months ago by web.
-
AuthorPosts
-
2020-07-09 at 1:40 pm #29891core3dCustomer
Hello,
I’m trying to populate scene with lots of intanced object for optimal performance. When i instance geometries in 3ds max, verge3d won’t see them as instance and assign geometry buffer for each geometry but when i clone objects in verge3d with clone object puzzle, geometry buffer really low and both examples have same draw calls.My question is, is there any difference in bufferGeometryInstance and clone puzzle, because in verge3d example there are 1000 objects with 1 draw call.
If so how can i implement this code to runcode section in my app js file or is there a method to instance geometries with puzzles?https://threejs.org/examples/?q=instanc#webgl_instancing_performance
2020-07-09 at 4:33 pm #29911jemCustomer@core3d, I have seen the same behavior with instances coming from 3dsMax. From Max, it seems that Verge3D exports each instance as a unique piece of geometry. This behavior makes the .bin file bigger and can bog down the client.
On the other hand, when I instance geometry in Blender, the instances all share one geometry buffer. I have attached a screenshot of 100 Suzanne instances created in Blender. They all share the same mesh in Blender. You can see that there are only three geometry buffers in Verge3D (the camera and light are the other two objects).
I don’t have an answer for you. I assumed that I was making a mistake with my model in 3dsMax. I, too, would like to know how to get Verge3D to get object instances in 3dsMax to share geometry buffers.
Jeremy Wernick
2020-11-06 at 10:46 am #35085webCustomerI would also up this question. How can we achieve geometry instancing via 3dsMax?
2020-11-13 at 8:22 am #35302jamjamCustomerMy current project also requires a lot of instanced objects. I´m also interested how this can be achieved.
2022-01-05 at 4:23 pm #48468thorsten moehleCustomerHi There Happy 2022!
I tried to instance with loading an external js without luck…
Seems I cant get tis to run.Anyone out there might could support with an example puzzle and files needed to get the result as shown in:
https://cdn.soft8soft.com/demo/examples/index.html#webgl_instancing_performance
Thank you in advance!
2022-01-05 at 4:50 pm #48470xeonCustomerI don’t believe you can achieve the instancing using you are seeing in this demo using any 3D app and the base puzzles that come with Verge3D. This can be achieved using three.is which Verge3d is based on.
Items cloned/instanced in a 3D package like Blender, Maya or Max would need to be baked prior to gltf export.. defeating the purpose of the clones/instances.
If you decide to use the native cloning puzzles in Verge3d you will find it’s really a copy creating more geometry and additional draw calls.
Hopefully one day this is a true clone process.However with some JavaScript and direct modification or plug-in you can access three.js from within Verge3d to make this work.
Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com2022-01-05 at 5:35 pm #48471thorsten moehleCustomerHi Thank you for the fast reply!
Exactly i tried to load three.js and using the function .clone() but without success.
i should be possible but i did not make it right.
But i’m sure someone did that already
2022-01-06 at 8:05 am #48487Yuri KovelenovStaffhi,
you might look into this plugin for Verge3D
2022-01-19 at 11:15 am #48731webCustomerI managed to get instancing with 3dsMax and pure js running:
-
AuthorPosts
- You must be logged in to reply to this topic.