DaJuice Posted April 10, 2003 Share Posted April 10, 2003 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. Quote Link to comment Share on other sites More sharing options...
Jason Posted April 10, 2003 Share Posted April 10, 2003 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. Quote Link to comment Share on other sites More sharing options...
DaJuice Posted April 10, 2003 Author Share Posted April 10, 2003 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. Quote Link to comment Share on other sites More sharing options...
mike Posted April 10, 2003 Share Posted April 10, 2003 the last time, it was possible to change the background color in mantra,was prisms 5.x Quote Link to comment Share on other sites More sharing options...
old school Posted April 10, 2003 Share Posted April 10, 2003 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. Quote Link to comment Share on other sites More sharing options...
DaJuice Posted April 10, 2003 Author Share Posted April 10, 2003 Thanks for the tips old school. I just wanted to change the feel of the render a little. Quote Link to comment Share on other sites More sharing options...
Wolfwood Posted April 10, 2003 Share Posted April 10, 2003 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 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? jim. farClip.zip Quote Link to comment Share on other sites More sharing options...
DaJuice Posted April 10, 2003 Author Share Posted April 10, 2003 Thanks Wolfwood. I knew there must be a whole bunch of ways to do this. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.