I have been searching the internet after finding numerous discussions on how to use “noise” in a Material BP to create random colours or textures. Now, with the understanding that noise *may have the ability to *output a random number, I am hoping someone may be able to give me some insight into how this may be used…
Here is my current idea/logic:
In the image above, it has the facility to use the “A” input (currently empty) to trigger the selection, for which I require a random number. Once I have this (if it’s possible) the “if” statement should trigger the choice of one image of another.
I have found all sorts of iterations which rely on noise to generate random images and patterns, even to generate moving textures which mimic fluids. I think my idea may be even simpler, in the fact that if noise generates a random number, I should be able to tack on some numeric functions (ie. add/subtract/multiply/divide) which will bring the value provided by noise up to a level that I can attach it to the “if” statement, and somehow select between the two textures. (Even if it’s not a strict integer, applying mathematical functions should be able to give me a good starting point.)
Is there a “Noise Guru” here, who may be able to assist? I would very, very much appreciate it!
DISCLAIMER: Yes, I am aware I could do all of this through standard blueprints. I just have a bunch of textures of broken glass that are all the same resolution, which I would much rather not have to create a material for each, if possible. I believe the above would help immensely to reduce the amount of work I’ll need to do to get this in a format I’m hoping for. (I would prefer not to have to write code for an array, as I should just be able to drop the newly created code (hopefully!) into a different material blueprint for the same effect. (My current idea is to use the same format for random posters, pictures and monitor/screen displays. I do realize that I may have to create multiple branches of the “if” statement, dependent upon the number of selections, but I am thinking if I get the good starting point, I may be able to wrangle a way around that as well.)
THANK YOU in advance for any ideas!