Sign in to follow this  

black flicker on textured Mesh ( C# managed directX )

This topic is 4484 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi there, I'm trying to write a little spaceship game using c# Express and managed DirectX. I did my first textured 3d model (looks fine in the directx .x viewer ) but when i load it myself in my (not that advanced) program and rotate it, i get black flicker on some parts of the model. Here is how it looks : http://www.carebear.de/problem.jpg (~16kb) Maybe this problem is known and you can point me to a solution? [Edit1: The solution is to set the correct Culling Mode! Thanks to Mykre] [Edit2: Code Taken offline, since i'll rewrite it, and the problem is solved.] Thanks for your time! JP [Edited by - Jan_Peter on September 6, 2005 7:18:45 AM]

Share this post


Link to post
Share on other sites

For a quick fix change your cull mode to the following.

device.RenderState.CullMode = Cull.CounterClockwise;

This fixes the problem. But I have sent a PM to you about some other changes that I would make. These include the main render loop, and the way that you have set up the main device.

Share this post


Link to post
Share on other sites
thank you very much.
setting the correct culling mode does fix the flickering!

About the other changes, you're right too - i was using code & idears from not the perfect tutorial.

Share this post


Link to post
Share on other sites

This topic is 4484 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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