Direct3D Mesh Axes Adjustment
-
I have a mesh that I generated from the
Mesh.TextFromFont
method. I would like to center its axes so that when I rotate the mesh along the Y axis, it rotates around the center of the object instead of the beginning of the 3d text mesh. How can I center the axes of a mesh object in such a case in Direct3D? :confused:
John 3:16: "For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life."
-
I have a mesh that I generated from the
Mesh.TextFromFont
method. I would like to center its axes so that when I rotate the mesh along the Y axis, it rotates around the center of the object instead of the beginning of the 3d text mesh. How can I center the axes of a mesh object in such a case in Direct3D? :confused:
John 3:16: "For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life."
What I would do is create an invisible parent object, add the text mesh to the parent, so that any transformations done on the parent will get done to the child. Offset the child's position in the parent appropriately, then rotate the parent.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: The Secular Left, the Religious Right, and Prejudice Judah Himango
-
What I would do is create an invisible parent object, add the text mesh to the parent, so that any transformations done on the parent will get done to the child. Offset the child's position in the parent appropriately, then rotate the parent.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: The Secular Left, the Religious Right, and Prejudice Judah Himango
-
So there is no way to actually change a meshes axes in Direct3D? :confused:
John 3:16: "For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life."
Good question. I'm a relative newbie when it comes to Direct3D, so I can't say for sure. Let me look into it further and get back to you (I'll email you). God bless.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: The Secular Left, the Religious Right, and Prejudice Judah Himango