I've successfuly loaded an obj model using a TGLFreeForm object into my scene.
But, the model file is internally structured into a number of Named Objects which I'd like to navigate within my code - Is this model structure information preserved when imported into GLScene?
I've tried using MeshObjectLists and Components to see if the information is there, but without success. I've also tried setting vGLFileOBJ_SplitMesh to True, but the software crashes when loading my model.
Thanks
Ian
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Any add-on information about this? or a demo example? I have the same goal. But it crashes for me after turning on the breaking on vGLFileOBJ_SplitMesh to True:
line 930 (GLS.FileOBJ) AffineVector := mesh.TexCoords[TexCoordIdx];
What do i do after doing :
Model.LoadFromFile('EpicModel.obj');
// more further code to make the different mesh objects available to use?
Noobie could use some help :)
Greetigns!
Stranger
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've successfuly loaded an obj model using a TGLFreeForm object into my scene.
But, the model file is internally structured into a number of Named Objects which I'd like to navigate within my code - Is this model structure information preserved when imported into GLScene?
I've tried using MeshObjectLists and Components to see if the information is there, but without success. I've also tried setting vGLFileOBJ_SplitMesh to True, but the software crashes when loading my model.
Thanks
Ian
Hi Ian, the parts of your OBJ must be in "FreeForm.MeshObjects.Items[x].FaceGroups"
Hi Jerome
Thanks for that pointer. I've got it working now :-)
Ian
Hey,
Any add-on information about this? or a demo example? I have the same goal. But it crashes for me after turning on the breaking on vGLFileOBJ_SplitMesh to True:
line 930 (GLS.FileOBJ) AffineVector := mesh.TexCoords[TexCoordIdx];
What do i do after doing :
Model.LoadFromFile('EpicModel.obj');
// more further code to make the different mesh objects available to use?
Noobie could use some help :)
Greetigns!
Stranger