draw to viewport getting clipped
Posted: Tue Apr 21, 2009 9:45 am
Hi,
so I am trying to get a custom GUI button working similar to this compass by vitek http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=16887
problem is, I put this on a bar that scrolls across the bottom of the screen, if the button goes past the edge of the screen, it is clipped against the screen, so it gets squeezed against the side of the screen and then fills up the entire screen if it goes completely outside the screen.
I think it is driver->setViewPort(AbsoluteRect); that clips it.
So I'm trying to do this instead by setting the mesh vertices to the rectangle position but I'm not sure what to set the transforms (ETS_VIEW etc.) to, to just draw a simple rectangle mesh.
Any suggestions?
so I am trying to get a custom GUI button working similar to this compass by vitek http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=16887
problem is, I put this on a bar that scrolls across the bottom of the screen, if the button goes past the edge of the screen, it is clipped against the screen, so it gets squeezed against the side of the screen and then fills up the entire screen if it goes completely outside the screen.
I think it is driver->setViewPort(AbsoluteRect); that clips it.
So I'm trying to do this instead by setting the mesh vertices to the rectangle position but I'm not sure what to set the transforms (ETS_VIEW etc.) to, to just draw a simple rectangle mesh.
Any suggestions?