function AddMesh in ISceneManager

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Epsilon
Posts: 38
Joined: Fri Jan 09, 2004 1:46 pm
Location: Argentina

function AddMesh in ISceneManager

Post by Epsilon »

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. :shock: 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.
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Re: function AddMesh in ISceneManager

Post by niko »

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.
Seems to be the only way currently. I did not see that someone you need this, sorry.
Post Reply