- Title: Zrepeat on blocks in 3D
- Description: Add a zrepeat on blocks in 3D
- GM Version: GM8 and higher
- Registered: Yes (for 3D fuctions)
- File Type: *.gmk
- File Size: 11,0 KB
- File Link: http://gk-games.neti...at_tutorial.gmk
What's zrepeat? As you might know, if you draw a block that reaches higher than the height of your background texture, it get stretched out. To prevent this stretching, there is now the function called zrepeat. The value zrepeat defines how many times the texture should be repeated into the height (z).
Here's an example to show what I mean. The left block is without the zrepeat function, but only h- and vrepeat. The right block features the zrepeat function.
As you see, the right block looks better than the left block. Remember that both blocks are exactly the same in size (width,length,height) and have the same texture.
You can download the example + tutorial here: http://gk-games.neti...at_tutorial.gmk
Enjoy this new function that allows you to draw blocks in 3D more easilier! Feature made by GK-games.
Note: If you want to draw without any zrepeat, you can enter into zrepeat also 1!
Edited by G-Games, 20 May 2012 - 11:26 AM.