Ricebug on 15/10/2013 at 16:49
I have a simple square, 32x32x1, made in Anim8or. It's a treeline with an alpha channel. The texture is seamless. This thing occupy an axis, 512 dromed units, like a fence. What you end up with is a nice treeline along the top of a wall. However, laying and aligning 16 of them is tedious. So, I'd rather make an object 512x32x1...one object.
The problem is, Anim8or stretches the single assigned texture instead of tiling it.
The line in the .E file looks like this:
[INDENT]MATERIALS{
1,"material01",,TMAP "treeline.png",0,TRANSP 0;[/INDENT]
Playing around with different numbers doesn't seem to do anything except screw up the image.
PinkDot on 15/10/2013 at 20:58
I believe you need to play with UV tiling in Animator, rather than trying to fix it in the .E file. I can't give you exact instructions, as I don't know this software, but tiling should be pretty straightforward in any 3d app. (Help should cover it, or somebody else will tell you).
But, if you really want to do it the odd way, you should be able to modify the .E file too. Find these lines:
Code:
PART_MAPPINGS{
0,(0.000000,1.000000),(0.000000,0.000000),(1.000000,0.000000);
1,(1.000000,1.000000),(0.000000,1.000000),(1.000000,0.000000);
}
...and change to this:
Code:
PART_MAPPINGS{
0,(0.000000,1.000000),(0.000000,0.000000),(16.000000,0.000000);
1,(16.000000,1.000000),(0.000000,1.000000),(16.000000,0.000000);
}
I can't guarantee it will work, but logically, it should.
However if you have a cube, you need to figure out yourself, which triangles need this adjustment. The above is UV coordinates for two triangles only, cube has 12.
But again - it would be a weird thing to do it in the .E file, especially, that it would be required each time you export the object to an .e format.
R Soul on 15/10/2013 at 21:52
In Anim8or, select the object, click the UV button, and middle-click and drag from the small boxes on the left or right of the circle. You won't get an exact number of repetitions. The other option is to copy the object till you have enough.
Ricebug on 15/10/2013 at 22:12
Quote Posted by R Soul
In Anim8or, select the object, click the UV button, and middle-click and drag from the small boxes on the left or right of the circle. You won't get an exact number of repetitions. The other option is to copy the object till you have enough.
That did the trick. Thanks, again, R Soul.