cracked it

Another good Skype session with Ollie on Monday. We started to develop the previous session’s particle system into a smoke simulation.

I couldn’t get to sleep that night, and lay in bed wondering about using Perlin noise in the smoke simulation when I suddenly realised I’d found a solution to some code I’d been struggling with a few weeks ago. (OK, it took a while, but I got there in the end). I’d been trying to write code to simulate cracks, and had used Perlin noise to give them a natural look. It worked, but what I’d been unable to do (until my belated Eureka moment) was specify exactly where the crack should start.

Now I can do precisely that, so the way is open to write the code as a function that accepts parameters, which means I could call the function from within itself to get smaller, branching cracks. Yay, me.

Still got a long way to go with the smoke simulation, though.

Tags:

Thursday, October 21st, 2010 coding

Leave a Reply