hi people.
I have maked a class like CGeometryCreator for my game and it have a function that generate a mesh. I have all that i need for make that without modify the engine, SMeshBuffer, SMesh , AnimatedMesh, etc. but when i finish to create the mesh i need to register the mesh in the meshlist of CSceneManager with addMesh(...); the problem is that this funtion is private.
So, i have all tools that i need to create my mesh but i cant use it becouse i cant add the mesh to the MeshList.
In the game there is no error but the mesh is not displayed, and when start the application it says 0 fps and 130000 triangles and after 2 seconds it says 300 fps and 0 triangles. the material is setted to light false and i have alight too, the camera is looking at the position of the mesh, so the only problem that i think is that the mesh is not on the meshlist.
I think that making a class that inherits from IMeshLoader maybe can work but the problem is that i need pass other parameters from the game exclusively.
if there are other way to register the mesh without modify the engine, please tell me.
thanks.
function AddMesh in ISceneManager
Re: function AddMesh in ISceneManager
Seems to be the only way currently. I did not see that someone you need this, sorry.Epsilon wrote:hi people.
I think that making a class that inherits from IMeshLoader maybe can work but the problem is that i need pass other parameters from the game exclusively.
if there are other way to register the mesh without modify the engine, please tell me.
thanks.