hey all, I need to extract the vertices from blender objects with subdivision surfaces to create .obj files.
is there a direct mathematical formula I can apply, or a way to access the virtual coordinates?
finding subsurface vertices
Moderators: jesterKing, stiv
Re: finding subsurface vertices
for a good obj export you can use this script :SamAdam wrote:hey all, I need to extract the vertices from blender objects with subdivision surfaces to create .obj files.
is there a direct mathematical formula I can apply, or a way to access the virtual coordinates?
http://jmsoler.free.fr/util/blenderfile ... odif235.py
You can get the subsurfed data calling the GetRawFromObject():
http://www.blender.org/modules/document ... FromObject
Last edited by jms on Thu Dec 02, 2004 6:39 pm, edited 1 time in total.
Zoo-3D.Blender, Ze French-Speaking Community SKB My french book about Blender.
Seems NMesh.GetRaw(objectName) does NOT apply subdivisionsurfaces, only returns the nmesh itself. Since subdiv-level is per nmesh and not per object there is no reason why there shouldn't be such a function, like NMesh.GetRawFromNMesh(name) or something (does all deformation that is applied to the mesh, irrelevant of the controlling object).
Quite annoying when exporting a nmesh that you need the object name for it to be exported, and then armatures are applied aswell.
ps. As a sidenote, it would be GREAT if GetRawFromObject/NMesh preserved vertex weights (for bones that is), although I believe it would give the wrong results as armature-deform is applied BEFORE subdivision in blender.
Quite annoying when exporting a nmesh that you need the object name for it to be exported, and then armatures are applied aswell.
ps. As a sidenote, it would be GREAT if GetRawFromObject/NMesh preserved vertex weights (for bones that is), although I believe it would give the wrong results as armature-deform is applied BEFORE subdivision in blender.