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.

A puzzle for duplication

Home Forums Puzzles A puzzle for duplication

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #66993
    visualizer
    Customer

    Hi

    Since I am working on industrial subjects I found that some times geometries are repeated in large quantity in scene. example – a screws or nuts/bolts. Duplicating technique saves on file size & also loading time.

    There is a typical way to duplicate them by using the “Duplicate puzzle” However it has its own limitations & is also challenging.

    Can we have a facility to duplicate the object at several places at once by choosing the empty or a dummy place holder in the scene instead of duplicating by giving X,Y & Z positioning?

    for instance, the way “parent to” or “snap to” object works.

    Ref image – how can I duplicate the screw at all those empties at once or quickly without playing much with longer combination of puzzles.

    • This topic was modified 7 months, 1 week ago by visualizer.
    Attachments:
    You must be logged in to view attached files.
    #66997
    kdv
    Participant

    I’ve just described how InstancedMesh works )))

    Can we have a facility to duplicate the object at several places at once by choosing the empty or a dummy place holder in the scene

    You have it. But you don’t use it.

    You could easily do the job this way

    Duplicating technique saves on file size & also loading time.

    You are free to use linked copies (Alt+D instead of Shift+D) in Blender with the same result.

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #67012
    kdv
    Participant

    Also with the help of batch geometry you can reduce draw calls count to 1 after cloning

    https://v3d.net/e6p

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #67058
    visualizer
    Customer

    Hey
    Thanks for sharing this. I tried and it worked !

    Also as you said creating duplicated in blender by Shit+D or Alt+D will ultimately increase the published file size in both cases. My idea is to keep the actual geometries as less as possible in blender and produce them in large quantity by puzzles when published file is loaded.
    Example a one screw conveyor unit has about 200-250 screws & nuts. not really advisable to make in blender. So make one set use place holders at different locations & reproduce them upon loading published file.

    #67059
    visualizer
    Customer

    Also one more thing here,
    the duplicating by creating a variable & puzzles keeps them in single constant orientation. i.e. static state. ( I guess ).

    This would bring completeness if future version of verge provides some feature for
    1. Ability to change each clone’s orientation as per place holder’s orientation. Tilted or angular ( static ) &
    2. Ability to keep dynamic synch with place holder’s position & orientation ( animated / dynamic )

    • This reply was modified 7 months, 1 week ago by visualizer.
    #67062
    kdv
    Participant

    creating duplicated in blender by Alt+D will ultimately increase the published file size

    Wrong opinion. Shift+D and Alt+D are two big differences.

    One cube -> 0.92 mb
    https://drive.google.com/file/d/1XL3EBiIsZzcE4FVbZ8Lvs1cSXlMZVWko/view?usp=sharing
    296 linked copies (Alt+D) -> just 0.99 mb
    https://drive.google.com/file/d/1lWTZfQCadazOIpXjJyHSow95Z0Fa7rkv/view?usp=sharing

    296 non-linked copies (Shift+D) -> 184 mb
    One cube with 296 empties -> the same 0.99 mb

    the duplicating by creating a variable & puzzles keeps them in single constant orientation. i.e. static state.

    No. Clones can be moved/rotated/scaled as any other object in the scene. If you didn’t apply batch geometry to them after cloning.

    Ability to change each clone’s orientation as per place holder’s orientation

    It’s already working this way https://v3d.net/e6p
    Position/rotation/scale of each clone will be defined by the transforms of its place holder (applied in Blender or in Verge3D) when snapped.

    Ability to keep dynamic synch with place holder’s position & orientation

    Just parent clones to their place holders after snapping.

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #67647
    visualizer
    Customer

    yes ! Indeed
    Alt+D really helps well & keeps file size very limited. I had a wrong assumption.
    And once its Alt+D them animated clones also work well.
    :good:

    #67775
    visualizer
    Customer

    Hi
    Guys
    In addition to above thread I found one more thing along with Alt+D that Blender’s Geometry nodes is also producing very light duplication however. it is not reflected in V3D published file.
    Is there any chance that V3D supports it by any tricky ways or some adjustments?

    #67780
    kdv
    Participant

    V3D supports exporting instances created with Geometry Nodes.
    Ctrl+A -> Make Instances Real
    It works since Blender 2.92

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #67793
    Crunch
    Customer

    KDV – say I use the ‘create text object’ puzzle that iterates through a big text list with the result being a bunch (~20-40) newly added text objects (10-30 characters each) to my scene.

    Seems pricey too me, particularly because they don’t need to remain dynamic (no plans to have to change text in any of them after scene initialization) … how would one go about properly ‘baking’ / ‘batching’ them together after created via the ‘create text puzzle’?

    #67797
    kdv
    Participant

    Add them to a list (array) and try to apply “batch geometry” to that list (like here). But there is one little problem: “create text object” is an async function and you need to wait for the last object to be created before geometry batching.

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #67854
    visualizer
    Customer

    V3D supports exporting instances created with Geometry Nodes.
    Ctrl+A -> Make Instances Real

    Yes real instances does work perfectly.
    :good:

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