Very strange...
The standard exporter of .x format works fine for TrueVision, but the TrueVision dont recognize the group names of .x file created.
public void Initialize()
{
this.m_filename = BillyEngineFolders.Folder(BillyEngineFolders.CONST_BILLY_FOLDER_TYPE.eCBFTLevel) + this.m_scenename + "\\@map.x";
if (System.IO.File.Exists(m_filename) == false)
{
throw new Exception("File " + m_filename + " not found !");
}
//material configs...
m_mesh = m_scene.CreateMeshBuilder("cenario");
if (this.m_filename.ToLower().Contains(".tvm")) m_mesh.LoadTVM(this.m_filename, true, true);
if (this.m_filename.ToLower().Contains(".x")) m_mesh.LoadXFile(this.m_filename);
m_mesh.SetShadowCast(true, true);
m_mesh.SetMaterial(m_mesh_material);
m_mesh.SetCullMode(CONST_TV_CULLING.TV_DOUBLESIDED);
m_mesh.SetShadowCast(true, true);
m_mesh.SetPosition(0, 0, 0);
m_mesh.SetCollisionEnable(true);
m_mesh.SetBlendingMode(CONST_TV_BLENDINGMODE.TV_BLEND_ALPHA);
if (m_mesh != null && m_mesh.GetGroupCount() > 0)
{
SetInternalObjects();
}
}
private void SetInternalObjects()
{
for (int i = 1; i < m_mesh.GetGroupCount(); i++)
{
//nome always empty
String nome = m_mesh.GetGroupName(i);
Debug.Print(i + " ==> " + nome);
}
}