Support for texturemap tile margins.

A place to request and discuss new engine features / functionality

Support for texturemap tile margins.

Postby Demotis » Tue Nov 19, 2013 6:45 pm

My suggestion is to add the ability to add a margin to the texture map that will allow for the use of textures that are larger than the texture map tile size. The texture would be transitioned based on a top and left margin and the tile width and height would be based on the cell sheet and not the texture map tile size. By doing this you could create a background texture that would have the appearance of depth, or use an edge blending in the texture itself. It could also be used to add small terrain features that would be a waist of resources being added as an additional texture or entity, such as grass blades or ocean waves.

Here is an example of a normal Isometric texture and it's use in a texture map.
normal_flat.jpg
Normal Flat Texture Tile
normal_flat.jpg (208.5 KiB) Viewed 8364 times


Here is an example of a base texture with a left and top margin. Once the image is placed on the texture map and translated correctly the background gains a little bit of "depth" due to the warping of the texture as waves. I placed a boat on the map that would represent an entity being placed at a tile location.
enhanced_margin.jpg
enhanced_margin.jpg (164.67 KiB) Viewed 8364 times


Here is an example of the same technique being used on a "flat" surface, but with the tile having a base that is lower than the actual tile surface. Please excuse the poor quality of the texture being used, it was meant only as an example.
example_1.jpg
example_1.jpg (101.85 KiB) Viewed 8364 times
Demotis
 
Posts: 18
Joined: Mon Oct 28, 2013 6:20 pm

Re: Support for texturemap tile margins.

Postby Demotis » Tue Nov 19, 2013 6:51 pm

Additionally Cell Sheets could be used that would support the same margins as set by the texture map. I would think that the best way to handle this would be to set the margin on the texture and just have the texture map honor the margin translation. In this way multiple cell sheets could be used with different margins and they would seam correctly on the texture map.

Here is an example of a cell sheet where the tiles all have the same margin, even if the space is left transparent each tile has the same margin spacing.
cellsheet_example.jpg
cellsheet_example.jpg (27.88 KiB) Viewed 8363 times


And here is an example of the grass tile being used in a texture map.
example_2.jpg
example_2.jpg (31.94 KiB) Viewed 8363 times
Demotis
 
Posts: 18
Joined: Mon Oct 28, 2013 6:20 pm


Return to New Feature Discussion

Who is online

Users browsing this forum: No registered users and 1 guest
cron