Kore is again fiddling around with his PEAR package Image_3D... While implementing something new, he rendered the following "Zebra-Pig", which actually resulted from a bug. Anyway, the whole package is cool, and the pig looks quite funny! ;) Go on, Hardkore!
If you liked this blog post or learned something, please consider using flattr to contribute back: .
That is a really nice pig! Makes me wonder what "algorithm" an animal uses to get its stripes and patches ;-) Looks totally genuine...
Link to commentMaybe this post should be entitled "Bug in PHP Code Creates Abomination!"
Link to commentI think "Mutation" is a bit better here. It's not really abominate, or? Anyway, would have been cool to have that for April 1st! ;)
Link to comment
Perhaps I destroy the magic of the picture, but let's explain:
The calculation of the light influencing each polygon uses the normale vector of the polygones.
The normale vector depends on the order of the points defining the polygon (non-clockwise).
The algorithm for subdivision surfaces declares some of the polygones with points in clockwise order, so that the normale vector points to the inner side of the pig, which caused - after some modifications in the enlightenment code - black polygones. ... it was really a bug, but a very nice one. I love this picture ;)
Fields with bold names are mandatory.
3 years of blogging
Yes, it's true, exactly 3 years ago I wrote my first blog entry. By that time I would never have imagined, that I would keep blogging for more than 3 years and that more or less constantly. My weblog now contains 458 entries. Surely, there is some bulshit
Latest News
Latest News
Danger of phentermine.
Phentermine cheap. Cheapest phentermine online. Phentermine cod.
Raytracing with Image_3D
The last two days I tested how fast raytracing would be, and
which nice effects could be done with this algorithms.