PDA

View Full Version : clipping planes issue


vallaha
08-07-2010, 10:58 AM
i frame up my front top side viewports and all of my geometry disappears i think its to do with clipping planes ive been tweaking them but no joy. help

djx
08-07-2010, 03:02 PM
Clipping planes are only half of the problem. You also need to check the translation values. For example if your top camera has a y-translate of 30000 and you are trying to see the ground plane at y=0, then your far clipping plane would need to be greater than 30000, or you could change your top camera ty to 1000 and set your clipping plane to 2000.

Try copying-pasting these lines into your script editor and execute them to reset the default cameras to something reasonable.


// top camera
setAttr "top.translate" -type "double3" 0 1000 0;
setAttr "top.rotate" -type "double3" -90 0 0;
setAttr "top.scale" -type "double3" 1 1 1;

setAttr "topShape.nearClipPlane" 0.1;
setAttr "topShape.farClipPlane" 2000;
setAttr "topShape.centerOfInterest" 1000;

setAttr -k on "topShape.farClipPlane";
setAttr -k on "topShape.nearClipPlane";

// front camera
setAttr "front.translate" -type "double3" 0 0 1000;
setAttr "front.rotate" -type "double3" 0 0 0;
setAttr "front.scale" -type "double3" 1 1 1;

setAttr "frontShape.nearClipPlane" 0.1;
setAttr "frontShape.farClipPlane" 2000;
setAttr "frontShape.centerOfInterest" 1000;

setAttr -k on "frontShape.farClipPlane";
setAttr -k on "frontShape.nearClipPlane";

// side camera
setAttr "side.translate" -type "double3" 1000 0 0;
setAttr "side.rotate" -type "double3" 0 90 0;
setAttr "side.scale" -type "double3" 1 1 1;

setAttr "sideShape.nearClipPlane" 0.1;
setAttr "sideShape.farClipPlane" 2000;
setAttr "sideShape.centerOfInterest" 1000;

setAttr -k on "sideShape.farClipPlane";
setAttr -k on "sideShape.nearClipPlane";

// persp camera
setAttr "persp.translate" -type "double3" 223.152 158.624 619.828;
setAttr "persp.rotate" -type "double3" -13.538 19.8 0 ;
setAttr "persp.scale" -type "double3" 1 1 1;

setAttr "perspShape.nearClipPlane" 0.1;
setAttr "perspShape.farClipPlane" 5000;
setAttr "perspShape.centerOfInterest" 677.602;

setAttr -k on "perspShape.farClipPlane";
setAttr -k on "perspShape.nearClipPlane";


David

vallaha
08-08-2010, 09:25 AM
cheers it worked

CGTalk Moderation
08-08-2010, 09:25 AM
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.