Refracting Water Surface in Unity
- Part 3 in a series about creating a realistic water simulation and renderingRefraction is the physical phenomena that distorts views through the boundary between two transparent materials that have differing refractive indices. Common examples are looking into water or through a lens. This is very easy to achieve with ray-tracing because it closely simulates the physical process of light moving around a scene. Today (2021) ray-tracing can only be done offline or with limited complexity scenes on the latest hardware. Most games today use a technique called rasterization which is much faster but has many limitations.
Creating the Physics of Water Movement
- Part 2 in a series about creating a realistic water simulation and renderingIn this section we are going to look at simulating the movement of the water surface. We model the surface as a 2D grid of particles. These particles then form the basis of a mesh by rendering triangles between them. A particle is modelled as a point in space with a mass and velocity vector. Each particle is connected to each of its immediate eight neighbours. That is four to the left, right, in-front, and behind, then the diagonals.
Physical Simulation of Water
- creating a realistic simulation of water with refraction and caustics in UnitySimulating water has been a nerdy hobby of mine for a long time now. My first attempts were on the game Downstream Danger back in 1985. There were a few pre-defined animations for waterfalls and streams. In 1999 I got into DirectX and 3D games development on Windows. I started a game with the working title of Microcosm, but unfortunately I never got it completed. It had landscapes comprised of fractal mountains with simulated erosion.
- Searching for and finding randomessGetting real randomness in computers is quite hard. Most randomness is pseudo-random using some algorithm to create predictable but random looking output. In the early days these could be simple linear-feedback shift register approaches such as those used in early 8-bit computer sound chips like the Texas Instruments SN76489 that I used on the Memotech MTX. Nowadays we use more complex approaches but without some real randomness they are still predictable.
Fractal Nature of Life
- What are the properties of life?I do a lot of walking in the countryside, and it was on one such walk earlier this year, that I stopped to take in the vista shown below. It was late autumn/fall, and due to a combination of a hot summer, and recent fine weather, the golden foliage had not fallen as yet. As I allowed myself to become absorbed in the structure around me, I was thinking about how nature creates such rich and beautiful scenes.
Frequency Analysis of Fractals with Fourier Transforms
- Exploring the characteristics of various fractals using frequency analysis techniques.Fractals, by definition, have patterns that occur on many scales. This scaling can be in either the time or spatial dimensions. Because patterns repeat, and those patterns occur with different frequencies, due to their scale, they ought to be amenable to analysis by Fourier transforms. Fourier transforms are an efficient technique for decomposing a signal in the time or spatial domain into the frequency domain. So, for example, if a recording of music were put through a Fourier transform, the result would be the musical notes that constituted it, as well as all the harmonics of the instruments that played it.
FitBark / Comb9 Integration
- How to get a low battery notification, activity tracking, and more...I recently purchased a FitBark dog activity tracker. I always check now to see if there is some kind of API available with products like these, so that you can capture and use the data in ways other than the manufacturer intended - it turns out with FitBark there is. Although you might think the primary purpose of a device like this is to see just how much running around your dog does, you kind of already know that - though the ability to compare that to other dogs can either make you feel smug, or guilty.
Extreme Aquarium Automation
- Exposé on home-made, handmade, aquarium automation setupThis post describes my current aquarium setup, in particular, the technical, custom designed parts of it. There is a lot of monitoring and control going on; though virtually all of it is hidden behind the scenes, as my aim has always to create a natural looking environment. An aquarium is an eco-system, some aspects of it can stay in natural balance with maintenance, and other parts require active control. Things are more complicated with plants - I recently have become more serious about growing plants.
Energenie Integration with Python on a Raspberry Pi
- Using pyenergenie to do Energenie automation with out need for the cloudIt is disappointing what IoT hardware manufacturers provide regarding software with their products. I don’t want to single out Energenie - at least they created a tremendous hackable radio board specifically for the Raspberry Pi. The ENER314-RT provides two-way communication with all Energenie products including all their power switches, energy monitors and radiator valves. This means that you don’t need to buy an Energenie Gateway MIHO001, and you also don’t need cloud connectivity and the worry that somebody might be snooping on your data.
Early release book : Resource Oriented Computing with NetKernel
- Following the leanpub mantra: Publish Early. Publish Often.This book is pre-release and is an evolving work-in-progress. It is published here for the purposes of gaining feedback - I’d love to have your feedback - and providing early value to those who have an interesting resource oriented computing. Read here
Published Sep 2, 2018 1 min read