RTT artifacts by setting near clipping value

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Terry
Posts: 55
Joined: Wed Jan 27, 2010 6:16 am
Location: Peking/China

RTT artifacts by setting near clipping value

Post 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
Terry
Posts: 55
Joined: Wed Jan 27, 2010 6:16 am
Location: Peking/China

Post 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.
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Post by serengeor »

Uppload your images somewhere else like imageshack.us
those links don't even work when I copy,paste them.
Working on game: Marrbles (Currently stopped).
Terry
Posts: 55
Joined: Wed Jan 27, 2010 6:16 am
Location: Peking/China

Post 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
Post Reply