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.

Repeat object dynamically for the width & height of an object.

Home Forums General Questions Repeat object dynamically for the width & height of an object.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #47179
    mrmac
    Participant

    Hello

    I’m not sure where this fits into the forum topics.

    I’m trying to figure out the logic to achieve something similar to the hole calculator by Dynamaker

    This outputs a hole pattern over an area’s width & height dimension.

    I’ve attached the project files
    I’ve managed to make an object repeat but its not dynamic.

    Can anyone suggest how I can approach this? is it possible with puzzles?

    #47180
    mrmac
    Participant

    Heres the project file .zip
    https://jmp.sh/yQc2Syr

    #47332

    I can’t download the file it’s stuck on 0%.

    Co-founder and lead graphics specialist at Soft8Soft.

    #47396
    mrmac
    Participant

    Try this link
    https://jmp.sh/uvdkOyj

    #47434

    Use this setup. Put in I amount of cloned objects, not the length to offset.

    Attachments:
    You must be logged in to view attached files.

    Co-founder and lead graphics specialist at Soft8Soft.

    #47541
    mrmac
    Participant

    Well… this is driving me crazy, seems so simple.

    I can create an array and clone a set of objects on X and Y positions. This gives me a single column array and a single row array, but I cant seem to clone an array and have it repeat the object on a new position.

    When I clone an array with JSON.stringify/parse, it only seems to show in the console.

    I think I need create an empty 2d array / grid matrix that can take varying lengths for the rows and columns.
    Then clone and append object to each cell.

    I think I also should move the object to centre in Blender and clone objects L&R / T&B so they clone centred.

    I also need to be able to adjust the X&Y distance between each object.

    I’m pretty much at the bottom of Mount Everest at this point.

    updated source files:
    https://jmp.sh/eNCdKul

    • This reply was modified 1 month, 3 weeks ago by mrmac.
    #47696
    mrmac
    Participant

    I ended up remixing the code from the Dynamic instancing example of the instancedMesh to run as an external JS function to copy the objects, they will all have the same material so this suits my case

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