ematchefts / jmonkeyengine

Automatically exported from code.google.com/p/jmonkeyengine
0 stars 0 forks source link

TerrainQuad.setTiling(boolean) #641

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, it is very difficult to get the TerrainQuad to tile properly. I 
think that a good solution to this would be to have a method 
(setTiling(boolean)) that enables and disables tiling. To prevent massive code 
changes, this method would:
1) Determine how many instances of that texture are needed to fill the terrain 
(at the lowest resolution possible on the terrain before the pixels of the 
texture start becoming distorted
2) Create a new texture the size of the terrain
3) Add the original texture (from user) many times until it fills up the new 
texture
4) Apply the new texture to the terrain

Original issue reported on code.google.com by john01...@gmail.com on 1 Jun 2014 at 5:28