Maya 2020 fundamentals - modelling the real world
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.
# 1 20-08-2012 , 06:20 AM
Registered User
Join Date: Aug 2012
Posts: 22

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

Anyone have an idea about this? user added image

Attached Thumbnails
Attached Images
# 2 20-08-2012 , 07:40 AM
honestdom's Avatar
The Nurb Herd
Join Date: Oct 2007
Location: London
Posts: 2,381
What happens if you render another frame?

# 3 20-08-2012 , 05:30 PM
Registered User
Join Date: Aug 2012
Posts: 22
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.
# 4 20-08-2012 , 09:21 PM
daverave's Avatar
The thin red line
Join Date: Aug 2009
Location: England
Posts: 4,472




Avatar Challenge Winner 2010
# 5 20-08-2012 , 10:31 PM
Registered User
Join Date: Aug 2012
Posts: 22

Not sure if this link is any use..............dave

https://forums.cgsociety.org/archive/.../t-606259.html

Thanks for the reply, dave.

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.

# 6 20-08-2012 , 10:47 PM
honestdom's Avatar
The Nurb Herd
Join Date: Oct 2007
Location: London
Posts: 2,381
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.

# 7 20-08-2012 , 11:26 PM
Registered User
Join Date: Aug 2012
Posts: 22
@ honestdom:

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

Attached Files
File Type: zip spriteColorProblem.zip (581.3 KB, 315 views)

Last edited by scentmental; 21-08-2012 at 03:29 AM.
# 8 21-08-2012 , 06:54 PM
Registered User
Join Date: Aug 2012
Posts: 22
Checking in. I haven't figured this out yet - mental ray still renders all sprites as the same color instead of a mix of the three colors supplied by the image sequence.

# 9 21-08-2012 , 07:03 PM
Gen's Avatar
Super Moderator
Join Date: Dec 2006
Location: South FL
Posts: 3,522


- Genny
__________________
::|| My CG Blog ||::
::|| My Maya FAQ ||::
# 10 21-08-2012 , 07:56 PM
Registered User
Join Date: Aug 2012
Posts: 22

Mental Ray doesn't support spriteNumPP, even as late as version 2013, just a heads up.

Well that's a disappointment. Thanks for clearing this up for me. I guess I'll have to figure out another way to get the effect I want.

# 11 21-08-2012 , 09:08 PM
daverave's Avatar
The thin red line
Join Date: Aug 2009
Location: England
Posts: 4,472

Attached Thumbnails



Avatar Challenge Winner 2010

Last edited by daverave; 21-08-2012 at 09:10 PM.
# 12 21-08-2012 , 10:48 PM
Registered User
Join Date: Aug 2012
Posts: 22
I will, daverave...thanks!

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads