Jump to content

New feature: terrain texture rotation/scaling


Recommended Posts

Currently all terrain textures are rendered at a 45 degree angle relative to the terrain grid, and scaled so the texture covers an area of 8x8 tiles. I've changed that now so you can override the default rotation/scale for chosen textures - for a terrain texture called foo/bar.png (or foo/bar.dds etc), create a file named foo/bar.xml, looking like this file. "angle" is in degrees (the default is 45), "size" is in world-space units (a terrain tile is 4x4 units; the default is 32, i.e. 8 tiles).

I did this mainly since I wanted a terrain-aligned grid texture, but maybe it's useful for some proper textures too.

Link to comment
Share on other sites

Currently all terrain textures are rendered at a 45 degree angle relative to the terrain grid, and scaled so the texture covers an area of 8x8 tiles. I've changed that now so you can override the default rotation/scale for chosen textures - for a terrain texture called foo/bar.png (or foo/bar.dds etc), create a file named foo/bar.xml, looking like this file. "angle" is in degrees (the default is 45), "size" is in world-space units (a terrain tile is 4x4 units; the default is 32, i.e. 8 tiles).

I did this mainly since I wanted a terrain-aligned grid texture, but maybe it's useful for some proper textures too.

Cool addition. Could help add some variation to terrains and help reduce the visual tiling effect. Plus I no longer have to tilt all my new terrains 45 degrees, I can just do it with an xml file.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...