Thanks for the answer Electron and for the link to the assistant tool, I'll check it later.
As I had understand, embedded items need to use games textures, that's why you need to use the link param. Hope someone can help me here.
Both Baseground and TechGround doesn't work :
Code: Select all
NadeoImporter 2014-10-22_12_37
Material link not found in lib : BaseGround
or
Code: Select all
NadeoImporter 2014-10-22_12_37
Material link not found in lib : TechGround
and Tech create the gbx mesh but create the item with the Tech Safe texture (If I am correct).
File for the Mesh in that case (CubeTest2.meshparams.xml) :
Code: Select all
<MeshParams MeshType="Static" Collection="Storm" Scale="0.01">
<Materials>
<Material Name="_TDSNEM_BL2Test" Link="Tech"/>
</Materials>
</MeshParams>
and File for the item (CubeTest2.item.xml) :
Code: Select all
<Item Type="StaticObject" Collection="Storm" AuthorName="LotK">
<Phy>
<MoveShape Type="mesh" File="Meshes/CubeTest2.Shape.gbx" PhysicsId="Metal"/>
</Phy>
<Vis>
<Mesh File="Meshes/CubeTest2.Mesh.gbx"/>
</Vis>
</Item>
Textures of are in Work/Item/Texture/Storm (textures were before just in Work\Texture but it doesn't seem to cause any problem to have them in a sub-folder).
I want this specific texture (Baseground) because I want to do a simple arrow panel to put on walls and the texture of this arrow must be team coloured and react like a team coloured block, meaning became blue when connected to the blue team pole(s)/spawn(s)/block(s) and red when connected to the red team pole(s)/spawn(s)/block(s).
I have read a lots of this topic(65 pages so far) and docs in doc.maniaplanet.com and I haven't noticed anything about this kind of texture. I am not good in 3D (I haven't time to learn more that I know) and I just want this special kind of item.
Questions :
Is it possible at least to do a team coloured custom item ? If it is, how ? I fear I can't do it and only team coloured skins are possible.
@Nadeo : If not, do you plane to add this possibility later ?
EDIT : I have manage to have the material BaseGround on my cube by adding the following in NadeImporterMaterialLib :
Code: Select all
Material(BaseGround)
DSurfaceId (TechGround)
DUvLayer (BaseMaterial , 0)
DUvLayer (Lightmap , 1)
DTexture( BaseGround_D.dds)
DTexture( BaseGround_S.dds)
DTexture( BaseGround_N.dds)
DTexture( BaseGround_Mask.dds)
The texture mapping was not good (flat projection on top side instead of cube UV) but I suppose it's because of the texture was not meant for other thing that floor mapping.
The item is still a static mesh (I'll try a dynamic one later). The major flaw is that the cube doesn't take the teams colours (i.e stay grey) and I have tried adding N, S and M texture. It looks like embedded (in local game at least).
Thanks in advance,
LotK