Jump to content

Get Roations from Imported Mesh


Pryme8
 Share

Recommended Posts

So when I import a obj file, I would expect that the positioning and rotation for the sub objects in the file should be stored.

What seems to be happening is only the vertexData is coming over? I am basically loading an obj, with a naming convention for that has a bunch basically blank meshes (they are 0 size cubes) that I later parse once its loaded with regex to identify its preset likeness.  Now I was able to get the positioning corrected with taking the first 3 values of the vertexData, and setting that as the new Instances position.  But I cant seem to find the information for rotation or scale for the object, which Im pretty sure Is stored on the obj file for each object besides its vertexData.  How do I access this information? Im I going to need to extend the object loader?

*edit actually it looks like this information is not stored in a obj file... wow ok, umm I guess modify the obj file and the obj loader to include this information?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...