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 Sacrosanct · Sep 14, 2012 at 08:24 PM · textureoffset

Texture offset problem

Dear Unity Community,

I have a character that moves by mouseclick, actually it doesnt move, the texture of the background plane moves in the opposite direction then it looks like the character is moving. Im using a script to determine the distance between mouseclick and character and then apply a texture offset with this function (C#):

this.renderer.material.mainTextureOffset += viewingdirection;

the texture is moving in the right direction and it looks just fine. However when the texture reaches the end of the picture, it has an ugly border and starts over again (surprise!). To solve that i added a "smooth" border in photoshop, so that its not visible anymore. Anyways, unity seems to have a different border at bottom and top then at left and right of the picture. its hard to explain. Take a look at this image:

alt text

A bit right from the middle of the image is the border between left and right side of the image (picture's vertical end!), the very clear horizontal line is the border between top and bottom side of the image. I added a stroke in photoshop so that it is better visible (stroke of 3 pixels AT ALL 4 SIDES!!).

In the bottom half of the picture is another screenshot. This time i flipped the image 90 degrees (in photoshop, not unity!) still with the same 3 pixels stroke. Now the funny thing wich has been driven me crazy is: The clear line is still at the same place! If the image is not flipped, the line is between the top and bottom of the image, if the image is flipped 90 degrees, the line is between the right and left of the image but it is still the same picture with the same border all around it in every direction. Hope you understand what i mean.. Really hard to explain!

Does anyone have an idea on how to solve this?

thanks in advance -Sacrosanct

screenshot.png (492.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

0 Replies

· Add your reply
  • Sort: 

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

9 People are following this question.

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

Related Questions

can't offset normal map 1 Answer

Offset detail texture in c# 1 Answer

SetTextureOffset not visible 1 Answer

How I make finger touch move texture offset 0 Answers

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


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