Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Direct3D Mesh Axes Adjustment

Direct3D Mesh Axes Adjustment

Scheduled Pinned Locked Moved C#
question
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bneacetp
    wrote on last edited by
    #1

    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."

    J 1 Reply Last reply
    0
    • B bneacetp

      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."

      J Offline
      J Offline
      Judah Gabriel Himango
      wrote on last edited by
      #2

      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

      B 1 Reply Last reply
      0
      • J Judah Gabriel 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

        B Offline
        B Offline
        bneacetp
        wrote on last edited by
        #3

        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."

        J 1 Reply Last reply
        0
        • B bneacetp

          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."

          J Offline
          J Offline
          Judah Gabriel Himango
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups