Sign in to follow this  
thoue

Model rendering problem

Recommended Posts

Im renderinder a model with HLSL. Every thing is well set, matrix position, shadow... I have a simple ray casting animation depending on le click loc position. The problem: When the model move away from the cam, it start to flicker. pic System: 2.8GHz ati 9800 pro (drivers latest 4.8) ram 1Gram [Edited by - thoue on September 2, 2004 1:45:30 AM]

Share this post


Link to post
Share on other sites
It is z fighting. Try reducing the distance of the far clip plane and pushing the near clip plane out to 1.0 when you create your projection matrix. If that doesn't help (it should with such a small scene) try a higher z buffer depth (D3DFMT_D24 instead of D3DFMT_D16 most likely)

edit: to post a link, use <a href="URL here, needs to have http:// on it">Text for url here</a>

edit2: there seems to be a bug, if you edit your post, & lt ; and & gt ; are translated into < and > when you make the modifications...

Share this post


Link to post
Share on other sites
Thx kibble here is your new mark

Extremely helpful and/or friendly -- checked

i have set this value and there is no more flicker

d3dpp.AutoDepthStencilFormat = d3d.DepthFormat.D24X8;

thx alot

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this