Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
0
Question by gocraig · Sep 25, 2015 at 11:55 PM · texturematerial

Material applied to a cube appears to change direction

Hi, I am a newbie to Unity, so apologise up front for what may seem like a simple question. I am using Unity 5, on a Windows 7 Laptop.

I have a Texture, that is bricks.

I have created a Material in Unity using the brick Texture.

Its not what I want to do, but to demonstrate the issue, I have created a cube, and I have applied the Material to the Cube.

alt text

The cube is level to the ground, rotated to 100 degrees on the Y so we can see two sides. As you can see, the bricks on the left hand panel are level, and correct, but those on the right hand panel have rotated. I have tried using both Texture and Material and experience the same problem.

The reality of what I am doing is to apply my Texture/Material to a building, and what I see is the same symptom where the brick direction changes each time the wall goes through a 90 degree turn.

I am sure there is a simple (ish) answer, can anyone help ?

Cheers

Craig

capture.png (66.1 kB)
Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by cjdev · Sep 27, 2015 at 06:50 AM

What's going on is that your UV set is aligned so that the square face on the left is correct but the face on the right is rotated 90 degrees in your UV space so that it's mapping the vertices in the wrong corners of your texture. To fix it just go in and find that square face in a modeling package and rotate the individual face on the UV editor so that it aligns correctly with your model.

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 gocraig · Sep 27, 2015 at 07:33 AM 0
Share

Thanks @cjdev ... I did think that that might be the case for the buildings that I have had modelled, but didnt understand why it would be the case on a cube generated by Unity itself ??

Any thoughts ?

avatar image cjdev · Sep 27, 2015 at 08:19 AM 0
Share

It's most likely because Unity unwraps the cube in a way that leaves the most edges connected, reducing the number of seams in the model. That unwrapping would look something like a t and because of the way it's done the side faces and front faces are at 90 degrees from each other. Not ideal for certain applications no doubt, but it's generally a trade-off between seams and orientation and it appears Unity went with the former.

avatar image
0

Answer by gocraig · Sep 27, 2015 at 11:09 AM

Thanks @cjdev I will see what I can work out from here then.

Comment
Add comment · 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

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

31 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

use sprites as material in 3D shader 0 Answers

Material disappears after LoadScene 1 Answer

Keeping the size of a texture constant across different 3D gameobjects 0 Answers

What right way to SetTextureOffset of material which has dynamic count owners? 0 Answers

How do I get smooth edges for a voxel game? 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