Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 topofsteel · Oct 05, 2012 at 08:04 PM · textureoffsettiling

What do the texture tiling and offset values relate too?

I have a large texture (1050x650) that I'm applying to a plane, it's a basketball court, so I need it centered and to fit on the plane, they have the same ratio. To get it to fit I'm having to use values like '0.01' for both the tiling and offset. At that range, the smallest value change has huge effects. I used a large texture thinking I would have more control. The 'Scale in Lightmap' setting are similar. What is the logic here and how can get more control of the texture? Thanks.

update:

When i started using unity and bringing in meshes from Max, the default scale of 0.01 seemed strange. And it made navigation difficult. Scrolling the mouse wheel would zoom right past the objects. So I got in the habit up scaling them up to 0.1. This didn't seem to effect the textures. In the first image, one mesh is set to .01 and the other to .1, they both use the same material with the texture scaled to .25. In the second image the mesh is set to .1 and you can see the texture scale and tiling values. I still cant get it centered. How can I correct this? Thanks!

alt text alt text

Comment
Add comment · Show 3
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 ThermalFusion · Oct 07, 2012 at 02:33 PM 0
Share

Are you perhaps using "use real world scale" when uvmapping in max? I think the best way to make tiling work as you want it to is to do it all in max, without using real world scale. Real world scale is the devil!

avatar image topofsteel · Oct 07, 2012 at 02:42 PM 0
Share

i'm not doing anything specific regarding UV in $$anonymous$$ax at all. But the building was modeled using real world scale in another program. I 'Generate Lightmap UV's' when bringing them into Unity. Are you familiar $$anonymous$$ax? How do I change that? Thanks.

avatar image topofsteel · Oct 07, 2012 at 04:10 PM 0
Share

the solution was to just create a plane in unity and apply the material to it. I'll look into the real world scale issue. I believe it's causing trouble with my lightmapping as well.

3 Replies

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

Answer by Owen-Reynolds · Oct 05, 2012 at 09:39 PM

The actual texture size (64x64 vs 1024x1024) has nothing to do with scale and offset. If you have a picture of a cat, it will look the exact same for any tile/offset, no matter the texture size. But, like normal, a stretched small texture will be grainy, and a shrunken large texture is a waste of memory.

Offset is always in Tiles, from 0-1. Offset of 0.5 means to shift by half of the current tile size. So, no matter what the tiling, if you see a texture is 1/2-way across a seam, offset 0.5 will fix it. Easiest to set tiling first, then tweak with offset. Also, offset of 1.5 is legal, but it's the same as 0.5 -- like rotation of 540 is the same as 180.

Depending on the unwrap, offset also tends to work backwards. 0.25 will often shift you left by 25% of a tiIe, instead of right.

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
avatar image
0

Answer by Graham-Dunnett · Oct 05, 2012 at 08:13 PM

Something is not right.... Typically a plane will have texture coordinates varying from 0..1 across their width and height. That should mean a texture is mapped perfectly to the plane. If your texture has the same aspect ratio as the plane, then it'll not be distorted. If you have a tiling factor of 0.01 it kinda suggests your plane has texture coords varying from 0..100. That's possibly your problem. To check this, all I did was create a plane in Unity, and a texture maps perfectly to it.

Oh, and to answer your question, tiling controls how many times the texture is duplicated across your plane. If your texture coords are 0..1, and you set a tiling factor of 3.0, then you'll get the texture mapped 3 times, so you'll have something like a noughts and crosses (oxo) board. Offset similarly controls where these tiles start. Play with a plane you create in Unity, it'll help you understand these things.

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
avatar image
0

Answer by lCmt · Nov 13, 2013 at 04:29 PM

Here's one for you. What if you wanted to rotate the texture around on a cube for example? My texture is a square that is placed on a cube and with my current set up it is upside down, I could rotate the object but it changes the XY controls of it when its let's say 90deg right. Is there a simple way to rotate the texture?

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

13 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

Related Questions

I need help with a Texture 2 Answers

Having Trouble with Texture Tiling and offset values. Very specific case. 2 Answers

Animation Tiling/Offset 0 Answers

The correct way of making Texture Atlas 0 Answers

Bullet Mark Texturing offset too far 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