Hello =)!
I'm implementing 2 RenderEffects, one that draws a sort of "Fake 3D effect" stacking multiple layers of the same window at different Z's (below and above zero, that is -0.2, -0.5, 0.2, 0.5 etc). The other effect replaces the window geometry altogether with some mesh geometry, using the window texture as skin.
My problem is that there is no occlusion testing: no zbuffering even if I enable it. As I understand seeing the code, CEGUI uses a projection matrix (why ?) and draws everything at Z=0. Of course, zbuffering depends on the projection matrix znear/zfar and anything outside that range wont be taken into account. Moreover, I cannot translate the geometry to that valid range since it will be projected (distorted) and any translation of my geometry will change the point of further rotations made by CEGUI (window->setRotation() etc)
How could this problem be solved?
Thanks in advance =)!
Custom Effects, Geometry Buffers and ZBuffer
Moderators: CEGUI MVP, CEGUI Team
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 1 guest