- Thu Aug 08, 2013 3:18 pm
#370030
Ernesto, you relatively ask for something which is absolutely impossible.
You have 3 things;
* Real dimension of your texture. (e.g. 33 x 33 cm ceramic tile)
* Object dimension in 3D space.
* UV dimension.
First of all, depending on UV mapping of your object, 33 cm distance may not always allocate the same 2D space.
Let's say you have a floor 3.3 x 3.3 m floor. So, you need 10 x 10 = 100 tiles to cover this floor. Right? OK.
Relative Method is:
* Assign texture to the floor and set tiling repeat to 10. (assuming UV Scale = 1, which means texture is stretched to full floor)
Now... How did we figure we should set repeat to 10?
Absolute Method is:
* Assign texture to the floor and set tiling repeat to 0.33.
You have 3 things;
* Real dimension of your texture. (e.g. 33 x 33 cm ceramic tile)
* Object dimension in 3D space.
* UV dimension.
First of all, depending on UV mapping of your object, 33 cm distance may not always allocate the same 2D space.
Let's say you have a floor 3.3 x 3.3 m floor. So, you need 10 x 10 = 100 tiles to cover this floor. Right? OK.
Relative Method is:
* Assign texture to the floor and set tiling repeat to 10. (assuming UV Scale = 1, which means texture is stretched to full floor)
Now... How did we figure we should set repeat to 10?
Code: Select all
As you see it's not possible to evaluate it otherwise because, Object Size involved in this formula and it's unknown to the material without your help.Repeat = Object Size / Texture Size * UV Scale
= 3.30 / 0.33 * 1
= 10
Absolute Method is:
* Assign texture to the floor and set tiling repeat to 0.33.
Code: Select all
And here, Object Size doesn't matter but, it's still tied to the UV Scale and it can work correctly only if the unit edge of the object's UV space equals to 1 m.Repeat = Texture Size * UV Scale
= 0.33 * 1
= 0.33
Next Limit Team