• 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 Qasem2014 · Aug 19, 2015 at 04:05 PM · bulleteffectbody

HELP . 2d Sprite become invisible in camera position change !

HI

look at this images :

alt text alt text

i have 2 game object . two 2d sprite that crated from "create->2dobject->sprite" menu . this sprites have a image of human body and bullet effect on it . as you see in first image bullet effect is good But when camera rotate around the human body , it disappeare (second image) !

for solving this problem i should move bullet effect sprite forward at least 1 unit in 3d world BUT it should be on human body and attache to it !

i change the 2d sprite to a 3d box that have a "Transparent/VertexLit" material . but this material have same issue with 2d sprite !

have can i solve this problem ?

"Excuse me for my bad english"

1.jpg (32.6 kB)
2.jpg (31.3 kB)
Comment
Add comment · Show 6
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 arun.pandey89 · Aug 19, 2015 at 04:44 PM 0
Share

There are very little details over here . Can you paste some code (Camera movement ) and unity snippets showing position of camera and sprite (before and after movement ) ?

There are fair chances that this sprite/object is going out of camera's sight , when you're rotating/moving it .

avatar image Qasem2014 · Aug 19, 2015 at 05:07 PM 0
Share

there is no code here !

camera move with animation , sprite disappeare when camera move in front of it . sprite always is in camera's sight but it disappeare in different viewing angle !

avatar image Denvery · Aug 19, 2015 at 05:52 PM 0
Share

Please see your camera's Clipping Planes settings. Try to extend these settings (i.e., set -500000, +500000 for experiment)

(It seems your object may disappear because it clipped when the camera rotates)

avatar image SnubbleJr · Aug 19, 2015 at 06:09 PM 1
Share

Have you tried changing the near and far clipping plane of the camera?

Have you checked the sprite renderer's ordering is correct too? Higher ordered sprites are rendered on top of lower ordered sprites.

The z distance between sprites have no effect on their ordering. That means that a sprite with a higher order in layer, that is technically behind another sprite in 3d space, will still be rendered in front.

avatar image Qasem2014 · Aug 19, 2015 at 07:57 PM 0
Share

thank u guys for your responds :)

dear snubblejr , u right . i change the sprites order and it solve :) thank u

post your comment as answer so i choose your answer and close the question .

avatar image SnubbleJr · Aug 19, 2015 at 09:15 PM 0
Share

Done. (I actually posted the answer before the comment but it need approval) :)

1 Reply

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

Answer by SnubbleJr · Aug 19, 2015 at 07:48 PM

Have you tried changing the near and far clipping plane of the camera?

Have you checked the sprite renderer's ordering is correct too? Higher ordered sprites are rendered on top.

The z distance between sprites have no effect on their ordering. That means that a sprite with a higher order in layer, that is technically behind another sprite in 3d space, will still be rendered in front.

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

29 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

Related Questions

bullet hit effect material color be based off the object hit? 0 Answers

Unitys Particle System wont work like i want 0 Answers

How do I make this script emit different particles for different surfaces & objects? 2 Answers

Bullet impact effect not working. Made from a Brackeys tutorial 2 Answers

How to make bullet holes on terrain? 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