Yesterday we tested the „alpha test“ blocks. We mean with this in our case a block which uses the alpha test for rendering. Ok if you perhaps know OpenGL a little bit it is pretty easy to set up the alpha test. Only a few commands and a texture with a alpha channel is necessary. We already used it for all of the plants and trees. But this was a little bit trickier. If we would have simply activated the alpha test the result would have been holes in the surface as the algorithms who converts the blocks to polygons expects them to be solid. We changed this and also updated the system so that it is more fault tolerant.
With this we can now create the illusion of grids, railings, fences or grates:
And today we tested and corrected the flip-flop(?). What is a flip-flop? A flip-flop can be used in a circuit to store a single bit. It has one output and two inputs contacts. The output outputs the current bit which is stored in the flip flop. The right input is the value to be stored. But it is only stored if the left input has a current. This way it can be controlled if a new bit is stored or not. Here is a screenshot:
FF means flip-flop. Hmm, ok when I look at the screenshot which is input is what? Ok, I had to guess when I wrote this text. No that's not ok. I change the code.
Coding in progress ….
Ok now it's changed! The read input is now labeled with read:
And we corrected the memory management under Mac.
Then I made a screenshot of the inventory with all of the basic recipes (and also corrected some of the icons):
These items are only a part of the items which can be crafted. I think this is impressive!
