RTT artifacts by setting near clipping value
Posted: Sat Sep 04, 2010 1:32 pm
Hello,
My question is about setNearValue() function.My scene is very large,so distances between objects is a bit far.When i use RTT(render to texture) effects,sometimes i must put carmera far away from viewport,so i should set a larger Znear value,using camera->setNearValue(),then artifacts arised.
Picture 1 describe the situation that i set "camera->setNearValue(1900.0f)"
Picture 2 : "camera->setNearValue(1700.0f)"
Picture 3 : "camera->setNearValue(1200.0f)"
Picture 3 is right,so we can concluded that near clipping value would aspect the results,how to solve the problem?
Thanks.
BTW,if the images can not be displayed, please copy and paste the link!
My question is about setNearValue() function.My scene is very large,so distances between objects is a bit far.When i use RTT(render to texture) effects,sometimes i must put carmera far away from viewport,so i should set a larger Znear value,using camera->setNearValue(),then artifacts arised.
Picture 1 describe the situation that i set "camera->setNearValue(1900.0f)"
Picture 2 : "camera->setNearValue(1700.0f)"
Picture 3 : "camera->setNearValue(1200.0f)"
Picture 3 is right,so we can concluded that near clipping value would aspect the results,how to solve the problem?
Thanks.
BTW,if the images can not be displayed, please copy and paste the link!