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. Dismiss Notice

Camera Projecter - Render beyond 180°

Discussion in 'Assets and Asset Store' started by WillNode, May 12, 2017.

  1. WillNode

    WillNode

    Joined:
    Nov 28, 2013
    Posts:
    420
    I just found the way to do it and would like to develop this much futher so I set it on asset store.

    This is the thread for my asset - Camera Projecter.

    It is an image effect that combines rendered cubic texture with specific kind of sphere or map projections.
    Realtime rendering. Supports all platform. Maybe not smooth if this used in your game but you should check the documentation/demo first.

    ProjectionTypes.jpg

    Asset Link: http://u3d.as/MT0
    Documentation: http://bit.ly/CameraProjecterDocumentation
    Demo (Windows): http://bit.ly/CameraProjecterWindowsDemo

    Feel free to ask about the asset, suggestion or feedback.
     
    qoobit likes this.
  2. WillNode

    WillNode

    Joined:
    Nov 28, 2013
    Posts:
    420
    Okay. It's already been few weeks. I set up some researches to make deep optimization on performance.
    Turns out that somewhere in Quality Settings have some showstoppers that hugely impacts in using multiple cameras. By using the "Fast" configuration I can make up smooth performance even after I added trees and bushes in scene example.
    I'd also found that RenderToCubemap has benefit itself to avoid some graphics artifacts in corners and trees.
    Screenshot (376).jpg Screenshot (378).jpg

    The package will be updated in few days so stay tuned!
     
  3. Dillipkumar

    Dillipkumar

    Joined:
    Apr 14, 2017
    Posts:
    1
    I am using this asset for 190 field of view. As per the documentation, the field of view is vertical.my doubt is whether the horizontal field of view is also set to 190 when we set the projection to "Stereographic".
     
  4. WillNode

    WillNode

    Joined:
    Nov 28, 2013
    Posts:
    420
    All projection preserves vertical camera angle. This means that horizontal angle may be adjusted to keep the screen undistorted. You can keep the horizontal angle the same with vertical by keeping the screen in ratio 1:1, using camera.aspect
     
  5. WillNode

    WillNode

    Joined:
    Nov 28, 2013
    Posts:
    420
    Hi,

    Some projections have a limit to certain FOV, like orthographic and equisolid, they've limited to 180 degree of FOV. Anything larger just simply make the render smaller. I have verified that FOV settings matches the actual vertical FOV of all kinds of projection available, so perhaps, can you give more specific detail information to that?
     
  6. WillNode

    WillNode

    Joined:
    Nov 28, 2013
    Posts:
    420
  7. sarathzz

    sarathzz

    Joined:
    May 2, 2018
    Posts:
    6
    hi @WillNode

    i interested about your asset and have a couple of question to ask. my unity version is 2017.3.1f1 and I'm a newbie here in unity.

    here is my question:
    1. is it support for VR?
    2. is the projection effect work with every game object? I tried your demo and cant see the effected happen with the sphere object?

    Thank you so much!
     
  8. WillNode

    WillNode

    Joined:
    Nov 28, 2013
    Posts:
    420
    Thanks for the interest, and....

    1. Yes but No. what's your intention with that? This asset makes Unity capable of rendering panorama view on 2D screen, but in VR that would be useless at all**. Note that VR in unity definitely works without this asset.

    **) okay maybe it's useful if you setup multiple screen first for VR and second for external screen.

    2. Definitely works. Which sphere object you're talking about?
     
  9. WillNode

    WillNode

    Joined:
    Nov 28, 2013
    Posts:
    420
    Wait a minute, I just tested that VR works for this asset but it doesn't apply stereo separation value. I'll take a note for that.
     
  10. WillNode

    WillNode

    Joined:
    Nov 28, 2013
    Posts:
    420
    VR support has been finished! I will release it in under a week.
     
  11. WillNode

    WillNode

    Joined:
    Nov 28, 2013
    Posts:
    420
    Whoops. My bad. It took over a month. But anyway the new version has been released. It requires Unity 2018.1 because of VR Support. Also we removed six-camera separation as it's more unstable than just Camera.RenderToCubemap().

    Btw, the documentation and Web Demo has been updated. Enjoy!
     
  12. storyfarmtv

    storyfarmtv

    Joined:
    Jun 12, 2018
    Posts:
    1
    can i use this with Camera filters? such as custom AA(CTAA), or Beautify....
     
  13. WillNode

    WillNode

    Joined:
    Nov 28, 2013
    Posts:
    420
    Of course. Just put the efect in Main Camera. I have tested that Post Procesing Stack works with latest CP version.
     
  14. adrdop

    adrdop

    Joined:
    Jun 14, 2017
    Posts:
    1
    Hi,


    We bought your camera projection asset but we have some problems when we render the frames.


    I hope you will be able to fix it.


    One of the problem is that we are not able to correctly render some post processing effects like occlusion or bloom. The occlusion lets the cube map appear at the bottom of the frame. The bloom effect is different from one face of the cube map to another if the light source is near one of the edge. Other effects are not working either like the SE screen shadow ...


    The last problem is that sometimes it's rendering weird artefact to a certain amount of frames. It's not consistent, it's affecting the frames randomly... that mean we have to render multiple times the same shot and mix the different results in order to have a render without bugs.


    I have attached a screenshot of some bugs.


    Thanks for your help.

    Best regards,
     

    Attached Files:

  15. brha8286

    brha8286

    Joined:
    Jan 30, 2020
    Posts:
    1
    Does this work in HDRP?
     
  16. WillNode

    WillNode

    Joined:
    Nov 28, 2013
    Posts:
    420
    Not yet, unfortunately.
     
  17. TheFlyHawk

    TheFlyHawk

    Joined:
    Mar 23, 2016
    Posts:
    56
    upload_2022-1-22_11-52-28.png
    How do I get world points to screen coordinates?
    Can't get it correctly with this
    Camera.WorldToScreenPoint
     
  18. koirat

    koirat

    Joined:
    Jul 7, 2012
    Posts:
    2,009
    It should work, remember that WorldToScreenPoint returns pixels positions.
     
  19. TheFlyHawk

    TheFlyHawk

    Joined:
    Mar 23, 2016
    Posts:
    56
    Artboard.jpg
     
  20. WillNode

    WillNode

    Joined:
    Nov 28, 2013
    Posts:
    420
    I think it would not simply work with this asset. A custom calculation is needed.

    Hang in there I will write the function for you....
     
  21. TheFlyHawk

    TheFlyHawk

    Joined:
    Mar 23, 2016
    Posts:
    56
    Is it possible to provide a new attribute for transitioning from wide camera to standard camera.
     
  22. WillNode

    WillNode

    Joined:
    Nov 28, 2013
    Posts:
    420
    Not possible yet. I will add it to the backlog for now.
     
  23. TheFlyHawk

    TheFlyHawk

    Joined:
    Mar 23, 2016
    Posts:
    56
    upload_2022-2-28_22-8-25.png
    Canvas objects are not rendered.
     
  24. TheFlyHawk

    TheFlyHawk

    Joined:
    Mar 23, 2016
    Posts:
    56
    When the FOV is large, the OnMouseDown event cannot be received.
     
  25. LostPanda

    LostPanda

    Joined:
    Apr 5, 2013
    Posts:
    168
    want know support?this import,thanks
     
  26. vplampinen

    vplampinen

    Joined:
    Sep 26, 2012
    Posts:
    15
    It's now been over a year since you replied. Are you planning to add support for HDRP anytime soon? @WillNode