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
1
Question by GrauwFF · Feb 28, 2017 at 10:34 PM · animationrenderingskinning

Animator 'Always Animate' & skinning 'Update when offscreen' does not work

Hi,

I’ve got a skinned mesh whose bones are animated by an animator which has the culling mode set to "Always Animate". The skinned mesh also has the "Update when offscreen" option set. This skinned mesh is on a layer which is excluded from the main camera, and only rendered by DrawRenderer() in command buffers which I construct manually.

When I run this, the skinning does not update. Only when I add a dummy camera which "sees" the skinned meshes they update (if I rotate it away, they do not). So regardless of the above mentioned settings, frustrum culling still seems to be occurring and preventing the skinning.

How can I force the skinned mesh to update without having the camera render them?

Any hacks involving an extra camera to trigger the skinning without actually rendering it, or manually triggering the skinning somehow, or involving shader replacement, would also be acceptable. Whatever works.

Comment
Add comment · Show 4
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 MarshallN · Mar 01, 2017 at 12:47 AM 0
Share

You've probably already checked this, but when you enter Play mode, the 'Update When Offscreen' setting is still checked on the model, right? Just making sure you don't have a script somewhere that's setting it accidentally. If it's not that, I dunno what could cause that, I'm not turning up anything useful in research.

avatar image GrauwFF MarshallN · Mar 01, 2017 at 09:11 AM 1
Share

Yes, I’ve confirmed that the settings are also correct in play mode. It looks like there is a skinning optimisation which ignores that "Update when offscreen" checkbox.

I’ve found a workaround, when that aforementioned dummy camera is present, by setting skinned mesh’s materials count to 0 I can make it skin without actually causing any draw calls. Then in the DrawRenderer() calls I manually pass in the desired material. This is annoying but at least it works. Further suggestions are appreciated.

avatar image MakinStuffLookGood · Aug 03, 2017 at 05:23 PM 0
Share

@GrauwVG did you report this as a bug? Glad you found this hack. I'm doing the exact same thing to avoid extra cameras/culling so it's a bit of a bummer that we have to do this.

I'm creating a repo to send to Unity, but in the mean time, thanks for the workaround!

avatar image GrauwFF MakinStuffLookGood · Aug 04, 2017 at 07:38 AM 0
Share

Good to hear! I don’t think I submitted anything to Unity apart from this post.

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

6 People are following this question.

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

Related Questions

Transfer blendshapes between objects 1 Answer

Scene rendering within another scene 0 Answers

How to export turbosmoothed animated model to Unity3d? 0 Answers

Skinning editor not updated with reslice on PSB ,Skinning Editor not updating after reslice 2 Answers

Update Mesh immediately for rendering While changing blendshape 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