by Yahwho | Aug 9, 2022 | Java
Some basic math to calculate Weeks, Days, Hours, Minutes, and Seconds from a given time in milliseconds. Super useful for process timing. public String getElapsedTimeString(long milliseconds){ int seconds = (int) (milliseconds / 1000) % 60 ; int minutes = (int)...
by Yahwho | Nov 30, 2021 | Java, SQL
I’m continuing to work on my Medieval Realms project and one of the obstacles I’m faced with at the moment is the storage and retrieval of large amounts of data. My initial test application which consists of approximately 410,000 data sets using a single...
by Yahwho | Nov 23, 2021 | Java, Mathematics
Since learning about Simplex Noise and how to use it I’ve started researching Voronoi Tessellation. Voronoi Tessellation is fancifully defined as: Let be a metric space with distance function . Let be a set of indices and let be a tuple (ordered collection) of...
by Yahwho | Sep 29, 2021 | C#, Java
FirstFunction() || SecondFunction() true || SecondFunction() true FirstFunction() && SecondFunction() false && SecondFunction() false...
by Yahwho | Sep 15, 2021 | Java
Over the last few months I have been working with noise generation algorithms. My latest of which is a resampled noise heightmap which builds on from my learnings from Experimenting with Simplex Noise in Java. I have added a colour spectrum to help visualise the...
by Yahwho | Aug 7, 2021 | Java
Continuing on from Experimenting with Perlin Noise in Java I decided to take a look at different noise generation algorithms. In doing so I came across Simplex Noise defined as “a method for constructing an n-dimensional noise function comparable to Perlin...