Vertex/BackFaceCulling

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
EntraX666

Vertex/BackFaceCulling

Post by EntraX666 »

Hello all,
I create an 3D model vertex by vertex but when backfaceculling is actived, only a part of the sphere is draw :( I think it is a problem with the normal but I don't manage to fix it.

Image

Thank you :o
tip
Posts: 50
Joined: Fri Feb 13, 2004 8:53 am
Location: grenoble, France
Contact:

normals are wrong

Post by tip »

the "south pole" of your sphere shouldn't be visible at all, i guess that your normals are messed up. Do you need a sample code for calculating your normals?
crimsoncipher
Posts: 4
Joined: Thu Sep 08, 2005 3:16 am

Post by crimsoncipher »

It might also be that your indices are messed up. Just try reversing the order of the indices for each triangle.
Guest

Post by Guest »

I don't know how calculate the normal, I have tried some data (-1, 1,0) but there are no change. So, if you could help me to calculating the normals I thank you !!
Guest

Post by Guest »

Ok, I try it.
EntraX666

Post by EntraX666 »

It's ok !!! Thank you very much !!
Post Reply