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 /
avatar image
0
Question by Ragatto · May 26, 2017 at 11:45 AM · camerarenderingfbxflickeringculling mask

Part of mesh disappears on certain rotation angles in first person.

Hi. I created two cameras at the same position; Camera B is son of Camera A.

Camera B has a culling mask set to Weapon Layer only, meanwhiele Camera A has a culling mask which include all except weapons(this metod to avoid meshes compenetrations with first person object and walls).

I set the Depth etcetera, etcetera. The game shows the wapon, but the fbx is divided in weapon mesh and arms mesh.

So that is what happens. I don't know why but the hands mesh disappear/flicker at certains rotation angles, but that doesn't happen to the shotgun.

Here's a pic of inspector. alt text Some help?

stringa.png (34.0 kB)
Comment
Add comment · Show 2
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 danmartelly_caliper · May 26, 2017 at 12:20 PM 0
Share

I had a similar problem when I was procedurally creating meshes. When the mesh was nearly out of view it would suddenly disappear (rather than waiting until it was truly out of view). I think what fixed it for me was calling $$anonymous$$esh.RecalculateNormals on the mesh. I think $$anonymous$$esh.RecalculateNormals must also call $$anonymous$$esh.RecalculateBounds because most likely my bounds were misaligned and/or smaller than the object causing the camera to cull it early.

So, maybe try calling $$anonymous$$esh.RecalculateBounds in the void Start() of an empty attached $$anonymous$$onoBehaviour on the problem mesh's GameObject?

avatar image Ragatto danmartelly_caliper · May 26, 2017 at 05:31 PM 0
Share

Hi.

How can I use $$anonymous$$esh.RecalculateBounds in Start? I tried to put it inside Start's {} but Visual Studio doen't allow it.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by William4458 · May 29, 2017 at 06:31 AM

@Painboy There is a problem with unity's rendering system when setting the near clipping panels to low in which everything that is being rendered on that camera will be flickering when turning the camera. There isn't really a way to fix this other than playing around with the near clipping panel's values a bit and maybe moving the weapon and arms a bit further from the camera. I had the same problem and that's what kind of fixed it. I hope unity will fix this "bug" one day. Hope this helped and if it's the answer you're looking for please just take a moment and set it as "best answer" (I'm collecting karma points ;-)

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 Ragatto · May 27, 2017 at 11:33 PM

SOLVED!

The guilty was inside the hand's mesh in scene hierarchy. See this: alt text

Root bone was not set as root_jnt(the first joint of the hands skeletal mesh) I just set as ROOT BONE root_jnt, so now every child of root_jnt are visible.


stringa.png (57.4 kB)
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

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

Related Questions

very flat fbx objects disappear in game view? 2 Answers

[Solved] Object Flickering When Camera Moves Around 6 Answers

Can i make an Object A appear always in front of an object B, but have an object C both in front of A and behind B? 0 Answers

Masking elements with non-rendered layers? Culling masks, camera, render textures 0 Answers

Camera image flickers with SteamVR 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