Faces in Irrlicht - CCW and CW DirectX problem...

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
jcarew
Posts: 34
Joined: Wed Jul 04, 2007 3:54 pm

Faces in Irrlicht - CCW and CW DirectX problem...

Post by jcarew »

How Can I set faces in Irrlicht? (only backfaces and next only frontfaces)
glFrontFace in OpenGL work properly, but:

Code: Select all

Driver->getExposedVideoData().D3D9.D3DDev9->SetRenderState( D3DRS_CULLMODE,   D3DCULL_CW );
not work properly... Why?
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

There is a patch for this in the tracker, if you applied it to your own Irrlicht source it may help. Here it is (It may be a bit old however so the code may not match up exactly with the most recent SVN):

http://sourceforge.net/tracker/index.ph ... tid=540678
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Post Reply