Page 1 of 1

Issue with Direct3D9 Renderer Module in 0.7.0

Posted: Mon Sep 28, 2009 14:12
by Kentaree
I've upgraded CEGUI to 0.7.0, and something strange has started happening with the rendering of the interface. The position is broken, and the interface now reacts to the movement of the camera in game. Provided are screenshots from 0.6 and 0.7 (ignore the differing background).

0.7
Image

0.6
Image

Are there any known problems with the new renderer or is it likely something that I'm doing wrong?

Re: Issue with Direct3D9 Renderer Module in 0.7.0

Posted: Mon Sep 28, 2009 18:59
by CrazyEddie
Hi,

No known problems with the 0.7.0 D3D9 renderer, although this does not mean much since the code is so new ;)

The issue looks like some render state issue, perhaps related to one of the matrices. This will be something you're changing in your code, that we are not setting back to default or disabling in the renderer - if you want to try and fix it, you can try resetting various states prior to calling the renderGUI function. If you happen find which one is causing the issue that would be great. If not, I'll look into it and try and reproduce something either tomorrow or Wednesday, though reproducing certain issues is sometimes quite difficult.

CE.

Re: Issue with Direct3D9 Renderer Module in 0.7.0

Posted: Tue Sep 29, 2009 11:31
by CrazyEddie
I'm pretty sure this is the view matrix. I'll add the code for this either this afternoon or this evening. If you want to confirm this before hand, just add code to reset the view matrix to identity prior to issuing the renderGUI call. I thought we were using this in the module but apparently not - perhaps I had it in there originally and removed it for some reason before I committed the finished version :)

CE.