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.

Random textures

Home Forums General Questions Random textures

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #11492
    feraud
    Participant

    Hi

    Is there a way to apply random textures using Verge3D anytime you start the application?

    Say we have a cube and 6 textures in the scene. Anytime you start the app the textures are applied different one for cube side. Is it possible?

    Thanks

    #11497

    Say we have a cube and 6 textures in the scene. Anytime you start the app the textures are applied different one for cube side. Is it possible?

    Yes. At first you need to create a material with empty texture slot where you will put randomly pcicke texture. THen you need to add all textures (path to textures) in List and then just pick randomly with puzzle Random Integer and Get fro List random texture and load it to the material’s texture slot that you prepeared with Replace Texture puzzle. And all this you need to do on the applciation startup.

    Co-founder and lead graphics specialist at Soft8Soft.

    #11524
    feraud
    Participant

    Nice. Easier than I thought. Thanks, Mikhail

    #15244
    Anonymous
    Inactive

    howto make empty a texture slot in blender? how do you mean empty texture slot. is it material without image texture node? or you mean texture node without a image name?

    #15247
    Anonymous
    Inactive

    I try to do exact that logics for random textures on click. I have trouble to find the textures path if they are not added into the blender materials. They are not visible in pluzzles. So how do I generate a list of images for “empty texture slot”?.

    #15248

    So how do I generate a list of images for “empty texture slot”?.

    You need to create a texture slot with dummy texture, it can be a one pixel texture for example and you can chage that texture to any other using puzzles, but at first you need to put it something inside your material so the engine will know where to change a texture.

    Co-founder and lead graphics specialist at Soft8Soft.

    #15249
    Anonymous
    Inactive

    hmm….I am using “custom_image” demo for my test and I see that there is kind of dummy image slot. let I say I want to put instead of your dummy image my set of images (list).But they do not appearing in puzzles, so I can’t create any list. Do I forget something?

    #15250
    Anonymous
    Inactive

    or maybe I should create special directory for random images ? and give the path with some logics(which?)…I am confused. Or maybe it is better to create a hundred of materials and change them on click? What is better, how can it looks like in puzzles?

    #15263

    let I say I want to put instead of your dummy image my set of images (list).

    You can’t just put a list of images into an image slot. You need to create a dummy image slot inside the material, then in Puzzle editor create a list of the images you want to replace and then just create a random number (for example on click) from 0 to amount-of-images and use this number in In-List-Get puzzle to get random image from this list and use this with Load Texture puzzle to load the image into material. Puzzle setup will be the same for randomizing image inside one material or choosing one material from multiple amount of already made materials, but the first will be easier and optimized.

    Co-founder and lead graphics specialist at Soft8Soft.

    #15273
    Anonymous
    Inactive

    i understood. This is what I did, I created dummy texture. But creating list of my set of images in puzzles is not possible, because they are not recognized and not read from the directory. so I can’t choose them all and add to the list. So I stuck at that point.

    #15283

    But creating list of my set of images in puzzles is not possible, because they are not recognized and not read from the directory.

    You mean you get a error when you load them or you just can’t know the exact name of each texture?

    Co-founder and lead graphics specialist at Soft8Soft.

    #15284
    Anonymous
    Inactive

    i know names of my 100 textures: DS0049xxx.png. I put them to project folder But they not appear in puzzles. Only textures apears which are added to materials in Blender.

    #15285

    Only textures apears which are added to materials in Blender.

    They will not appear anywhere in the puzzles you will need to type them by hand with a path in text puzzle.

    Co-founder and lead graphics specialist at Soft8Soft.

    #15287
    Anonymous
    Inactive

    oh…that bad news

    #15295

    You can generate list of images and save it in txt file then read it to a kist with special read from file puzzle.

    Co-founder and lead graphics specialist at Soft8Soft.

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