Get halfway through a model and find it's an unworkable mess? Can't add edge loops where you need them? Can't subdivide a mesh properly? If any of this sounds familiar check this course out.
Mental Ray rendering multicolored sprites as one color! Why?
Hi folks.
So I'm trying to get mental ray to render a bunch of STATIC particles that are no longer dynamic. I have assigned a lambert shader to them, with a sequence of seven images, generated randomly at creation via a SpriteNumPP expression. They are shown correctly in the viewport (see first image). These colors are assigned from an image sequence - NOT from rgbPP, and that's how this has to remain.
Now, when I do a Hardware render, the colors are correct, but when I do a Mental Ray render, the colors are all the same (see second image). The color that they will have seems be the current image sequence color, which is not what I want...I want the sprites to keep their various colorations that they show in the viewport. My guess is that MR is reassigning the current frame's image file (see third image) to ALL of the sprites, but I don't know why...
They will all look the same in the viewport (multiple colors) regardless of the frame number, because their dynamics have been turned off. Static field of particles.
But if I render a different frame with MR, they will all be colored the same - directly related to the lambert assigned to them, and the image sequence they are based on. In that example, they are all a yellow color, because that particular image in the sequence is the yellow one. If I scrub one more frame and do another MR render, the color will change because the image sequence will cycle to the next in line.
I want the MR render to look like the first attached image.
Last edited by scentmental; 20-08-2012 at 05:42 PM.
That's the exact technique I've been using. I got it from a gnomon pixie dust sprites tutorial. It works well...just not when using mental ray to render. Mental ray seems to ignore the colors of the sprites, and just assign the current frame's image to all of them.
I'd use hardware rendering, but I also need to use depth of field, and HR doesn't support DOF. I can't use software render because it won't see sprites.
The only reason I asked what happens on another frame is to see if your image sequence was working.
Without posting the scene it might be hard to figure out what's wrong.
Appreciated! The image sequence is working from what I can tell. I'm attaching my .ma file with a sequence of three images. This is a stripped down scene, with only the elements needed to troubleshoot this problem. If you could, please load it up, scrub a few frames to generate particles, and see what happens when you try to render with Mental Ray.
I'm using Maya 2013 by the way.
Thanks!
edit: Just realized that the attachment didn't go through...here it is