MeshVertexTextureCoordinate(u, v, texcoordset = 0) => add the ability to use multiple texture coordinates
Result = AddMaterialLayer(#Material, TextureID [, Mode], texcoordset = 0)

Nope - I ask for a way to set up a material so I can choose which texture coordinate sets it uses. It's not a matter of adding multiple material to a specific surface.DarkDragon wrote:There's already AddMaterialLayer = the second command you're wishing. Materials don't have anything to do with texture coordinates, only textures are in relationship with them.
AddMaterialLayer adds a specific texture to an existing material. So you want texture 1 to be the regular one and texture 2 the lightmap for example. AddMaterialLayer does exactly this (the order of the calls matters). So the only difference between your version and the AddMaterialLayer is the parameter for the texture coordinate set. So you should change your request to "Add an optional parameter to AddMaterialLayer to specify the texture coordinate set" instead of "Create a fully new function for the same procedure just with one parameter different".Polo wrote:Nope - I ask for a way to set up a material so I can choose which texture coordinate sets it uses. It's not a matter of adding multiple material to a specific surface.DarkDragon wrote:There's already AddMaterialLayer = the second command you're wishing. Materials don't have anything to do with texture coordinates, only textures are in relationship with them.
AddMaterialLayer adds a specific texture to an existing material. So you want texture 1 to be the regular one and texture 2 the lightmap for example. AddMaterialLayer does exactly this (the order of the calls matters). So the only difference between your version and the AddMaterialLayer is the parameter for the texture coordinate set. So you should change your request to "Add an optional parameter to AddMaterialLayer to specify the texture coordinate set" instead of "Create a fully new function for the same procedure just with one parameter different".[/quote]DarkDragon wrote:Nope - I ask for a way to set up a material so I can choose which texture coordinate sets it uses. It's not a matter of adding multiple material to a specific surface.
you have to call MeshVertexTextureCoordinate(u, v) multiple times between AddMeshVertex(x, y, z) calls to add multiple texture coordinates to a vertex.Polo wrote:Can we please have those so that basic mesh operations are supported through PB procedures?
MeshVertexTextureCoordinate(u, v, texcoordset = 0) => add the ability to use multiple texture coordinates
Right then can this be added on the docs?Comtois wrote:you have to call MeshVertexTextureCoordinate(u, v) multiple times between AddMeshVertex(x, y, z) calls to add multiple texture coordinates to a vertex.Polo wrote:Can we please have those so that basic mesh operations are supported through PB procedures?
MeshVertexTextureCoordinate(u, v, texcoordset = 0) => add the ability to use multiple texture coordinates
Ogre increment 'texcoordset' each time you call MeshVertexTextureCoordinate(u, v).
And each time you call AddMeshVertex() Ogre initializes texcoordset to zero.