Upgraded to the latest version and running into an issue with my custom mesh importer...
All compiles correctly, and does not generate any runtime errors... but meshes created are not rendering (either in code or in mesh editor)...
If I render the mesh parts by cycling the Mesh.part(x).render(material).. the individual parts will render ( but loks like some texture coord issues..)
However, rendering via Mesh.render() results in nothing being drawn...
I've been digging into this for several days without much success... any chance there is something extra I need to do with the new mesh format?
( basic steps are.. for each material in my source model, create the material, create a new meshbase, create a vert array for each face... use Triangulation(poly,meshpart) to convert the vert array to a MeshPart... add this MeshPart to the MeshBase )
(Away from code atm - might be confused on wether im using meshpart or meshbase...)
Anyway.. any clue you can give me would help me cut down my debug time... ( this was working perfectly before changing to the new version of the engine btw )
please make sure to use the latest engine headers, lib file, engine.pak file
after setting the mesh data, please use Mesh::setRender,Mesh::setBox (like in some tutorials),
after creating custom material, please call Material::validate
if you will still experience some trouble, I would need a sample .mesh file, and look into the codes which you're using to create meshes.
Heya... been pulling out my hair on this... tried everything I can think of it get it working again ( it was working perfectly previous to changing to new version of esenthel library )
I've attached the .mesh and .phys file generated from this code... the .phys is correct, the .mesh does not render either in code or mesh editor. If you turn on the box rendering in mesh editor and cycle through the parts - the box is rendering over what should be the mesh parts... and in code, if you render each individual mesh part - it renders correctly...
Here is the main code that builds the mesh: ( cut from the class handling all the import of data )
Great - That solved the issue with the mesh itself...
Im now having an issue with the materials:
gfx files are being created correctly
mtrl files are being created... and appear correct when loaded...
but only SOME are rendering...
unless I do this:
load the mesh, go to material mode
cycle through each part, click "GET"... and the material starts rendering correctly... but even if I save the mesh after doing that... and reload...
same thing happens...
Here is how I am creating the .mtrl files:
mat.mat.reset();
mat.mat.ambient.set(255,255,255);
mat.mat.color.set(255,255,255,255);
I had it that way originaly ( and changed it back again just now)... same result...
the images are being located and imported correctly... the .gfx files are being created...