Foros - Stratos

Proyectos => Jad Engine => Mensaje iniciado por: auron en 02 de Febrero de 2006, 03:54:46 PM

Título: Mesh Issues
Publicado por: auron en 02 de Febrero de 2006, 03:54:46 PM
 I was playing around with the loading/creation of meshes and I realised that all the loading is done before Haddd.Begin()

It was possible for me to load or create the mesh after I called Begin() but the problem was that it wasn't affected by the lights created before it and had some clipping issues as well. Is this a problem?

Another thing I'd like to find out... In the tank tutorial, after loading the tank mesh, I can't get the reference of its mesh by its name but if I go by index, like Haddd.Scene.MeshObjects[0].RotateStepX(), it only rotates a part of the tank. Is it possible to group meshes together and reference them as a whole?  
Título: Mesh Issues
Publicado por: Haddd en 02 de Febrero de 2006, 10:36:07 PM
 Haddd.Begin must be called at last. It calls to:


  Video.Meshes.OptimizeAndTransformToLocal();

  Video.Meshes.ComputeTangent();


You can load a mesh after the Begin, but you must call this methods...

CitarAnother thing I'd like to find out... In the tank tutorial, after loading the tank mesh, I can't get the reference of its mesh by its name but if I go by index, like Haddd.Scene.MeshObjects[0].RotateStepX(), it only rotates a part of the tank. Is it possible to group meshes together and reference them as a whole?

Hierarchies are not supported on the exporter yet. It's a missed featured that will be present soon...

The scene graph is ready to support it, but i presume that you need the exporter funcionality to be fully funcional...
Título: Mesh Issues
Publicado por: auron en 03 de Febrero de 2006, 03:28:17 AM
 I see... So how exactly will the mesh be loaded when the exporter does support it? Will it create a node and attach all the meshes to it?

Another thing is that when you load a mesh from a file, what identifying name is it given? Because the Load function doesn't take in any identifier name parameter.
Título: Mesh Issues
Publicado por: Haddd en 03 de Febrero de 2006, 08:06:02 AM
 
CitarI see... So how exactly will the mesh be loaded when the exporter does support it? Will it create a node and attach all the meshes to it?

Yes, this is the way the hierarchy works on Haddd. A root node, with childs. And if a node has child, the final matrix is parent*relative;


CitarAnother thing is that when you load a mesh from a file, what identifying name is it given? Because the Load function doesn't take in any identifier name parameter.

The mesh has a name in the .haddd file. So if you have 3 objects, everyobject has its Max name. You can not repeat names, if you do, the engine adds an autonumeric number to the name.
Título: Mesh Issues
Publicado por: auron en 03 de Febrero de 2006, 09:11:48 AM
 I see...
I just took a look at the .haddd files...
When the exporter supports hierarchies, you'll have to specify the root node name? The name of the node that will hold all the mesh objects.
Título: Mesh Issues
Publicado por: Haddd en 03 de Febrero de 2006, 11:17:51 AM
 
CitarWhen the exporter supports hierarchies, you'll have to specify the root node name? The name of the node that will hold all the mesh objects.

No, you should not specify the root name, we should get the information from MAX without user intervention... ;)