arx-tools / arx-level-generator

A node.js library for creating maps for the video game Arx Fatalis
MIT License
6 stars 0 forks source link

rooms definitions: find a way to randomize textures on a tiled surface #12

Open meszaros-lajos-gyorgy opened 5 months ago

meszaros-lajos-gyorgy commented 5 months ago

Using the same texture, even if it is seamlessly tileable, can look boring and arx has a lot of nice variations for certain blocks. Alicia's wall could be broken up by inserting the cracked wall variants occasionally to the flat white surface:

image

The texture randomization should be specified with percentages, for example use ALICIAROOM_MUR01.jpg 90% of the time, but use ALICIAROOM_MUR03.jpg for the remaining 10%.