Hi everyone!
Just want to share some funny stuff I do on libGDX.
Step 1:
Draw one png-file
http://jfix.by/wp-content/uploads/2014/08/input-640x506.jpg
Step 2.
Read it as RGB-function and print to console in ASCII format:
http://jfix.by/wp-content/uploads/2014/08/rgb_function-640x560.jpg
Step 3.
Each color represents one type of terrain: grass, water, dirt or snow. Process the RGB function to extract material-joints (borders?)
water vs dirt
http://jfix.by/wp-content/uploads/2014/08/water-dirt-640x396.jpg
dirt vs grass
http://jfix.by/wp-content/uploads/2014/08/grass-dirt-640x396.jpg
grass vs snow
http://jfix.by/wp-content/uploads/2014/08/snow-grass-640x396.jpg
Step 4.
Compose results from the step 3:
http://jfix.by/wp-content/uploads/2014/08/combo-640x396.jpg
Step 5. Render it!
http://jfix.by/wp-content/uploads/2014/08/world_map3-640x416.jpg
Check out these polygons!
http://jfix.by/wp-content/uploads/2014/08/world_map4-640x424.jpg
Hope you like it!
Have a nice day
J