Page 1 of 1
Get Mesh Vertex Position and Normal data
Posted: Sun May 05, 2013 1:55 am
by Olby
I don't seem to find a way to retrieve mesh vertex position and normal data once it's loaded or created. To be honest whole mesh library is a bit awkward to use due to way the commands are designed. Thanks.
Re: Get Mesh Vertex Position and Normal data
Posted: Sun May 05, 2013 3:18 am
by IdeasVacuum
To be honest whole mesh library is a bit awkward to use due to way the commands are designed.
Agreed. I think instead of thinking in terms of an ambidextrous lib, games have taken priority. Even so, 3D is generally lacking, but the recent spat of improvements is encouraging.
So, to 'get' any mesh data required later, you probably need to record that data as it's created (as a linked list for each object perhaps).
Re: Get Mesh Vertex Position and Normal data
Posted: Sun May 05, 2013 12:24 pm
by Olby
Thanks for the tip, I've already thought about storing vertex data, but that means doubling it unnecessary since engine has it albeit unexposed (speaking about large 3d meshes here). And if we load a ready made mesh there's no way to access internal vertex list as well. MeshVertexX/Y/Z and MeshVertexNormalX/Y/Z would do the job although it would be great to see a complete overhaul of the mesh library with possible access to more data such as vertex colours, face data, and multi-layered UV coordinates.
[Edit]
Given the years they had I'm surprised by absence of such basic, low level, commands. It seems so far they have covered more high-level commands such as SkyBox and Water. Quite illogical in my opinion to start with commands that give us lesser control over the engine.