Page 1 of 1

RTT artifacts by setting near clipping value

Posted: Sat Sep 04, 2010 1:32 pm
by Terry
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!
Image
Image
Image

Posted: Sat Sep 04, 2010 1:39 pm
by Terry
A bit more supplyment,
only when the RTT texture generation i set the larger clipping value,alternate i would change it back to render my scene use small value.

Posted: Sat Sep 04, 2010 1:40 pm
by serengeor
Uppload your images somewhere else like imageshack.us
those links don't even work when I copy,paste them.

Posted: Sun Sep 05, 2010 1:39 am
by Terry
serengeor wrote:Uppload your images somewhere else like imageshack.us
those links don't even work when I copy,paste them.
Oh,yes this time i upload the images to flickr,i hope you can see them.

Image

Image

Image