What would be the best way to get an array of random coordinates from a seed value?
Hello, i'm currently developing a procedural environment algorithm, i've figured out most of it, like noise functions and what-not, but, i can't seem to find a way to get just an array of random coordinates from a seed, what would be the best way to achieve this? Also the array would need to have a limit and a radius, but, these are details.
asked Apr 29 '18 at 08:08 PM in Blueprint Scripting
If you need something relatively simple, look into Random Streams - it's a seeded number generator
Here's another useful node: http://api.unrealengine.com/INT/BlueprintAPI/Math/Random/RandomPointinBoundingBox/index.html
If you need something a bit more sophisticated, 4.17 introduced random sobol generators:
Search here for New: Sobol Blueprint and Material Nodes to see the examples.
answered Apr 29 '18 at 10:00 PM
There are a couple ways of doing it. This is how I did it, but I wanted objects to be random areas on the landscape, so I used a collision trace for each random coordinate, to give me the exact world-space location. It looks a bit complex at first, but just continue to study it piece by piece and you will understand it to make your own variations in no time.You can also use a box collision and have your random coords be within that box.
Hopes this helps...
answered Apr 29 '18 at 09:29 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here