UV texture coords switch

TaaTT4

22-05-2014 13:58:51

The method MeshGenerator::setSwitchUV doesn't work with extruded generated meshes.

Digging into the library sources, I noticed that method sets a variable which is only used inside the MeshGenerator:addPoint.
But this latter one isn't called anywhere inside the Extruder class.

darkscythe

30-06-2014 19:49:25

a similar problem occured when i updated from 0.2 to the head revision. calling setUTile/setVTile seems to have no effect on the generated mesh.


Procedural::Extruder ext = Procedural::Extruder();
ext.setCapped(false);
ext.setUTile(uv.y);
ext.setVTile(uv.x);
ext.setExtrusionPath(&path).setShapeToExtrude(&shape);
Ogre::MeshPtr mesh = ext.realizeMesh(name);

mikachu

04-07-2014 21:45:05

You're both right, that's a change I made only halfway on the extruder, so I hadn't re-implemented those features.
It's now fixed in the latest changeset.