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 VesuvianPrime · Jul 09, 2013 at 12:40 PM · camerameshnot visible

Mesh not showing in camera

Hi all

I have an orthographic camera and I build meshes and assign materials to them to simulate 2d graphics.

I've been having a lot of success with this approach, however I have now run into a situation where one mesh doesn't show in camera.

alt text

You can see the pink arrow in my editor view, but in the camera preview (which is identical to the actual game camera) it is gone.

I've played with my culling masks and render layers to make sure that isn't the issue. Other than that, I'm simply not sure how to debug this.

Does anyone have any suggestions on why the mesh isn't showing?

Thanks, Ves

Comment
Add comment · Show 7
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 swyrazik · Jul 09, 2013 at 01:59 PM 0
Share

Does you pink arrow have a higher value of position.z than the camera's position.z? If not, then that is your problem. From what I can see in the screenshot, it's possible to be that problem.

avatar image VesuvianPrime · Jul 09, 2013 at 02:02 PM 0
Share

I don't think that's the issue. Here's another picture from a different angle:

alt text

avatar image swyrazik · Jul 09, 2013 at 02:07 PM 0
Share

do you use the same components (mesh, scripts, shaders, etc) for both objects you have on the editor?

avatar image VesuvianPrime · Jul 09, 2013 at 02:18 PM 0
Share

Admittedly the object in the foreground is a little different to the one in the background. This is my scene with more planes that are identical to the icon:

http://i.imgur.com/36olVQy.png

The inspector:

http://i.imgur.com/5FkGw$$anonymous$$0.png

Now, interestingly, If I rotate the scene camera to a certain angle I end up with this:

http://i.imgur.com/pNd2bhz.png

Notice how the icon has been cut away by the furthest back plane? I figure this is probably an issue with the transparency sorting method of the scene-camera though

avatar image swyrazik · Jul 09, 2013 at 02:35 PM 0
Share

If those two objects have something different, then it's obviously something that has to do with those differences. I can't figure something out right now.

Show more comments

3 Replies

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

Answer by VesuvianPrime · Jul 10, 2013 at 05:12 PM

So I slept on the problem, and found the issue was that the GameObject transform position was set outside of the camera rect. I'm not sure WHY this was stopping my geometry from rendering, but it's solved the issue for me.

Comment
Add comment · Show 2 · 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 cowtrix · Dec 17, 2013 at 10:40 PM 0
Share

Hey Vesuvian, I figure this is a very old question but I thought you might want to know what the problem was (I think!). An orthographic camera, which is what you have there, will only render within its view box.

avatar image VesuvianPrime · Dec 17, 2013 at 10:56 PM 0
Share

Thanks Cowtrix, I think this still begs the question of why it only goes by the transform and not the screen bounding rect.

avatar image
1

Answer by frugoman · Dec 13, 2015 at 03:58 PM

I'll post this in threads that presents the same issues, cause i saw that there is a lot of them. In my case, it was the animator that was presenting some wired bug, that it makes my gameObject not showing in my android device... i checked with a simple boolean if the object, mesh renderer, children, parent, and they were all active, and not showing anyway... (I also checked that the position was correct, and it was..)

so i disable the animator from the object that wasnt showing and now i can see it... try it out. I hope that this helps someone, since i had no idea what to do when i run through this issue I'm, in Unity 5.3

Comment
Add comment · Show 2 · 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 Emre_U · Feb 20, 2016 at 10:35 PM 0
Share

Not sure why it is happening but yeah I couldn't see my gameobject until I disabled the animator. This is weird and the most annoying though as I have lost my animations on my player.

But is it the final solution frugoman? Have you find a way to play your animations?

Unity 5.3.2f1

avatar image Tactical_Beard Emre_U · Feb 24, 2016 at 04:30 AM 0
Share

To fix the problem you need to enlarge the bounds(extents) on the skinned mesh renderer until the Camera renders it.

avatar image
1

Answer by Tactical_Beard · Feb 24, 2016 at 01:07 PM

For those who get this in the future, you need to enlarge the bounds until the Camera renders it. alt text


captureunity.png (78.4 kB)
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 sj631 · Jul 28, 2021 at 10:19 AM 0
Share

Just check the "Update When Offscreen" option of skinned mesh renderer component

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

21 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

Related Questions

stencil mesh,stencil mesh-how to i get a stencil mesh to a camra rendering pipe to cull the mesh behand the mesh. dimish the draw call count 0 Answers

How do i orbit the camera around a mesh using mouse 3 0 Answers

How do I check if the mouse is over a VISIBLE vertex? 1 Answer

Move gameobject pivot 6 Answers

Front Culling 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