Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by eeup · Nov 11, 2014 at 11:37 AM · rotationalignmentalign

Align 2 objets edge to edge

Hi,

I need help to align properly 2 objets (imported from 3DS via fbx) edge vs edge.

These are complex shapes (buildings), and I need to align them along the road (another fbx from 3ds), and my problem is : they need to be rotated to align perfectly, but I don't know the angle.

I can use snapping to make vertices join perfectly, but my models are still not aligned (I tried to set manually the angle, but that's still not perfect).

Thanks for any help.

Comment
Add comment · Show 7
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image MrSoad · Nov 11, 2014 at 11:28 AM 0
Share

Can you set their alignment in 3ds then import them in Unity?

avatar image eeup · Nov 11, 2014 at 11:31 AM 0
Share

Thanks for the tip, but that's unmanageable. Each building is more than 500k polygons, and we had to split them into separate 3DS scene so that the import in unity takes less than 10 hours.

@++

avatar image eeup · Nov 11, 2014 at 11:32 AM 0
Share

Addendum : the whole scene is 22 buildings modeled in detail, plus the road and environnement.

We're talking about millions of polygons in total (probably 5$$anonymous$$), and that's why we had to split it in many separated objects.

Thanks

avatar image AlwaysSunny · Nov 11, 2014 at 11:40 AM 0
Share

I don't have a clear picture of the problem. A complex 3D scene must be re-constructed in Unity, but you can't edit the models such that their rotations and origins make reconstruction easy? Why not, exactly? Finding a "perfect" arbitrary rotation to achieve a seamless reconstruction is so impractical, I wouldn't wish that job on anyone.

avatar image eeup · Nov 11, 2014 at 11:54 AM 0
Share

Hi,

I'll try to make it simple :)

On the one hand, I got my different buildings. Each building is a separate 3DS scene. They are always designed with their walls for$$anonymous$$g 90° angles with the screen (don't know how to explain).

On the other hand, I got the road and the environnement, which is another 3DS scene. The road is not perfectly straight, it makes a sort of "S".

If I want to put the buildings along the road, each building must be slightly rotated so that its outside walls match the edge of the road and there is no gaps between the road and the entry of the building.

And that's my issue. I can rotate each building by hand, but the matching is never perfect. I snapped on corner of my building to the road, and I try to adjust the rotation by after, but it's very complicated to get it perfect.

Thanks for your contribution.

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by MrSoad · Nov 11, 2014 at 11:56 AM

Have you still got your original scene. If so place a marker at the root of each building in the anchor position with correct rotation(now delete everything from this scene except for these markers and save as a new file). Now import this simple marker scene into Unity. Now parent your Buildings onto their respective marker positions and set their local position and rotation to (0,0,0). They should all be in exactly the right place with exactly the right rotation if you do this.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image eeup · Nov 11, 2014 at 12:25 PM 0
Share

Thanks for the tip.

What sort of marker should I use in 3DS ?

avatar image MrSoad · Nov 11, 2014 at 12:29 PM 0
Share

Anything you want from a std cube to an appropriate type of empty. As long at the marker has a position and rotation attribute then it will do the job required. Do a small test first to make sure you have everything right, then when you know it's working correctly do it for your full scene.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

align y axis of a gameobject to z axis of another gameobject ??? 1 Answer

Aligning Y-Axis rotation of stretched gameobject to specific angles while retaining initial position 0 Answers

How can I obtain the overall rotation of multiple selected gameobjects in the unity editor? 2 Answers

How to handler rotation of a Gameobject while aligning it with normals 1 Answer

Aligning to a specific axis (6 DOF Descent-like movement) 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges