| Poster | : emuer | | Posts | : 17 | | Country | : USA | | City | : Los Angeles |
| | | | Posted by emuer on 24/04/2007 at 17:30:07
| | In SetUpVertices(), if you change the position of the vertices such as swaping position between vertices[0] and vertices[1], the output screen shows no triangles.
any ideas? | |
|
|
| |
| |
| Poster | : me26493 | | Posts | : 87 | | Country | : Australia | | City | : Melbourne |
| | | | Posted by me26493 on 24/04/2007 at 18:16:59
| | it might be cullmode.
before rendering, try
device.renderstate.cullmode = cullmode.none
| |
|
|
| |
| |
| Poster | : emuer | | Posts | : 17 | | Country | : USA | | City | : Los Angeles |
| | | | Posted by emuer on 24/04/2007 at 19:22:59
| | thanks for the answer, yes cullmode is the answer.
The camera chapter has a brief explanation about how to judge whether the triangle is facing the camera or not, I am kinda confused about the clockwise method. Can anyone explain more?
Thanks. | |
|
|
| |
| |
| Poster | : riemer | | Posts | : 1388 | | Country | : Belgium | | City | : Antwerp |
| | | | Posted by riemer on 26/04/2007 at 12:09:46
| | I've explained culling in more detail in the C++ version of the first series, you can find the chapter here:
http://www.riemers.net/eng/Tutorials/DirectX/C++/Series1/tut6.php | |
|
|