Image:
 Author: Xray Group: Default Filesize: 322.09 kB Date added: 2012-10-28 Rating: 5.5 Downloads: 1345 Views: 664 Comments: 2 Ratings: 2 Times favored: 0 Made with: Algodoo v2.0.2 Tags:
|
This scene demonstrates the effect each texture matrix element has on the texture. Start Algodoo, then press keys that are shown in the boxes that are labeled for each textureMatrix array element.
UPDATE 11/7/2012: I found a post in one of the threads in the Thyme Script tutorial forum in which someone listed the functions of each of the texture matrix variables. The two elements that I had listed as "Xrotation" and "Yrotation" are not correct because they do not rotate the texture. Instead, they do what I am calling a stretch. For the Xstretch, the images gets pulled one way at the top half, and gets pulled the other way at the bottom half. It's the same thing for the Y direction except the left half of the image gets pulled up or down, and the bottom half of the image gets pulled in the oposite direction. So, since the function does not do a true rotate, I changed the name to stretch, because that more closely describes the type of action these elements have on the image.
Oh, one more thing..... In the same post that I mentioned above, the person mentioned that elements 6, 7, and 8 are used only for Polygon geometries. But I tried making a polygon with my "pretty face" texture, and those last three elements had no effect at all on the image when I changed them. So, either I did not used them correctly, or they indeed have no effect on the texture image. I hope that somone else would chime in here with a working example scene that alters the elements 6,7, and 8.
Thanks! |