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 /
This post has been wikified, any user with enough reputation can edit it.
avatar image
0
Question by android.rishabh · Oct 03, 2013 at 02:20 PM · texturetexture2dmovingblur2dtexture

Object Texture Showing Blur In Game

alt textHi

I am creating 2d game with unity. My player are moving on y direction & some obstacle are coming from opposite direction.The problem is when user are moving some blur effect are showing on obstacle.Please suggest me how can i remove it.

I have also fallow this link but non of them are giving solution for it.

I am Writing Player Movement script :-

  private MainScript mainScript;
      public float speedupward = 0.10f;
     
     // Script Created by Sonu Odesi...
     
     // Use this for initialization
     void Start () {
     mainScript = GameObject.Find("GameManager").GetComponent<MainScript>();
     }
     
     // Update is called once per frame
     void Update () {
     if(mainScript.gameState==GameState.GameRunning){            
                
            transform.Translate(Vector3.up* speedupward * Time.smoothDeltaTime);          
           
         }    
     }


Camera Movement Script:-

 private bool followPlayer;
 private bool followRocket;
 
 private GameObject _player;
 private GameObject rocket;
 private Transform myTransform;
 private float cameraPosition;
 private GameObject _MyPlayer;
 
 // Use this for initialization
 void Start () {        
     
     _player=GameObject.FindGameObjectWithTag("KidPlayer");
     _MyPlayer = _player.transform.root.gameObject;
     myTransform = this.transform;
     Application.targetFrameRate=60;
 
 }
 
 // Update is called once per frame
 void LateUpdate () {
     
         if(_player.rigidbody.isKinematic && followPlayer){    
             ScoreManagerScript.startScore = true;

             myTransform.parent = _MyPlayer.transform;
         }
     
         if(followRocket){
             myTransform.position = new Vector3(myTransform.position.x,_player.transform.root.transform.FindChild("PowerBoosterParent").transform.position.y+7,myTransform.position.z);
         
         }
 }
 
 public bool FollowPlayer{
     set{followPlayer = value;}
     get{return followPlayer;}
 }    
 
 public void FollowRocket(GameObject go,bool follow){
     rocket = go;
     followRocket = follow;
 }

http://answers.unity3d.com/questions/419202/2d-object-gets-blurry-when-moving.html

dsc_0015.jpg (165.9 kB)
dsc_0014.jpg (173.7 kB)
Comment
Add comment · Show 8
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 robertbu · Oct 03, 2013 at 03:33 PM 0
Share

$$anonymous$$y guess: this is an issue with the camera movement script. If you have a camera movement scirpt, post it so that folks on the list can take a look.

avatar image android.rishabh · Oct 03, 2013 at 03:48 PM 0
Share

Hey I have puted script for camera

avatar image tw1st3d · Oct 03, 2013 at 03:55 PM 0
Share

Organized for lack of headache.

 public class CameraScript : $$anonymous$$onoBehaviour
 {
     private bool followPlayer; 
     private bool followRocket; 
     private GameObject _player; 
     private GameObject rocket; 
     private Transform myTransform; 
     private float cameraPosition; 
     private GameObject _$$anonymous$$yPlayer; 
     
     void Start() 
     {
         _player=GameObject.FindGameObjectWithTag("$$anonymous$$idPlayer");
         _$$anonymous$$yPlayer = _player.transform.root.gameObject; myTransform = this.transform; Application.targetFrameRate=60; 
     } 
     
     void Update() 
     { 
         if(_player.rigidbody.is$$anonymous$$inematic && followPlayer)
         { 
             Score$$anonymous$$anagerScript.startScore = true;
             myTransform.parent = _$$anonymous$$yPlayer.transform; 
         }
         if(followRocket)
             myTransform.position = new Vector3(myTransform.position.x,_player.transform.root.transform.FindChild("PowerBoosterParent").transform.position.y+7,myTransform.position.z);
         
     }
     
     public bool FollowPlayer
     {
         set
         {
             followPlayer = value;
         }
         get
         {
             return followPlayer;
         } 
     }
     
     public void FollowRocket(GameObject go, bool follow)
     { 
         rocket = go; 
         followRocket = follow; 
     }
 }
avatar image robertbu · Oct 03, 2013 at 03:56 PM 0
Share

You posted your code as a 'comment'. You need to use the 101/010 button to format code. I "fixed" it, but the formatting is still impossible to read. I suggest you edit the question, delete the current code, paste in your code and use the 101/010 button to get this fixed.

As for your problem, 90% of all jitter issues posted to this list are solved by moving camera movement code from Update() to LateUpdate(). I don't know if that is your issue since I did not read the code.

avatar image android.rishabh · Oct 03, 2013 at 03:58 PM 0
Share

H Robert

Sorry for not well formated code .I am trying y ou suggestion give me a 5 $$anonymous$$.

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by HanClinto · Oct 03, 2013 at 06:46 PM

The blurring in your picture is a photograph -- subject to long exposures that will blend multiple actual frames together (similar to the human eye). This is nice for showing the perceived effect, but I'm not sure that Unity is actually causing this blurring. Does this blurring show up when you take a screen shot on the actual device itself? If not, then I suspect that the problem is due to ghosting of the LCD -- slow image response and whatnot.

Comment
Add comment · Show 1 · 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 android.rishabh · Oct 05, 2013 at 11:24 AM 0
Share

Hey I am testing on Ipad 3 .Is you think it is slow image response ??

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

16 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

Related Questions

Blur / healing brush effect on specific area of a 2D texture 0 Answers

Select part of the texture in GUI.DrawTexture 2 Answers

Paint Grid Texture 1 Answer

in game - how to partly invisible an object ? 2 Answers

Animating a Texture2D using cells 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