View Full Version : Setting camera to ignore near objects
whookam 03-27-2005, 04:38 PM Just a very quick (simple?) question that I can't find the answer to.
I need my Maya camera to ignore some objects that are between the camera and my target object. I can't move the camera or the objects as this will affect my view and setup. I thought that adjusting the near clip plane would do it, but I'm not getting expected results.
Can any one help with this or suggest some way that I could automatically make objects invisible once they are a certain distancce from the camera.
Cheers,
Steve
| |
Nicool
03-28-2005, 10:04 PM
I think that the openGL engine of Maya would hide/prevent from calculating objects taht are not in the field. If not you would have to code a script from this rough:
- find a method (may be "scriptJob") that would spot camera object moves.
- So, when the camera moves check distance between what objects are not in the field (or check distance on a near/far clipping relative basis (could get negative values problems).
- If true, then hide this objects (because hidding is better than a face cutting clipping display)
Don't know what's you scripting skills. But if you make sure that the Maya's openGL engine does not hidden objects taht are out of view field, I could help you coding this simple script.
*Nico
emaeteetee
01-17-2006, 06:41 PM
what do you mean you're not getting the expected results?
what results ARE you getting?
you should set the minimum clip plane, and that will fix your problem.
another way to do this with a visual aid, is to select the "renderable" camera, while looking at it in your perspective window. once selected, use your manipulations handle. press "y" hotkey.
you'll see a small circle appear below and (attached it seems by a little stick), near the lens of the camera. click that once, and then twice, and you will get a box that moves out from the camera, out as far as your 'far clip plane' is set. just grab the minimum clip plane modifier (you may have to zoom in really tight to the camera before you can see it... it's right inside the camera lens), and pull it out, past the object you want to block out of the shot.
CGTalk Moderation
01-17-2006, 06:41 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2009, Jelsoft Enterprises Ltd.