This project is read-only.

is this a lighting problem?

Nov 11, 2011 at 7:44 AM
Hi,
I have a problem in displaying the polygonization representation
of the implicit surface constructed by Marching Cube algorithm.
=20 rear-view =20 front-view
As shown in the image, the faces that should be visible of the resulting=20 mesh all disappear,
while the “inside faces” get drawn. This problem persists no matter I=20 reverse
the normals, or adjusting Cullface option. Here is my settting of=20 basicEffect:
=20 basicEffect.LightingEnabled =3D true;
=20 basicEffect.AmbientLightColor =3D Color.DimGray.ToVector3();
=20 basicEffect.TextureEnabled =3D false;
=20 basicEffect.VertexColorEnabled =3D true;
=20 basicEffect.Alpha =3D 1.0f;
=20 basicEffect.DirectionalLight0.Direction =3D new Vector3(1, 0, -1);
=20 basicEffect.DirectionalLight0.SpecularColor =3D Color.SeaGreen.ToVector3();
=20 basicEffect.DirectionalLight0.DiffuseColor =3D Color.DarkGray.ToVector3();
=20 basicEffect.DirectionalLight0.Enabled =3D true;
then I apply it in the Draw():
=20 basicEffect.CurrentTechnique.Passes[0].Apply();
Where could the problem lie?
Thanks in advance!
Yajie.
Nov 11, 2011 at 7:48 AM
Your image didn't show up. PIX is your friend when troubleshoot graphics problems. Give it a try.
Nov 11, 2011 at 8:09 AM
I attached the images.
So, you think it’s the basicEffect where problem originates, right?
Yajie.
From: [email removed]
Sent: Friday, November 11, 2011 3:48 PM
To: [email removed]
Subject: Re: is this a lighting problem? [nine:279081]

From: yufeih

Your image didn't show up. PIX is your friend when troubleshoot graphics problems. Give it a try.