Normal map generation, using blender and processing.org.
Read more here: Notes:Normal map generation.
Normal map generation, using blender and processing.org.
Read more here: Notes:Normal map generation.
My website being back online, I will document the researches related to disrupted cities in several pages there.
I’m currently working on an algorithm to nicely shrink the blocks detected in the network…
Reviewing the road generation system.
This random generation merits a bit of attention.
Until now, i was randomly picking a new start point from an existing road to create a new road. The process is consuming, and there is no guarantee to avoid picking several time the same point on the same road.
With the formula above, found in the great numberphile channel (see below), I attribute once and for all a random to each road’s dot. The particularity of this random generation is that it will NEVER repeat two times the same value in one sequence. Once generated, my dots have a number in the range [0,1], with a linear distribution.
For instance, in a line having 10 dots (and therefore 9 segments), each dot will have a random number between 0 and 1. If you order the list of dots by random values, and compare the gap between each sorted values, the average gap will be 0.1!
The way to use this random number is straight forward. If you want to generate a secondary road on 50% of the dot of the first one, you just have to loop over these number and check wherever the random value of the dot is < 0.5. If the distribution was not linear, doing this would not guarantee to create on sub-road every two dots. As it is, you can just specify the percentage, all random calculation has already been done, and in a more controlled way then ofRandomuf() does it.
This formula requires big prime numbers (>10000) to be placed at a and b. Here is the source i used: list of primes.
too look at closely:
Looking for loops in networks.
It’s seems very simple, but when i’ve started to search for a programmatic way to solve this, you ends up with a kind of complexity that seems much too high compared to the problem.
After a bit of research, i found the Rocha Thatte method. It is a very elegant way to detect “cycles” in “directed graphs”. Description in wikipedia.
This is a js implementation, based on the java version, used to study the implementation.
A two days work session with Florence, Lisa Nelson, @louise and Baptiste.
We went deeper in the improvisation technique of Lisa, by performing a score with Baptiste and also by talking a lot about what Tuning Scores is and is not. The performance and the exchanges have been recorded.
This is an important step for the future of the project: a prototype is ready but there were a lot of blind spots that are becoming brighter and brighter each time we talk.
You can discover the project tomorrow: event
Finding cycles in networks.
Since several days, i was trying to solve a problem that will occur in #peel: how to broke a connection when the connection is part of a “cycle” (i’ve called it “loop” until now). This problem is illustrated here:
The beginning of the answer is in wikipedia and uses graph theory >> https://en.wikipedia.org/wiki/Cycle_(graph_theory)
Can’t wait to start coding that 🙂
related issue in bitbucket
A long time ago (2 years maybe), i’ve worked with yacine sebti to make a bridge between a timeline editor in max/msp (yacine’s world) and openframeworks (my former world). The project was called Menthol. This prototype has been used in the void project.
The openframeworks addon is here: https://bitbucket.org/frankiezafe/ofxmenthol
During a 1 hour phone call with yacine, we discussed about how to build a standalone UI for the project. Several ideas where floating, such as a fully custom UI in openframeworks or a QT version, such as Iannix. This one is very good looking, even if yacine and i think that it is not precise enough for our usage.
Then, like each time we spoke about this, blender pops in.
I always liked the graph and the dope sheet panels. It’s a superb 2d simplification, with a lot of features (i just discovered the modifiers, my head is spinnin’!). I quickly draft the modifications to do on these panels to work as a standalone timeline editor.
I’ll investigate this in december!
nb: this feature is part of the polymorph engine presentation :), see here
Just saying… Not perfect… but [CTRL]+[T] give you time in seconds instead or next to the frame number (It’s unfortunately not consistent)
Reply