Thursday, April 08, 2010

Help withTexture Mapping

the following images were designed by Chosen Few, and DanielFox Abernathy respectively. the first is an alignment texture in decimal (easier to use with the built in controls) for matching textures across prims. The second is a similar texture designed for sculpties, that also show LOD points for each vertex

UUID = "11e68b89-6693-e3bf-35c9-876ae2a2e78b"
UUID = "c595dad5-e439-fe75-1220-9dddf6cdf4b3"

the following formulas may also help with tiling
repeat = individual prim axis size / total axis size of surface to tile across
offset = prim distance from center of total surface axis size to tile across

non-rectangular prim faces should use planar mapping mode, and non-touching prims should use half the distance between it and the next prim to calculate it's sides for axis size.

hollow faces use a different formula:
horizontal repeats = (number of hole sides * desired repeats per side * 2 if the shape is prism) / hollow as a percentage
horizontal offset = -.5 - (horizontal repeats - horizontal repeats * hollow as a percentage) / 2)
vertical repeats and offsets are calculated normally.