Hello everyone,
Does anyone know of a way to get a hold of a meshes submesh information after the mesh has been loaded?
I'm mainly looking for how many submeshes exist within the mesh.
I know I can figure out how many a mesh has outside of Purebasic, but for this program I'm working on that's not really a good option.
Any examples or ideas are appreciated.
Get submesh information?
Re: Get submesh information?
how many submeshes exist within the mesh.
i haven't noticed it before, it is SubMeshCount()
as an example, add this
Result = SubMeshCount(0)
Debug Result
after line 88 in the example MeshManual.pb in Examples\3D\ folder, and it will return 5, the number of faces of the pyramid
i haven't noticed it before, it is SubMeshCount()
as an example, add this
Result = SubMeshCount(0)
Debug Result
after line 88 in the example MeshManual.pb in Examples\3D\ folder, and it will return 5, the number of faces of the pyramid
Re: Get submesh information?
Thanks ApplePi!
I looked through the help files at least 3 times and I guess I missed it every time.
I need to go pick up some glasses because it looks like I need them.
I looked through the help files at least 3 times and I guess I missed it every time.
I need to go pick up some glasses because it looks like I need them.

