Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Lighting & Rendering (https://simplymaya.com/forum/forumdisplay.php?f=17)
-   -   Help with banding issue in fog... (https://simplymaya.com/forum/showthread.php?t=34784)

dabu 14-12-2010 11:32 PM

Help with banding issue in fog...
 
Hey guys I am wondering if anyone can assist...

I am doing an underwater scene in Maya using Mental Ray with Maya's Physical (water) fog.

I am getting banding in the water environment fog. I have tried everything I can think of in Maya and googled and search but coming up short on how to solve this issue.

The link will hopefully show what I am getting...appreciate any help...tia.

http://dragonflystudioproductions.com/fogbands.jpg

Nilla 15-12-2010 12:04 AM

Hi Dabu, I moved your first post on the forum as soon as it came up on the site as it belongs here in the mental ray section, and I just noticed you posted it here as well now. Please don't double post on the forum as all lounges get viewed and post only once in the section which is relevant to the question.

I don't know the answer to your problem but I'll have a dig in my mental ray archives and see if I can come up with something useful. hopefully someone else can offer some help as well.

Thanks,
Nilla

Sorry you might not have double posted I just noticed it could be a system error making it repeat but I just wanted to mention it in case because it appeared twice on the front page:)

dabu 15-12-2010 12:11 AM

Thanks for the move Nilla...I assumed since I am a Maya newb it should go in the newbie section.

And yep I didn't double post. NP either way though. I understand.

And thanks for taking the time to consider the question...

Nilla 15-12-2010 12:44 AM

I'd make the same assumtion I think a lot of people do that's why I've been moving threads around from there. I'm gonna try and make the description a bit better for what should go in there because it's not clear and as I normally search forums myself when I'm stuck I know it's easier to find answers if they're where you expect them to be.

I'd say you're doing pretty well for a newbie:) that image looks really nice to me so far I like the water. I've never used the node you're working with which is why I can't help but I render a lot in mr so I might be able to figure out where to find some info on it. You can get some strange results especially with final gather and banding artifacts when you have your quality settings too low a lot of the time so adjusting these in your render settings is always worth a try but it might be something in the node itself that needs adjusting. Something tells me as this is fog it's more likely the case. It does look similar to a problem I had a while back though which was fixed when color corrected and increased quality I seem to remember, so take a look at your render settings.

Gen 15-12-2010 01:52 AM

Quote:

Originally Posted by dabu (Post 311458)
Hey guys I am wondering if anyone can assist...

I am doing an underwater scene in Maya using Mental Ray with Maya's Physical (water) fog.

I am getting banding in the water environment fog. I have tried everything I can think of in Maya and googled and search but coming up short on how to solve this issue.

The link will hopefully show what I am getting...appreciate any help...tia.

http://dragonflystudioproductions.com/fogbands.jpg

What is your output format? It looks like the image went through some pretty brutal compression.

dabu 15-12-2010 03:15 AM

Thanks again....

I'm outputting HD1080 Maya IFF....I compressed in photoshop to make the image easier to upload and view...

I tried the MR quality at 16bit...but didn't see an improvement over 4 bit minimum 16bit max...

I'm trying to mess with the settings in the environmentfogShape1 node...it seems to make somewhat of difference...but as of yet still can't get rid of the bands....I'll keep trying.

Appreciate it...

dabu 15-12-2010 03:46 AM

Nope...I was hoping it may have controlled the fog resolution...:( oh well...

so close....lol.

Nilla 16-12-2010 08:05 PM

Did you find an answer to the problem somewhere yet? I read up a bit on physical fog, and I can't really think of what in the node itself would cause the banding pattern. You try a volumetric mental ray material for fog instead, but that's not really the correct fix to the problem:)

Another thing that struck me is that you might be able to get some help on a site called CG Architect if you posted it there, your scene is an exterior and they have a lot of arch viz professionals that give you some good anwers. Most people on there use max and vray, but there's a lot of mental ray and a bit of maya so someone there might know what it is straight away.

Nilla

dabu 16-12-2010 08:32 PM

Thanks Nilla,

No solution yet...although I found a weird way to duplicate the problem using Maya Software render lol...

And a weird thing happened on a movie rendered out of Shake with a Maya Software render....The image sequence looked fine in Shake.

When I exported the movie out of Shake and opened it in QT 7, the fog layer was gone lol. Closed and opened it again in QT7 and the fog layer appeared after a second.

Interesting...something funny about the environment fog and perhaps something corrupted on my system...

I will however try your suggestion and see if I have any luck...I was hoping it may have been a setting I missed...with a common solution.

Will try some Maya maintenance, or a re-install if no one seems to know...

K>

Nilla 16-12-2010 08:47 PM

Try it because there's definitely a lot of people there who render with fog. It's most likely some simple setting that would fix it, usually is. If you upload your scene somewhere or e-mail it we can have a look at it as well, not sure we'd get it but it's more difficult to guess without seeing exactly what's in the scene file.

Gen 16-12-2010 10:30 PM

1 Attachment(s)
It seems to be your bit depth. I did a 8 bit and 16 .iff comparison and the fog started banding.

Nilla 16-12-2010 11:08 PM

That still makes sense, because it looks more like a technical issue than anything else. And especially since you get it replicated. Upload the scene dabu if it doesn't work, it sounds to me like Genny should be able to fix it for you.

dabu 20-12-2010 07:06 PM

Wow somehow I missed your post Genny...

The bit depth makes perfect sense to me....

So here is where the newb in me is the issue....I googled for the answer but could not find it...I did however, see a lot of reference's to banding and as a photographer I understand the banding issue from 8-bit. But....

How do I change the bit depth in my MR renders? lol....

My settings are Preferences>Rendering>32-bit floating point.

MR>Quality>Framebuffer>RGBA (Short) 4X16 Bit.

I found one strange reference for creating a text file and saving it as a Maya.env with the text:

IMF_TIFF_COMPRESSION = none

And placing it in the Maya project folder and restarting....

lol...sometimes Maya seems so strange to newbs...

ack.....:help:

Can't believe I got past Expressions.....:P

dabu 20-12-2010 09:18 PM

Well so far no matter what settings I use in MR framebuffer quality; 16/32, or format type .iff, tiff, exr, etc....everything renders out at 8-bit...:playfull:


omg....:ninja:

dabu 21-12-2010 06:34 PM

Ok I didn't realize the render in Maya is 8-bit....Once I rendered a frame in Qmaster I was able to get a 16-bit image out....so Duh on my part and much thanks for the suggestion....

I still have banding but I will play with the quality settings now that I know how to get it out of Maya at a higher bit depth...

I think the problem lies in the Water Light Decay setting of the Physical Fog (Water).

Because if I set the Water Light Decay to zero...banding is not an issue...

The problem is without using the Water Light Decay I am unable to create the same underwater effect.


Here are my settings if anyone wants to see if they can get rid of banding with these settings

http://dragonflystudioproductions.com/envwater.jpg

honestdom 21-12-2010 10:28 PM

i'm afraid i'm not familiar with the water fog thing, but we made the light rays in this using the same method i mentioned in your WIP thread.
(RGB fluid container with a spotlight shining through it. the spotlight has a caustics ocean thing gobo.)

YouTube - Cadbury's - Spots vs Stripes (Official 2012 Olympics Sponsorship Ad)

imo, the surface ripples in your first image post seems too repetitive and you lose the feeling of depth. in the cadbury's ad there is little surface visibility at what is perhaps a shallower depth. If you saw less surface ripple it might also make it easier for you.
just a thought. :)

dabu 21-12-2010 11:40 PM

Thanks once again for posting...really like the Cadbury spot....

I've been gobo'ing spot light rays in through an ocean shader with a time expression...but I do want to try your RGB method...haven't got to it but it looks great in the vid...

And yep I agree. That's just a stock ocean shader...once I did my first render with the bands all else was abandoned.

One thing that stands out for me in the Cadbury is the total internal reflection simulation in the spot...that was great too...very nice work...are you saying volume caustics?

I've been using raytracing through transparency to get the affect where there is a hole in the ocean surface that you can see through...it is also reflecting the sub...seems to work pretty good....but I like your version a lot more.

Much to learn here....

No luck on the fog banding. It even looks worse in 32-bit.

I will need to find a different means to simulate a light to dark underwater ocean...and do some fog in post compositing...once the decay is involved there seems to be no solution.

What I really need to do is to find a consultant...

Thanks again..

Gen 24-12-2010 08:32 PM

That commercial is so pretty. The cheerleader crabs were cute.

Dabu, all my 16 and 32 bit tests with different formats turned up bandy, maybe that way of creating fog just doesn't playing nice with higher bit depth and I wish I knew why. The fluid container method Dom mentioned or even a plopping an MR volume shader -> http://www.floze.org/2008/07/six-tut...e-part-vi.html sound more dependable.

dabu 26-12-2010 05:58 PM

Wow, thanks Genny that is very kind of you to go through that process...much much appreciated.

Sometimes I wonder about Maya...and its too bad because it[envfog] does create a great underwater environment...

I can see some argument since it is really an option in the Maya Software render...but alas I can create the same banding using Maya Software...so I would assume Autodesk must be aware of this...

For now, my workaround is compositing an MR render and a render using Maya Software for the fog.

But I definitely need to learn use volume shaders and and volume caustics etc...and a million other things.

I can see now why people specialize...

Thanks all...when I get a decent sequence I'll post...

Nilla 26-12-2010 07:21 PM

That's a great ad, I like the music added as well. Must have been a fun project to work on.

Those lighting tutorials are interesting, I was reading them a while back. Like Genny said, if you throw in a mr node instead like the parti volume shader you'll find a lot more info than you would for Maya's environment fog because this one is used in 3ds max as well where more exteriors and scenes like this is done. And even if it's a bit different you should be able to get the info translated to maya and there is a lot of it on many blogs. So it might be a better way to go.
Off topic dabu, are you the guy who posted up a thread many months ago that you were going to make an underwater sub but you never used maya before?

dabu 27-12-2010 12:32 AM

Quote:

Originally Posted by Miss_Nova (Post 312100)
Off topic dabu, are you the guy who posted up a thread many months ago that you were going to make an underwater sub but you never used maya before?


....lol yep!....

Nilla 27-12-2010 01:14 AM

Well done dabu! It sounded like a bit much to take on for someone new to Maya, I was close to suicide just trying to aim a spot or model a chair:) Nice work to stick with it, I look forward to seeing the final result when you get there.


All times are GMT. The time now is 12:49 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018