Jump to content
Sign in to follow this  
DaJuice

Ok, it's noob question time.

Recommended Posts

How do you change the background color in mantra?

You can do this, right? I'm pretty sure I did this in v5 by accident somehow.

Share this post


Link to post
Share on other sites

I don't think you can, to be honest... However you can set the background in MPlay if you want to just view with another background.

I thought at one stage you could specify a bg colour using a mantra -w switch, but I don't think that works now.

Share this post


Link to post
Share on other sites

Really? I could have sworn I brought up a menu for that by accidentally typing in some freak key combination. Nevermind, I must be confused. :P

Share this post


Link to post
Share on other sites

the last time, it was possible to change the background color in mantra,was prisms 5.x :P

Share this post


Link to post
Share on other sites

mantra -w is for specifying the width of an image. There was support for a render background but no longer I believe. Undocumented mantra flag? I doubt it in this case.

Should be trivial to add an atmosphere VOP to just render a constant color of your choice at the far camera clipping plane though. That's how I would do it. Atmosphere shaders are polled at the end of the render pipeline. You could even trivially add support for images this way. Just don't be using other atmosphere shaders as well. Depth compositing of fog objects is willy nilly at this part of the rendering. Just dump them in one fog shader.

Do you want the background to contribute to alpha is the only qeustion I would have. I think not.

Share this post


Link to post
Share on other sites

Thanks for the tips old school. I just wanted to change the feel of the render a little.

Share this post


Link to post
Share on other sites

You can always try adding a far clipping plane and apply a shader to that.

I attached a little sample.

Two little gotchas to watch out for.

If your far clipping plane is 1000 then the actual geometry needs to be just a tad closer like 999.9 .....or it will be clipped :rolleyes:

Second if the geometry is perfectly fitted to the camera's back plane then the edges of the geo will be sampled against nothing. You'll get a pixel border that has been sampled with your plane color and black.

Isn't this what compositing is for? :P

jim.

farClip.zip

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×