Page 1 of 1
New 3D commands
Posted: Sun Sep 30, 2012 12:59 pm
by Polo
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
Result = AddMaterialLayer(#Material, TextureID [, Mode],
texcoordset = 0)

Re: New 3D commands
Posted: Sun Sep 30, 2012 1:02 pm
by DarkDragon
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.
Re: New 3D commands
Posted: Sun Sep 30, 2012 1:14 pm
by Polo
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.
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.
Re: New 3D commands
Posted: Sun Sep 30, 2012 1:22 pm
by DarkDragon
Polo wrote: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.
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.
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".
Re: New 3D commands
Posted: Sun Sep 30, 2012 2:01 pm
by Polo
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.
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]
Sure

Re: New 3D commands
Posted: Sun Sep 30, 2012 5:41 pm
by Comtois
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

you have to call MeshVertexTextureCoordinate(u, v) multiple times between AddMeshVertex(x, y, z) calls to add multiple texture coordinates to a vertex.
Ogre increment 'texcoordset' each time you call MeshVertexTextureCoordinate(u, v).
And each time you call AddMeshVertex() Ogre initializes texcoordset to zero.
Re: New 3D commands
Posted: Sun Sep 30, 2012 6:57 pm
by Polo
Comtois wrote: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

you have to call MeshVertexTextureCoordinate(u, v) multiple times between AddMeshVertex(x, y, z) calls to add multiple texture coordinates to a vertex.
Ogre increment 'texcoordset' each time you call MeshVertexTextureCoordinate(u, v).
And each time you call AddMeshVertex() Ogre initializes texcoordset to zero.
Right then can this be added on the docs?
The request for material still stands

Re: New 3D commands
Posted: Fri Oct 05, 2012 2:41 pm
by Polo
Thanks to Fred for adding this! I'll try it out when I can
