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.

geometry instancing

Home Forums General Questions geometry instancing

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #29891
    core3d
    Customer

    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

    #29911
    jem
    Customer

    @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

    #35085
    web
    Customer

    I would also up this question. How can we achieve geometry instancing via 3dsMax?

    #35302
    jamjam
    Customer

    My current project also requires a lot of instanced objects. I´m also interested how this can be achieved.

    #48468
    thorsten moehle
    Customer

    Hi 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!
    :good: :good:

    #48470
    xeon
    Customer

    I 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.com

    #48471
    thorsten moehle
    Customer

    Hi 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 :-)
    :wacko:

    #48487

    hi,

    you might look into this plugin for Verge3D

    [ GLIFTEK ] Plugin Pack: OBJECT MANAGEMENT

    Chief 3D Verger | LinkedIn | Twitter

    #48731
    web
    Customer

    I managed to get instancing with 3dsMax and pure js running:

    Instancing by JavaScript

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