Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

camera trouble

Discussion in 'Scripting' started by JohnSonLi, Feb 15, 2013.

  1. JohnSonLi

    JohnSonLi

    Joined:
    Apr 15, 2012
    Posts:
    586
    I used a perspective depth camera to render a moving object.but as it moves.I see a lot of residual images.these images overlay on each other.
    How did this happen?
     
  2. lockbox

    lockbox

    Joined:
    Feb 10, 2012
    Posts:
    519
    That's hard to say without seeing it. Can you put your scene in a Webplayer or post a screenshot?
     
  3. JohnSonLi

    JohnSonLi

    Joined:
    Apr 15, 2012
    Posts:
    586
    How can I insert an image?It is in my PC
     
  4. Andulvar

    Andulvar

    Joined:
    Feb 15, 2013
    Posts:
    6
    as it happens hit print screen button which is generally to the right of f12, then go into say paint and paste it and save as image, and upload it
     
  5. lockbox

    lockbox

    Joined:
    Feb 10, 2012
    Posts:
    519
    click on "Reply to Thread", then next to the "Post Quick Reply", click on "Go Advanced", then scroll down and click on "Manage Attachments"

    Then look for "Add files" and upload your file, and then after it's uploaded, click on "Insert Inline"
     
  6. JohnSonLi

    JohnSonLi

    Joined:
    Apr 15, 2012
    Posts:
    586
    can you see it?
     

    Attached Files:

    • $cam.jpg
      $cam.jpg
      File size:
      72.9 KB
      Views:
      788
  7. JohnSonLi

    JohnSonLi

    Joined:
    Apr 15, 2012
    Posts:
    586
    the man moves from up to down.
    there are 2 cameras in the current scene.
    one is perspective depth cam,rendering this man.
    the other is ortho cam,rendering NGUI.
     
  8. lockbox

    lockbox

    Joined:
    Feb 10, 2012
    Posts:
    519
    Yes, I can see the image. Thanks for adding the extra information on what you are doing. More information is always a good thing.

    Unfortunately, I have no idea what is causing that to happen.

    Anyone?
     
  9. Andulvar

    Andulvar

    Joined:
    Feb 15, 2013
    Posts:
    6
    maybe try deactivating the perspective depth camera, and move the character again afterwards, and see if it persists, that way we can narrow down where it is coming from?
     
  10. PaulR

    PaulR

    Joined:
    Nov 14, 2012
    Posts:
    43
    It's because you are not clearing your color buffer from 1 frame to the next. Check that at least one camera has clearFlags set to skybox or solid color, or ensure you are rendering to every pixel of the screen (say a full screen quad...).
     
  11. JohnSonLi

    JohnSonLi

    Joined:
    Apr 15, 2012
    Posts:
    586
    You mean not all of them are depth camera?
    I fixed some hours ago,by one solid-Color camera,I dont understand it when I did it,now you make me clear.
    Thanks.
    and thank lockbox and andulvar as well