Get Mesh Vertex Position and Normal data

Everything related to 3D programming
Olby
Enthusiast
Enthusiast
Posts: 461
Joined: Mon Jan 12, 2009 10:33 am
Contact:

Get Mesh Vertex Position and Normal data

Post 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.
Intel Core i7 Quad 2.3 Ghz, 8GB RAM, GeForce GT 630M 2GB, Windows 10 (x64)
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Get Mesh Vertex Position and Normal data

Post 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).
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Olby
Enthusiast
Enthusiast
Posts: 461
Joined: Mon Jan 12, 2009 10:33 am
Contact:

Re: Get Mesh Vertex Position and Normal data

Post 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.
Intel Core i7 Quad 2.3 Ghz, 8GB RAM, GeForce GT 630M 2GB, Windows 10 (x64)
Post Reply