Render issues after window resize

maxwave

07-05-2009 14:22:11

Hello all.
I have no problems with 6 textures and 2 splatting maps.
I have some render troubles with rendering terrain material after window resizing. I have 9 textures in pass. ( MET and Mogre 1.48)
For 6 and for 9 textures I use APPROPRIATE shader programs and materials.
The numbers on images is texture units in one pass.

Before resize (init size)


After resizing:


What can I update material after resizing?
:roll:

maxwave

14-05-2009 12:13:42

Anybody knows why this bug appears?

maxwave

22-05-2009 13:36:07

HELP!!! :cry:

Zero23

23-05-2009 12:11:46

Hmm
May do you have an false AspectRatio of the Camera or do you not resizt the RenderWindow?

maxwave

27-05-2009 08:37:38


public void Resized()
{
try
{
if (window != null)
window.WindowMovedOrResized();
if (camera != null)
camera.AspectRatio = (float)viewport.ActualWidth / (float)viewport.ActualHeight;
}
catch (System.Exception e)
{
MessageBox.Show("An Ogre exception was thrown during resizing:\n" + e.Message);
}
}

Zero23

27-05-2009 19:54:32

Hmm before you call

window.WindowMovedOrResized();

call

window.resize(NewSizeX, NewSizeY);



Zero