XYZRHW are pre-transformed, so setting the transform should have no effect.
when i've had the problem you're having it's usually the winding order.
(swapping your first two verts temporarily would confirm this isnt the case)
but you could post the code where you make and fill your vertexbuffer, maybe something is wrong there.
Coloured Quad Problem
I think i found the problem, it was to do with the winding order, but more importantly it was the D3DRS_CULLMODE was being set during the skybox rendering therefore the D3DRS_CULLMODE set during init took no effect!
Thanks for your time!
PS - if i have any other problems ill post here :)
Thanks for your time!
PS - if i have any other problems ill post here :)
Quote:Original post by FMDGames
I think i found the problem, it was to do with the winding order, but more importantly it was the D3DRS_CULLMODE was being set during the skybox rendering therefore the D3DRS_CULLMODE set during init took no effect!
conclusion: everyone should have a state guard thingy, which sets the changed render states back in its destructor, at the end of the block/function. [smile]
kp
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement