Prman and mray

Source: Internet
Author: User
Sorry. I had to comment, since a lot of misconceptions and just plain wrong information was being discussed about Mental Ray.
I work at ILM where we daily use both prman and mray and I personally have about 5 years of experience with each package, as both an user, and developer writing shaders... and can tell you stories of pulling my hair with both
This is sort of a list of good and bad points of each Renderer.

1) Mental Ray is a hybrid Renderer. as a matter of fact, it has been such since v2.0. a hybrid Renderer is new to prman, but it is not new to graphics community. besides mray... lightwave, Maya, etc. are all hybrid renderers and have been so for quite some time.
This means that indeed you can use the package only on scanline mode if no tracing is required. most good hybrid renderers like Mental Ray, prman and Lightwave, can mix rendering scanline with raytracing within samples, even. bad ones can't or have horrible limitations (Maya comes to mind ).

2) mental ray3 is a micropolygon Renderer, which is not based on a Reyes architecture. The talk of not being able to do driven displacements thru the hypershade is just bogus.
Mray is a micropolygon Renderer that it is based on an object caching architecture (this is both good and bad ). instead of splitting objects per buckets, objects are split into subobjects (think of doing dicing in screen space. world Space, I guess ). the quality of displacement mapping has little or nothing to envy prman anymore. the object caching is also less subject to patch cracks as prman is. mray, unlike prman, tries to always maximize the memory consumption and keep as your triangles in memory as possible when raytracing (ie. the caching is less agressive ). this is not bad, it makes the Renderer faster during traces, but yes, when you fire a mray render without specifying memory limits, you will immediately see it try to take over as much memory. acceleration of raytracing is done by hierarchical grids or BSP, albeit BSP is still the preferred approach.
Mray3.1 was the first implementation of this and it did suffer from some BSP creation problems which wocould spike memory like crazy albeit was usuable already for most projects. mray3.2 beta (not yet released) has addressed most of the issues and solidified the architecture more. currently, I can already testify that the object-Cache architecture is already proving to be as successful as prman's Reyes ones in your scenes, more so when raytracing is involved. still, raytracing of micropolygons is expensive compared to just scanline rendering or to raytracing objects with good but not micropolygon tesselation. mray still provides the best (read fastest) Implementation of this I have ever tried. over the Christmas break, I raytraced scenes of over 10,000,000 polygons with little issue and under 2.5hs. still, as we throw more and more complex cases, we do find bugs and issues and we usually report to both vendors as problems they need to address. for example, I recently did find an obscure bug with the caching being flushed too much leading mray to technically render 150,000,000 (yes, that's 120 million triangles) due to re-tesselation. what surprised me was that as uugly bug this was, the architecture handled it and albeit it took long (16 hrs), it worked just fine. and 16hrs for 120 million triangles sounds really cheap to me, actually --- specially considering the code doing most of the re-tesselation was mine and not optimized, and not as good as mray's tesselation code

3) subdivision surfaces. mental Ray provides a very comprehensive subdivision surfaces package which is sold as an add-on shader library. it is a silly marketing demo. as such, indeed most translators do not support it. also, regarding its being sold in the USA, not sure if it cocould expose mray to legal action by Pixar, since Pixar holds some rather obvious patents on subdivision surfaces.
The subdivision kit is more complete in terms of subdivision types and in terms of hierarchical subdivision than prman is, but it does not resolve subd's to bsplines as in prman implementation.

4) Mental Ray's architecture has proven time and again to be more flexible than prman's, not less. we usually try to do everything with prman when possible since our pipeline is built with it more in mind and due to having been used at ILM for so long, we also have faster more artists familiar with it. but albeit Sl is nice and friendly, prman's lack of openness bites us whenever you want to do anything beyond SL. technically, we do have ways (technically and legally) to hack into prman code. however, we have very few people who can do so (technically and legally) and several times we don't have the time. and prman's DSO architecture is simply not mature enough. mental Ray suffers from none of that (basically, anyone that can code C can be writing mray shaders in no time and the API is way more OPE ). as such, when prman fails or is not good at a certain thing, mray usually ends up being used as a complement (raytracing, blobbies, atmospherics, etc ).

5) Mental Ray's scanline rendering is actually faster than prman. yes, you won't hear this very often, but it is true. now, this does not mean the Renderer is faster, thou let me explain:

Mental Ray's scanline Renderer is on average about 3 times faster than prman10 and ~ 1.5 than prman11, when equivalent shaders are used for your average ILM creature (say, our superduper plastic shaders with million of knobs). This is so for preview renders without motion blur.
What does make prman amazingly fast during scanline renders is this great fact:

When motion blur is on, performance hit for any prman render is (usually) less than 50% of what it was.

No Renderer on the market is even close yet to offer this... I know, we usually try them all.
With Mental Ray (and most other renderers), motion blur implies about a rather constant 500% increase in render times at least. this usually offsets any benefits of the mray scanline Renderer when motion blur is on. when places only turn on Motion Blur for final renders. not so at ILM. every one of our renders is motion blurred. usually our supervisors require it. kind of silly, perhaps. but certainly doable for prman and it is the one feature that makes prman worth its price tag, in my opinion.
And yes, you can do tricks like 2D motion blur to compensate... they just don't look as good, that's the problem.
Now, that's for scanline rendering.
For straight raytracing... prman is 5 to 10 slower than mray. no suprise there. after all, this is Pixar's first implementation of raytracing. it is likely to get better with newer versions.
With raytracing and motion blur on... well, no miracles here. we usually try not to since it is usually too expensive with any Renderer. however, Mental Ray is still better. as slow as it is, prman is (and I'll be nicely optimistic here 5 to 10 times slower, without even mentioning the other issues about it.
For Global Illumination (final gather/caustics), mray is slightly ahead in most aspects while prman is ahead on at least one. however, speed and quality are relatively comparable and the differences will hardly make any difference to your average user: mray supports caustics and volume irradiance while prman has a more flexible API to work with irradiance caches in shaders.

Prman is king in terms of primitives (mray lacks CSG, built-in blobbies, sphere primitives, no point primitive, etc. and mray's hair is very new and not production proven ). mray's only strength here is support for high order curves and surfaces (as those used in CAD and engineering ).

Mental Ray's basic Shadow Mapping support is now much cheaper than prman since they can be created on the fly at any resolution with little performance hit. on prman, a separate pass is always required. prman now supports deep shadow maps which are great for Volume Effects and more so for hair. mental Ray shadow maps are not yet deep shadow maps, meaning hair shadows are still better raytraced right now.

Prman's atmospheric shaders are slow at best and not too great. mental ray shines in this allowing you to create anything from blobbies shaders to very fast raymarchers. the latter package also has some internal handling of in/out volumes to allow intercrossing and traveling thru volumes.

Prman allows stitching of subds to handle displacement without cracks. note however, that this is only for subd's not for generic patches. mental Ray has stitching for patches, but they do not work for displacement.

Rib format is slightly more compact than mray's. mi2 format, but much harder to debug and read, since it is all binary, unlike mi2 which is a hybrid format. ribs are also more compact if you spit them in a hierarchical fashion, making them even harder to read and debug.
Ribs were originally a standard that did not catch on mainly due to Pixar still keeping hold on the copyright and licensing of it. however, in the past few years, other renderers have indeed started using the rib as an input mechanic. this is both good and bad. it means the standard has already deviated but it also means that if you 'd like not to use prman, you can switch to other competing products much more easily than before.

Mental Ray's format is as much a standard as prman's rib is, albeit no other Renderer uses it yet as input. it supports shader networks, user data, and geometry instancing which ribs do not. more important, it supports progressive scene changes, for IPR functionality. it also does not work hierarchically, which is a big relief.
Ribs parameter passing and attachment of variables to geometry is very elegant, and although the same can be done in mray, it is not as nice. Only phenomena is elegant in mray.

Prman works with a SIMD architecture while mray does not. this is the other big plus for prman. this allows prman to calculate derivatives for antialiasing shaders trivially, while in mray, The shaderwriter has to do more work for that.
Now, however, that raytracing is running in prman11, the benefit of prman SIMD becomes less, since afaik, neither Renderer does extends calculations beyond the first ray hit (cocould be wrong about prman, need to recheck the latest one ). the only package on the market that was superior in this aspect was the now defunct entropy, which did allow them.

In terms of documentation, mray's documentation is and has always been poor at best, lacking examples. prman documentation while far from being great is full of examples and the new application notes for raytracing are simply outstanding.
For both renderers, however, it is still recommended to get the publication books sold.

Mental Ray integrates seamlessly with a number of products on the market with more or less successful interfaces -- usually more tighly built around the package workflow. currently 3 DMAX, Houdini, Maya, softimage and xsi support it.
Prman's Main Translator is the one that comes with rat (IRMA/obj/slim combo ). houdini support is native. for Max, you need something like maxman and for soft, softman. there's also some very uugly Lightwave support. for xsi, there's no option to spit out ribs.

Prman's stability is simply legendary and is no overstatement saying than some of the best programmers in the world have contributed to it. simply put: What other software product can you say has lasted for over 20 years with little core modifications? When Pixar releases a new feature, it has usually gone thru about a year of testing internally, and it shows. Hard to find bugs in prman.
Mental Ray's reputation is shaky at best in this area. extends users tried pushing mray to do things it was never meant to do in its old times and to this day, mray still lacks that internal testing that it is so important. as such, whenever mray introduces a new feature, my guideline is to stay away from it until the following revision of the software.

In summary, if you can afford both, do so. Then you shoshould learn what they are good for and not try to use a hammer when a screwdriver is better.
If you can afford one, look at the list of good/bad features above and choose. yes... something, somewhere will not be possible or be as good or easy to do. just know what that something is, and avoid doing projects that require that (or find creative cheats ).

Finally, if not convinced with comments, try them yourself. Both Pixar and mental images offer demo versions of their products.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.