setViewPort in DX8

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Serg Nechaeff
Posts: 162
Joined: Wed Nov 26, 2003 5:24 pm
Location: Europe

setViewPort in DX8

Post by Serg Nechaeff »

It seems there is a problem, i have a weird flickering effects of the win desktop when using setViewPort in DX8.

Code: Select all

driver->setViewPort (core::rect<s32>(0,50,639,430));
In OGL everything works fine...

WinXP, tnt2 32 mb, DX9
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

The reason for that is the switching of the buffers. They are not initialized. Set the viewport to the whole screen, paint it with a color, set your viewport and draw it. This should eliminate the effect.
Serg Nechaeff
Posts: 162
Joined: Wed Nov 26, 2003 5:24 pm
Location: Europe

Post by Serg Nechaeff »

Thanks! gonna try it soon...
http://www.javazing.com
P-III-950, WinXP, GeForce FX5600 128 MB ForceWare 52.16, DX9, Eclipse IDE, JRE 1.6
Post Reply