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 gump74 · Jun 10, 2013 at 08:24 PM · transforminspector

I am having an issue with visual distortion

Greetings all, I am having two issues, one with visual distorion and another with transform values not being properly represented in the inspector. I belive that these two issues may be related so I am putting them both into the same question. To begin with the scene is fairly simple. If it heps anyone I am working on a side scrolling fighter game like mortal combat. There is a plane, a model, some lights and a camera. The plane, lights and camera do not move. The camera is facing the side of the model viewing it as it moves along the x axis. The model is facing -x and only moves along the x axis. At one point I moved the plane so the model would walk along the edge of the plane to see it if was moving in a straight line and it is. The first issue is visual distortion of the model as the model is moving along the x axis, it appears to be larger and closer when it is on the sides of the view and smaller and farther away when it is in the center. I cannot think of a reason why this would happen because the model is only changing its x coordinates. The seccond issue is watching the transform of the mode in the inspector the z axis value is changing, even though it is not actually changing based on the test I did with the edge of the plane. If I hold down the button the z axis will go from 0 to -10 and snap back to 0 and start to go back to -10. I tried setting the value of the z axis while it was alomost -10 to -10 and the location of model moved quite far. I cannot explain this behavior, the inspector reports the position of the model moving but if I set the inspector to the values it has then it moves way off. I believe these two issues are related because if the camera thinks the model is at a different z then it would change the size. Has anyone seen this kind of issue before?

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 Benproductions1 · Jun 11, 2013 at 04:46 AM 0
Share

For the weird movement problem you need to post the code!

avatar image gump74 · Jun 11, 2013 at 04:49 AM 0
Share

alt text

This is a composit of the distortion, it is not huge distortion but it is noticable.

distortion issue.gif (31.5 kB)
avatar image robertbu · Jun 11, 2013 at 04:50 AM 0
Share

What happens if you pull the camera back from the scene then change the field of view to match the above layout?

avatar image gump74 · Jun 11, 2013 at 07:08 AM 0
Share

here is the code.

 } else if ( Input.GetAxis( "Horizontal" ) ) {
 //Debug.Log( "button 7 pressed" );
 var inp:float = Input.GetAxis( "Horizontal" );
 $$anonymous$$over(inp);
 }
 
 function $$anonymous$$over( inp:float ) {
 var style = ["walking", "english_step", "irish_step" ];
 if ( ! animation.IsPlaying(style[mode]) ) {
 animation[ style[mode] ].speed = inp;
 if ( inp < 0 ) animation[ style[mode] ].time = animation[style[mode]].length;
 animation.CrossFade( style[mode] );
 }
 charCont.$$anonymous$$ove( transform.forward * Time.deltaTime * speed * inp );
 }
avatar image Benproductions1 · Jun 11, 2013 at 10:31 AM 1
Share

Since the problem in the title is resolved and these issues are obviously not related, why not close this questiona and ask another specific to your other problem?

Show more comments

1 Reply

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

Answer by Sequence · Jun 12, 2013 at 12:00 AM

I believe you are dealing with a perspective camera. Try selecting the camera and changing the field of view. It warps more or less doesn't it? You're probably making a "2D" platformer, correct? What you probably want is an orthographic camera. Right above the field of view slider, you should see a pulldown menu. Change from perspective to orthographic. The camera is now perspective-less. You may need to change the camera's distance from your objects and the new "size" slider to get it just right and to get your objects to show at all. Hope this helps!

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

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

bone rotations changed in 4.3.2 inspector? 0 Answers

Inspector has no layer and transform has no z-axis 1 Answer

GameObject position not matching up to its position in the inspector even though they are clearly linked [answered] 1 Answer

Why does the Transform component look like Image 1, instead of the standard one (Image 2) in the Inspector window? 1 Answer

How to update Mecanim Transform Mask in inspector when model changes 0 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