splitscreen with diffrent color backgrounds.

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
spike314
Posts: 27
Joined: Sun Nov 19, 2006 11:51 am
Location: Shropshire (UK)
Contact:

splitscreen with diffrent color backgrounds.

Post by spike314 »

Hi all
I havent used irrlicht in awhile and im trying to do 4 viewports all with diffrent color backgrounds. I no how to do the splitscreen but how would i go about setting each viewport with diffrent colors?

Thanks.
You can have all the power in the world but if you have no one to follow you what good is the power?
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Re: splitscreen with diffrent color backgrounds.

Post by randomMesh »

spike314 wrote:im trying to do 4 viewports all with diffrent color backgrounds.
Well, the purpose of multiple viewports is to render the *same* scene from different *viewports*.

You can't render something which does not exist.
"Whoops..."
blAaarg
Posts: 94
Joined: Tue Mar 02, 2010 9:11 pm
Location: SoCal

Post by blAaarg »

Try:

Code: Select all

driver->draw2DRectangle();
3 times after beginScene() but before you drawAll(). If you do it before you do any setViewPort()s, the rectangles' positions should be the same as each respective viewport offset. If you call them after each setViewPort(), then the rectangles will have to fill the entire device dimension.
"Computers don't make mistakes! What they do they do on purpose!!"

-Dale Gribble
Post Reply