Flickering [Solved]

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
VinZ
Posts: 21
Joined: Sat Jul 29, 2006 11:16 am
Location: India

Flickering [Solved]

Post by VinZ »

Hi,
I have created 2 planes one at the top. consider,
Plane1 - position 0,0,0 - Applied texture
Plane2- position 0,5,0 - not applied

When i move my camera far back (eg Cam Pos : 0,1000,0, target : 0,0,0) . the texture in first plane is mixing with plane2.

Sorry for my bad english, pls see the below image..

[img][img=http://aycu10.webshots.com/image/25649/2004426144559606522_rs.jpg][/img]

looking for reply,
Thanks in advance..
Last edited by VinZ on Tue Sep 11, 2007 11:56 am, edited 2 times in total.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

This is due to zbuffer limitations. Due to a limited bitwidth you get a limited accuracy which may impose these problems. There is a method for this provided in OpenGL (probably also in DX), but it's not available from within Irrlicht at the moment.
What do you want to do with the two planes?
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

This can be fixed by reducing the camera's near value can't it?
Image Image Image
VinZ
Posts: 21
Joined: Sat Jul 29, 2006 11:16 am
Location: India

Post by VinZ »

One plane considering as ground and another one is floor. I'm using Directx. can u pls tell me the API of Direct3D. So that i ll try to solve the problem.. It is spoiling the look of my application..
VinZ
Posts: 21
Joined: Sat Jul 29, 2006 11:16 am
Location: India

Post by VinZ »

Hi,
Thanks for quick reply, its fixed with camera NearValue..
Post Reply