Results 1 to 6 of 6

Thread: customized camera

  1. #1
    Join Date
    Sep 2015
    Posts
    1

    Question customized camera

    I would like to achieve customized camera behavior. For starters I would like the geometry model of the lens to be very specific, what is the right way to achieve this customization?
    The scene will need to be rendered in Maya and in MentalRay standalone too.

    Can anyone help or give me a pointer on a relevant sample or explanation?

    Any help will be really appreciated.
    thanks,
    Emanuel

  2. #2
    Join Date
    Dec 2004
    Location
    Marina Del Rey, California
    Posts
    4,143

    Default

    What is your experience with writing mental ray shaders? Have you read the book Writing mental ray Shaders? There is a chapter specifically on lens shaders.
    Barton Gawboy

  3. #3
    Join Date
    Dec 2004
    Location
    Marina Del Rey, California
    Posts
    4,143

    Default

    Or have you investigated the bokeh lens provided in order to see if it serves your purpose?
    Barton Gawboy

  4. #4
    Join Date
    Jan 2011
    Location
    West Dover, Nova Scotia, Canada
    Posts
    154

    Default Mental Ray Lens Shader Source Code Examples

    Hi. Besides the mental ray examples provided by the official mental ray programming guide books, you can look at the following 3rd party open source mental ray lens shaders for code snippets to get you started.

    Cheers,
    Andrew Hazelden

    Domemaster3D - angular fisheye, latlong 2D / stereo 3D lens shaders
    https://github.com/zicher3d-org/dome...-stereo-shader

    https://github.com/zicher3d-org/dome...ster3D/sources

    http://www.andrewhazelden.com/blog/2...autodesk-maya/

    https://github.com/zicher3d-org/dome...eo-shader/wiki

    Pixero Shaders - js_fisheye and js_panoramic
    http://www.pixero.com/downloads_mr.html

    Ralf Habel shaders - cubemap_lens and latlong_lens
    http://www.andrewhazelden.com/blog/2...64-on-windows/

    Witness Shaders - fisheye with a blog post too
    http://the-witness.net/news/2011/01/...isheye-lenses/

    The Fulldome Blog List of Lens Shaders
    http://thefulldomeblog.com/2013/06/2...hader-options/

  5. #5
    Join Date
    Nov 2008
    Location
    Mantova
    Posts
    352

    Lightbulb

    Just for completeness, Rombo.Camera can fully simulate a multiple 'thick' lens system where one can even input his own lens design.
    http://www.rombo.tools/2016/03/27/thick-lens-setup/

    Eventually, there's a full lecture on youtube about thick lenses :
    https://www.youtube.com/watch?v=2EUzr8fP0TA

  6. #6
    Join Date
    Jan 2011
    Location
    West Dover, Nova Scotia, Canada
    Posts
    154

    Default

    Hi Maxt.

    Thanks for posting a link to Rombo.Camera! It is a really interesting approach that the lens shader has taken to accurately model the lens properties.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •